Ver 1.4 Google Checkout Payment Method Fails

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Hace 14 años
Get an error when trying to select Google Checkout (Click on Edit) from the Payment Methods.

It would appear to be related to a problem in accessing/modifying Web.Config in the modified medium trust environment of RackSpace Coud Sites.

Is there a reason that Google Checkout must use these App Settings in Web.Config, rather than via another method of managing these values?

IIS7, MSSQL 2k8, .Net3.5sp1

From System Log:

Unknown  
Severity:  11  
Message:  An error occurred loading a configuration file: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. (machine.config)  
Exception:  System.Configuration.ConfigurationErrorsException: An error occurred loading a configuration file: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. (machine.config) ---> System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) at System.Security.CodeAccessPermission.Demand() at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) at System.Configuration.Internal.InternalConfigHost.StaticOpenStreamForRead(String streamName) at System.Configuration.Internal.InternalConfigHost.System.Configuration.Internal.IInternalConfigHost.OpenStreamForRead(String streamName, Boolean assertPermissions) at System.Configuration.Internal.InternalConfigHost.System.Configuration.Internal.IInternalConfigHost.OpenStreamForRead(String streamName) at System.Configuration.Internal.DelegatingConfigHost.OpenStreamForRead(String streamName) at System.Configuration.UpdateConfigHost.OpenStreamForRead(String streamName) at System.Configuration.BaseConfigurationRecord.InitConfigFromFile() The action that failed was: Demand The type of the first permission that failed was: System.Security.Permissions.FileIOPermission The Zone of the assembly that failed was: Intranet --- End of inner exception stack trace --- at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal) at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors) at System.Configuration.Configuration..ctor(String locationSubPath, Type typeConfigHost, Object[] hostInitConfigurationParams) at System.Configuration.Internal.InternalConfigConfigurationFactory.System.Configuration.Internal.IInternalConfigConfigurationFactory.Create(Type typeConfigHost, Object[] hostInitConfigurationParams) at System.Web.Configuration.WebConfigurationHost.OpenConfiguration(WebLevel webLevel, ConfigurationFileMap fileMap, VirtualPath path, String site, String locationSubPath, String server, String userName, String password, IntPtr tokenHandle) at System.Web.Configuration.WebConfigurationManager.OpenWebConfigurationImpl(WebLevel webLevel, ConfigurationFileMap fileMap, String path, String site, String locationSubPath, String server, String userName, String password, IntPtr userToken) at System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration(String path) at NopSolutions.NopCommerce.Web.Administration.Payment.GoogleCheckout.ConfigurePaymentMethod.BindData() in F:\Own\NopCommerce\Solution\Solution\NopCommerceStore\Administration\Payment\GoogleCheckout\ConfigurePaymentMethod.ascx.cs:line 43 at NopSolutions.NopCommerce.Web.Administration.Payment.GoogleCheckout.ConfigurePaymentMethod.Page_Load(Object sender, EventArgs e) in F:\Own\NopCommerce\Solution\Solution\NopCommerceStore\Administration\Payment\GoogleCheckout\ConfigurePaymentMethod.ascx.cs:line 38 at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.U  

Page URL:  http://www.cyberpersonics.com/Store/Administration/PaymentMethodDetails.aspx?PaymentMethodID=14  
Created on:  12/7/2009 10:46:16 AM
Hace 14 años
Configuring Google Checkout is not allow in the medium trust environment.

Here is a list of options that will not work in medium trust:
1. Excel Import/Export
2. PDF receipts
3. Configuring Google Checkout
Hace 14 años
So then, is that it?

Do you have any suggestions to get it working (Google Checkouts) by alternative methods?

Such as manually edit the four settings in Web.Config and upload the modified file... or Are There Other configuration issues that will not succeed unless run from the provided configuration feature?
Hace 14 años
You are absolutely right. You can manually edit "GoogleMerchantID", "GoogleMerchantKey", "GoogleEnvironment" and "GoogleAuthenticateCallback in Web.Config and upload the modified file. It should work
Hace 14 años
Hi,

I have not tried excel import but excel product export works in medium trust.
Hace 14 años
I have changed the web.config as Andrei suggested but the Google checkout payment method still says not active in the admin payment config screen.  Where would I set it as active?
Hace 14 años
1. Connect to your database
2. Open "Nop_PaymentMethod" table
3. Find "Google Checkout" record and set "Active" to true
Hace 14 años
Hope someone can help me with this.

I have spent a whole day trying to figure out why Google Notification keeps getting 401 Access denied error when trying to communicate with GooglePostHandler.aspx page hosting at Godaddy and no luck. I was able to send the shopping card xml thru that handler from console app. So I have no clue on where the problem is, Google side, Godaddy, or the application config.

If anyone has solution for this or any suggestions on how to pinpoint the issue, please let me know.

Thank you


JC
Hace 14 años
Is there a reason for the google settings to be in the web.config rather than the settings table like the rest of the providers?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.