开发者

How to resolve the "Access to the path..." error?

开发者 https://www.devze.com 2023-04-12 00:25 出处:网络
In my asp.net applica开发者_运维百科tion, I have an xml file in this path: ~/Admin/App_Data/myXmlFile.xml

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消