Search code examples
c#asp.netvisual-studio-2012iis-express

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


File -> New -> Website -> ASP.NET Web Forms Site -> OK

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. 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)

File -> New -> Project -> ASP.NET WebApplication -> Web Forms Template -> Ok

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

Are these related? Why can't I do anything related to 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.


Solution

  • I was having the same issue. Here's what worked for me.

    • Close Visual Studio.
    • Navigate to your Documents folder, and then the IISExpress subfolder.
    • Rename the "config" folder to something else. "configBACKUP" will do.
    • Open Visual Studio and try to create a new ASP.NET project.

    IISExpress will create the necessary .configs in a brand new "config" folder.