简体   繁体   English

Microsoft Visual Studio 2013:无法创建新的Asp.Net项目

[英]Microsoft Visual Studio 2013: Cannot Create a new Asp.Net project

File -> New -> Website -> ASP.NET Web Forms Site -> OK 文件->新建->网站-> ASP.NET Web窗体站点->确定

Configuring IIS Express failed with the following error:

Filename: redirection.config
Error: Cannot read configuration file

So I've tried several solutions. 因此,我尝试了几种解决方案。 I checked and already have IIS Express installed. 我已检查并已安装IIS Express。 I also am running as admin. 我也以管理员身份运行。 I don't know what else to do and googling just tells me to turn it on (it's checked in my tools options) 我不知道该怎么办,Google搜寻只是告诉我将其打开(已在我的工具选项中选中)

File -> New -> Project -> ASP.NET WebApplication -> Web Forms Template -> Ok 文件->新建->项目-> ASP.NET WebApplication-> Web表单模板->确定

Unspecified error(Exception from HRESULT: 0x80004005 (E_FAIL))

Are these related? 这些有关系吗? Why can't I do anything related to ASP? 为什么我不能做任何与ASP相关的事情? My Documents folder is not encrypted. 我的文档文件夹未加密。

Result: I eventually got a new computer where this problem did not occur, so I did not personally solve this problem. 结果:我最终有了一台新计算机,没有发生此问题,因此我没有亲自解决此问题。 Sorry. 抱歉。

I was having the same issue. 我有同样的问题。 Here's what worked for me. 这对我有用。

  • Close Visual Studio. 关闭Visual Studio。
  • Navigate to your Documents folder, and then the IISExpress subfolder. 导航到“文档”文件夹,然后导航到IISExpress子文件夹。
  • Rename the "config" folder to something else. 将“ config”文件夹重命名为其他名称。 "configBACKUP" will do. 将执行“ configBACKUP”。
  • Open Visual Studio and try to create a new ASP.NET project. 打开Visual Studio,然后尝试创建一个新的ASP.NET项目。

IISExpress will create the necessary .configs in a brand new "config" folder. IISExpress将在全新的“ config”文件夹中创建必要的.configs。

Same issue due to having IIS Express 10. 由于具有IIS Express 10,因此存在相同的问题。

Resolved by clicking Repair on it in Programs & Features. 通过在“程序和功能”中单击“修复”来解决。 Took 5 seconds and it was fixed. 花了5秒钟,它是固定的。

User \\ Documents \\ IISExpress \\ config文件尝试取消选中“只读”属性

就我而言,在我转到IISExpress文件夹Documents \\ IISExpress \\ config并取消选中“加密内容以隔离数据”之后,它工作正常,因为默认情况下,win 8.1将对其进行加密。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Visual Studio 2013:无法创建MVC项目 - Visual Studio 2013: Cannot Create MVC project Visual Studio 2017 不会在 ASP.NET Core MVC 项目中创建新的空 MVC 控制器 - Visual Studio 2017 does not create a new empty MVC controller in ASP.NET Core MVC project Visual Studio-无法启动ASP.NET Core项目 - Visual Studio - Cannot start ASP.NET Core project 如何在Visual Studio 2015中创建ASP.NET MVC 4项目 - How to Create an ASP.NET MVC 4 project in visual studio 2015 如何在Visual Studio 2013中编辑ASP.Net MVC C#项目模板文件? - How can I edit ASP.Net MVC C# project template files in Visual Studio 2013? 在Visual Studio 2013中自定义“一个ASP.NET”项目模板 - Custom “One ASP.NET” Project Templates within Visual Studio 2013 如何在Visual Studio社区2013中创建ASP.NET MVC 5 Web应用程序? - How to create ASP.NET MVC 5 Web Application in Visual Studio Community 2013? Visual Studio-ASP.NET MVC 5-默认Azure AD身份验证项目和Microsoft Graph API - Visual Studio - ASP.NET MVC 5 - Default Azure AD Authentication Project and Microsoft Graph API Visual Studio 2013和ASP.NET MVC的困难 - Difficulties with Visual Studio 2013 and ASP.NET MVC ASP.NET设计未在浏览器上加载(Visual Studio 2013) - asp.net design not load on browser ( visual studio 2013)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM