关于错误提示:could not find a part of path “X:\”的解决办法
来源:互联网 发布:小米note网络制式指令 编辑:程序博客网 时间:2024/05/22 07:06
Win2k在NTFS系统下可能会出现这样的错误提示,解决办法很简单,只要在网站所在系统盘根目录给ASPNET用户读取权限就可以了,因为原因就是 Server.MapPath() 这个方法,这个方法是让一个相对路径转为绝对路径,而在转换的过程序中,.NET框架需要得到当前硬盘的一些属性,如盘符等,而这个时候,如果将.Net用户对磁盘根目录的权限全部拒绝,从而导致程序无法正常运行。Server.MapPath() 这个方法却是创建目录或文件所必须的,如下面创建目录的代码:
Directory.CreateDirectory(Server.MapPath("Test"));
如果不给ASPNET根目录的读取权限,就会出错。
- 关于错误提示:could not find a part of path “X:\”的解决办法
- 【.Net码农】关于使用FileUpload控件报 Could not find a part of the path "X/1.jpg"
- .net中创建目录的问题(未找到路径X的一部分|Could not find a part of the path)
- DirectoryNotFoundException: Could not find a part of the path "……"
- 关于rails的 Could not find a JavaScript runtime.错误
- could not find object错误的解决办法
- xcode报Could not find a storyboard named错误的解决办法
- could not find git path的解决方法
- 关于 Could not find main class 错误
- 关于android编程中遇到的Could not find class 'com.swetake.util.Qrcode错误的原因及解决办法
- 关于android编程中遇到的Could not find class 'com.swetake.util.Qrcode错误的原因及解决办法
- 错误提示:Caused by: org.hibernate.PropertyNotFoundException: Could not find a getter for ID
- Git of [error]could not find git path
- 安装qt qmake 错误:could not find a Qt installation of ''
- Multiple Contexts have a path of 错误的解决办法
- Tomcat Multiple Contexts have a path of 错误的解决办法
- 关于“Could not find a valid gem 'bundler' (>= 0) in any repository” 解决办法。
- [转] Could not find *.apk的解决办法
- Big Data 技术综述 大数据 研究 大数据 综述
- The Diferences Between instruction,pseudo-instruction and directive of arm
- Java多线程--让主线程等待所有子线程执行完毕代码
- Ubuntu安装Apache2
- Hook技术2 内存中修改模块开头代码为跳转语句
- 关于错误提示:could not find a part of path “X:\”的解决办法
- C/C++:构建你自己的插件框架
- erlang任务分发
- java struts中实现上传多张图片代码
- 电脑输入法图标不见了怎么办?
- Flex中Alert参数分析
- 美语教学(1)
- 腾讯即将推出人脸认证登录技术
- 文件替换脚本