IIS Express访问被拒绝 [英] IIS Express Access denied
本文介绍了IIS Express访问被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在Visual Studio 2012中创建新文件
I am trying to create new file in visual studio 2012
fileStream = new FileStream("google_com.txt", FileMode.CreateNew);
但我一直收到此错误
请帮助解决此问题.
推荐答案
解决方案:
- 为
google_com.txt
文件放置一个特定的位置.像C:\google_com.txt
.实际上,不允许在默认位置(程序文件内部)创建文件,因为它可能没有适当的权限.
- 如果要在默认位置(程序文件内部)创建文件,请以管理员身份运行Visual Studio.(R-Click->以管理员身份运行).
- Put a specific location for
google_com.txt
file. likeC:\google_com.txt
. Actually it is not allowing to create the file in default location(inside program files) as it might not have the proper privilege. - If you want to create the file in default location(inside program files) run Visual Studio as Administrator.(R-Click-> Run as Administrator).
这篇关于IIS Express访问被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文