部署后ASP.net应用程序不读取XML文件 [英] ASP.net app not reading XML files after deployment

查看:66
本文介绍了部署后ASP.net应用程序不读取XML文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

早安.

我开发了一个ASP.net网站,以从目录中的XML文件读取和显示数据.
该应用程序在我的机器上可以正常运行,但是在部署后它似乎无法读取文件,因为什么都没有显示.

Good Day.

I developed an ASP.net website to read and display data from XML files which are located in a directory.
The application works fine on my machine, but after deployment it doesnt seem to read the files because nothing is displayed.

推荐答案

也许您需要验证:

0)如果您使用文件全路径(例如:c:/dir/...),则尝试使用Server.MapPath.
1)xml文件存在.
2)您有权读取文件.
3)并询问服务器管理员是否未设置自定义配置.
maybe you need to verify:

0) if you use a file full-path (like : c:/dir/... ), else try to use Server.MapPath.
1) xml files exists.
2) you have permission to read files.
3) & ask server admin if his don''t setup a custom configuration.


亲爱的,
我认为您有文件权限问题.如果使用登录身份验证,则需要在该xml文件目录上指定权限.您必须指定< location>与目录名称.搜索确切的< location>属性和关键字.希望对您有帮助



谢谢
dear,
i think you have file permission problem. if you are using login authentication then you need to specify rights on that xml file directory. you have to specify <location> with directory name. search exact <location> properties and keywords. Hope it will help you



Thanks


谢谢...我尝试了一下并显示了消息.这是权限问题
Thanks guys...I put a try and displayed the message..It was permission issues


这篇关于部署后ASP.net应用程序不读取XML文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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