创建虚拟目录http:// localhost:89328 /失败。无法写配置文件(\.vs\config\applicationhost.config) [英] Creation of the virtual directory http://localhost:89328/ failed. Cannot write configuration file (\.vs\config\applicationhost.config)

查看:370
本文介绍了创建虚拟目录http:// localhost:89328 /失败。无法写配置文件(\.vs\config\applicationhost.config)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我无法在计算机上创建新的/打开的现有网站。我得到的错误是:



创建虚拟目录http:// localhost:%port%/ failed with error :


文件名:\\?\ C:\Projects \%any-path%\ .vs \ config \ applicationhost .config


错误:无法写入配置文件。


您需要手动在IIS之前创建此虚拟目录你可以打开这个项目。



网络应该使用IIS Express。


我在这个错误上搜索了几个论坛帖子,但对我没什么用。抛出此错误后,通常会创建applicationhost.config。安全性,权限应该没有问题......


当我从我的同事那里复制整个项目文件夹时(他有相同的目录结构进行开发)......同样的错误。



有人能帮忙吗?


非常感谢您的任何想法。

解决方案

Hi Mirek,



感谢您在MSDN论坛上发帖!


 


请参阅错误消息,请查看

这个类似的问题
按照以下步骤排除故障:


  1. 关闭Visual Studio并重命名位于根项目目录的".vs \ config"目录中的applicationhost.config文件,然后重新加载Web项目。
  2. < span style ="font-size:11.0pt; FONT-FAMILY:"宋体",无衬线; color:black">如果不起作用,请在记事本中打开名为applicationhost.config的已创建文件
  3. 在错误消息中搜索打开文件中的文件名
  4. 修改了
    physicalPath值指向项目配置文件的有效路径。
  5. 保存
    applicationhost.config文件,然后重试。




最好的问候,


萨拉


Hi,

I am unable to create new/open existing website on my computer. The error I get is:

Creation of the virtual directory http://localhost:%port%/ failed with the error:

Filename: \\?\C:\Projects\%any-path%\.vs\config\applicationhost.config

Error: Cannot write configuration file.

You will need to manually create this virtual directory in IIS before  you can open this project.

The web should use IIS Express.

I have searched few forum threads on this error but nothing worked for me. After this error is thrown, applicationhost.config is normally created. There should be no problem with security, rights,...

When I copy whole project folder from my co-worker (he has same directory structure for development) ... same error.

Is anyone able to help?

Thank You very much for any ideas.

解决方案

Hi Mirek,

Thank you for posting in MSDN forum!

 

Refer to the error message, please have a look at this similar issue and follow the steps as below to troubleshoot:

  1. Close Visual Studio and rename the applicationhost.config file located in the ".vs\config" directory of your root project directory then reloaded the web project.
  2. If not works, open the created file named applicationhost.config in Notepad.
  3. Searched the open file for the filename in your error message
  4. Amended the physicalPath value to point to the valid path of the project's config file.
  5. Saved the applicationhost.config file, and try again.

Best Regards,

Sara


这篇关于创建虚拟目录http:// localhost:89328 /失败。无法写配置文件(\.vs\config\applicationhost.config)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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