In my asp.net applica开发者_运维百科tion, I have an xml file in this path:
~/Admin/App_Data/myXmlFile.xml
When I try inserting/deleting or updating on this file, it gives me this error:
Error: Sys.WebForms.PageRequestManagerServerErrorException: Access to the path ... is denied.
How could I resolve this?
Thanks,
This looks like similar to what I had faced a while back. I had a similar problem when website was hosted at C:\Users\UserName\Documents\My Web Sites
. It was because with Windows Vista
or Windows 7
it requires Administration Privilege to update anything inside C:\
(drive where your OS is installed).
Your problem looks like pretty match to that, try hosting your website on different location to diagnose if this is the case.
精彩评论