IIS Express 8-无法写入配置文件 [英] IIS Express 8 - Cannot write configuration file

查看:65
本文介绍了IIS Express 8-无法写入配置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将IIS Express 8用于VS2012中的MVC站点.每当我尝试创建网站时,都会出现以下错误:

I am trying to use IIS Express 8 for a MVC site in VS2012. I am getting the following error whenever I attempt to create the site:

文件名: \?\ C:\ Users \ xxxxxx \ Documents \ IISExpress \ config \ applicationHost.config
错误:无法写入配置文件

Filename: \?\C:\Users\xxxxxx\Documents\IISExpress\config\applicationHost.config
Error: Cannot write configuration file

是否有某种方法可以强制IIS Express将其他位置用于配置&日志文件夹?我知道从命令行运行iisexpress.exe时可以指向其他位置,但是使用Visual Studio时无法对此进行控制.

Is there some way to force IIS Express to use a different location for the config & logs folders? I understand I can point to a different location when I am running iisexpress.exe from the command line, but I have no control over this when using Visual Studio.

或者,是否有人建议为什么会发生错误? (旁注:我的笔记本电脑处于公司环境中,在文档"文件夹中有一些愚蠢的加密,但是我对保存到该位置的其他软件没有任何问题.我还给所有人"组添加了完整的权限访问该文件夹.)

Alternatively, has anyone got any suggestions why the error is happening? (Side note: My laptop is in a corporate environment which has some stupid encryption on the "Documents" folder, however I haven't had any problems with other software that saves to this location. I also have given the "Everyone" group full access to the folder.)

编辑-按照 http://learn上的说明进行操作. iis.net/page.aspx/1286/iis-80-express-readme/我似乎还是无法正常工作.我尝试了以下方法:

EDIT - After following the instructions at http://learn.iis.net/page.aspx/1286/iis-80-express-readme/ I still can't seem to get this working. I've tried the following:

  • 添加了指向我的备用目录的HKCU \ Software \ Microsoft \ IISExpress \ CustomUserHome注册表项
  • 添加了指向我的备用目录的HKCU \ Software \ Microsoft \ IISExpress \ 8.0 \ CustomUserHome注册表项
  • 添加了指向我的备用目录的HKLM \ Software \ Microsoft \ IISExpress \ CustomUserHome注册表项
  • 添加了指向我的备用目录的HKLM \ Software \ Microsoft \ IISExpress \ 8.0 \ CustomUserHome注册表项
  • 设置指向我的备用目录的%IIS_USER_HOME%环境变量.

还有其他建议吗?

推荐答案

@Brad

我刚才也遇到了同样的问题.删除IISExpress文件夹上的加密和只读"属性即可解决该问题.在我的公司中,文档也已加密,但是我认为从IISExpress中删除该加密不会有任何问题.

I had your same problem just now. Removing the encryption on the IISExpress folder and the "Read Only" attribute solved it. In my company Documents is also encrypted, but I don't think removing that encryption from IISExpress would be a problem of any sort.

希望这会有所帮助.

这篇关于IIS Express 8-无法写入配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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