Visual Studio 2013 > New project > unspecified err

2019-01-14 00:41发布

Can anybody shed any light on the above error? I've tried with both Express and Ultimate editions of VS 2013.

I'm running 64-bit Windows 7.

Solutions to similar problems I've found tend to be targetting x86 rather than AnyCPU from the Solution explorer. However, I can't even build the solution to explore it.

The new project I'm trying to build is c# ASP.net MVC.

25条回答
祖国的老花朵
2楼-- · 2019-01-14 01:36

Removing Read Only property from IISExpress\Config files (applicationhost, aspnet, redirection) solved the problem for me.

查看更多
Ridiculous、
3楼-- · 2019-01-14 01:36

I was facing the same issue. I was selecting the 'Empty' MVC project template and was getting the same error again and again.

I tried selecting the 'MVC' project template and got the same error to.

Doing a bit of googling showed that a messed up application host config file of IIS express can also cause the problem. I had only one site configured in IIS express and I tried to host that from command prompt. That's when it showed me the error in applicationHostConfig file of IIS express including line number where the error was. I was playing with the file in the past and added a site without specifying the name.

Fixing that problem solved the issue for me.

查看更多
叛逆
4楼-- · 2019-01-14 01:38

FOUND SOLUTION

Go to Control Panel -> Programs and Features -> Select your Visual Studio Version and hit "Change"

1) Click MODIFY and enable Web Developer Tools

2) Enable Web Developer Tools

3) Click Update

查看更多
闹够了就滚
5楼-- · 2019-01-14 01:39

I corrected this error by repairing IIS express. You can as well reinstall IIS express.

查看更多
Melony?
6楼-- · 2019-01-14 01:39

devenv /ResetSettings

worked for me.

查看更多
小情绪 Triste *
7楼-- · 2019-01-14 01:41

I had the same issue and scavenged the internet for solutions, because I did not want to reinstall VS 2013, only to find my solution in someone else's problem (oh the irony).

I had this error because my applicationhost.config was blank. I figured this part out when I realised that the project was created, just not added to the solution. So, I tried adding the project manually and it claimed that there was an error in applicationhost.config file. I go to see it, and it was empty.
For whatever reason this happens, it stops the IISexpress.exe from working either.
So, I deleted the applicationhost.config file and tried adding the project to the solution, and voila, everything works like a charm.

查看更多
登录 后发表回答