访问xml文件时出错 [英] error while accessing xml file

查看:92
本文介绍了访问xml文件时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Server Error in '/' Application.
Access to the path 'C:\HostingSpaces\cbez\precisetech.ca\wwwroot\Styles\hitcounter.xml' is denied.



i在通过我的aspx文件访问xml文件时出现此错误。

有什么建议吗?

提前感谢


i am getting this error while accessing xml file through my aspx file.
any suggestion?
Thanks in advance

推荐答案

如果不对文件夹设置权限,则无法对文件进行操作。请参阅此链接(如何授予IIS权限) [ ^ ]了解详情。



另外看看以下链接:

http://msdn.microsoft.com/en-us/library/ff647402.aspx [ ^ ]

http://msdn.microsoft.com/en-us/library/system.security.permissions.fileiopermission.aspx [ ^ ]



祝你好运,

OI
You can''t do manipulation on a file without setting permissions on the folder. See this link(how to give permissions on IIS)[^] for details.

Also have a look at the following links too:
http://msdn.microsoft.com/en-us/library/ff647402.aspx[^]
http://msdn.microsoft.com/en-us/library/system.security.permissions.fileiopermission.aspx[^]

Good luck,
OI


我认为路径

I think the path
引用:

C:\ HostingSpaces \ cbez\precisetech.ca\wwwroot \Styles\hitcounter.xml

C:\HostingSpaces\cbez\precisetech.ca\wwwroot\Styles\hitcounter.xml

无法访问来自应用程序。



尝试放入tha t文件在其他驱动器(D或E)中或直接存储在项目文件夹(您的ASP.Net应用程序文件夹)和访问。它会起作用。

is not accessible from the application.

Try putting that file in other drives (D or E) or directly store inside the Project Folder (your ASP.Net application folder) and access. It will work.


这篇关于访问xml文件时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆