在服务器端以XML文件写入 [英] Write in XML File at Server Side

查看:68
本文介绍了在服务器端以XML文件写入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友
我在asp.net(3.5)中处理一个Web应用程序,并在此应用程序中使用XML File作为数据库.在本地计算机上,它工作正常,但是当我在服务器上上传此网站时,这会造成问题.根据我的观点,由于服务器上的写权限,我正面临这个问题.(因为在服务器上我无法在xml文件上写)

我该如何解决这个问题.如果有人有任何解决方案,请告诉我.

提前谢谢.
问候!
dEV kASHAYP

Hello friends
I working on a web application in asp.net(3.5), and using XML File as a database in this application. At local machine it is working fine but when I upload this website at server then it is creating problem. According to my view, I am facing this problem due to write permission on server.(Because on server I cant write on xml file)

How i can resolve this problem. If anybody have any solution, then please tell me.

Thanks in advance.
Regards!
dEV kASHAYP

推荐答案

您需要授予应用程序对文件存储文件夹的读/写权限.如果它是服务器上的文件夹,则由您控制,然后继续并设置适当的权限.如果它属于网络托管服务商,则可能需要询问他们,或者您可以通过其提供的某种类型的控制面板进行访问.
You need to give your application read/write permission on the folder in which you are storing the files. If it is a folder on a server you control then just go ahead and set the appropriate permissions. If it belongs to a web host you may have to ask them or you might have access through some type of control panel they provide.


这篇关于在服务器端以XML文件写入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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