ASP.NET网页报错

来源:百度知道 编辑:UC知道 时间:2024/06/30 23:26:46
Could not find a part of the path 'c:\windows\system32\connectdb\MyWebD\navigationfatherid.xml'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Exception: Could not find a part of the path 'c:\windows\system32\connectdb\MyWebD\navigationfatherid.xml'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[Exception: Could not find a part of the path 'c:\windows\system32\connectdb\MyWebD\navigationfatherid.xml'.]
connectdb.APP_DLL.RWConfig.ReadMyWebXML(String filename, String filepa

关于错误提示:could not find a part of path “X:\”的解决办法

Win2k在NTFS系统下可能会出现这样的错误提示,解决办法很简单,只要在网站所在系统盘根目录给ASPNET用户读取权限就可以了,因为原因就是 Server.MapPath() 这个方法,这个方法是让一个相对路径转为绝对路径,而在转换的过程序中,.NET框架需要得到当前硬盘的一些属性,如盘符等,而这个时候,如果将.Net用户对磁盘根目录的权限全部拒绝,从而导致程序无法正常运行。Server.MapPath() 这个方法却是创建目录或文件所必须的,如下面创建目录的代码:

Directory.CreateDirectory(Server.MapPath("Test"));
如果不给ASPNET根目录的读取权限,就会出错。

重装asp.net框架,重装iis,重装系统.

c:\windows\system32\connectdb\MyWebD\navigationfatherid.xml

怎么会用到系统文件夹下的XML?
这个文件存在吗?

修复游戏! 你再网上下载修复游戏软件!