Error on payment screens in back end


https://forum.kartris.com/Topic512.aspx
Print Topic | Close Window

By JaseGW - Wed 13 Apr 2011
Hey,

Followed instructions in the manual and all is good, apart from when I wish to edit the payment options, I get this error. Obviously it is a permissions thing, put thought if ASP.NET had full control, that was all that was needed.

Any help would be appreciated.

-----------------------------------------------------------------------------
>>    Admin_GatewaySettings.btnUpdate_Click
-----------------------------------------------------------------------------
>>    System.UnauthorizedAccessException
>>    13/04/2011 13:00:58
>>     URL:http://<site>/cart/Admin/_GatewaySettings.aspx?g=Paypal
>>    77.99.39.135
>>    CUSTOM MESSAGE:
Error: An unknown error has occurred. Please check the error logs for any info.
>>    MESSAGE:
Access to the path 'D:\Websites\<site>\cart\Plugins\Paypal\Paypal.dll.config' is denied.
>>    STACK:
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.File.Delete(String path)
   at Admin_GatewaySettings.btnUpdate_Click(Object sender, EventArgs e)
==================================================
By Mohammad - Wed 13 Apr 2011
Probably the file is blocked ?!

Go to the properties of the file '
Paypal.dll.config' in your case, if you can find a button says 'Un-block', then you need to un-block it, that should fix the issue.
By JaseGW - Wed 13 Apr 2011
Hi,

Thanks, but I cannot find a putton that says "Un-Block"
Windows Server 2008
By Paul - Thu 14 Apr 2011
What version of Windows / IIS is it? Win 2008 introduced some extra security things which is what Mohammad is referring to. I have also seen the files get locked if the site is running.

One workaround if there is a permissions issue - you can edit the Paypal config file manually. It is an XML file located in the Paypal plugin folder. Typically on a live site it would be encrypted for security, which cannot be done manually. But .config files are not served and in reality the Paypal account details are not really so sensitive; someone could not access the account with those, only make a payment to you!

If the file is locked and even FTP cannot delete/mod it, then if you have full access to the web server (i.e. this is not shared hosting) you can generally recycle the application pool for this site to clear it.

I've edited the files manually on some shared hosting where there was not the required permissions and if it gets paypal running then it is not something you'll have to change again.