davidduffett / Moolah

Easy card payment processing for .NET
Other
28 stars 17 forks source link

FileIOPermission Error - PayPal Express Checkout #33

Open jjcua opened 10 years ago

jjcua commented 10 years ago

Hi Moolah community, The checkout function of my web application is working fine when testing locally. But when I deploy my web application on GoDaddy and test the checkout function, I encounter FileIOPermission error. So far, I have set all folders to write permission in GoDaddy but still doesn't solve the problem.

        GoDaddy in on medium trust so my guess maybe some part in the library is not configured on medium trust environment. See below for stack trace.

        If you encountered this problem before, care to share your workaround on this problem. Thanks.

Stack trace: [SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.] System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0 System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, StackCrawlMark& stackMark) +31 System.Security.CodeAccessPermission.Demand() +46 System.Reflection.RuntimeAssembly.get_Location() +100 NLog.d__a.MoveNext() +410 NLog.LogFactory.get_Configuration() +331 NLog.LogFactory.GetLogger(LoggerCacheKey cacheKey) +458 NLog.LogFactory.GetLogger(String name) +54 NLog.LogManager.GetCurrentClassLogger() +187 Moolah.PayPal.PayPalExpressCheckout..cctor() +8

davidduffett commented 10 years ago

There seem to be some medium trust issues with NLog (the logging library used internally by Moolah).

It is possible that maybe changing your NLog.config to disable logging MIGHT fix it, but will need to do some further investigation into NLog to figure out a more permanent solution...