Soulzityr
Soulzityr

Reputation: 456

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.

Upvotes: 1

Views: 4836

Answers (4)

In my case it worked fine after I went to IISExpress folder Documents\IISExpress\config and unchecked the "encrypt content to segure data" cause by default win 8.1 will encrypt it.

Upvotes: 0

Ronald Swaine
Ronald Swaine

Reputation: 33

Same issue due to having IIS Express 10.

Resolved by clicking Repair on it in Programs & Features. Took 5 seconds and it was fixed.

Upvotes: 2

huckfin
huckfin

Reputation: 325

User\Documents\IISExpress\config files try to uncheck Read Only property

Upvotes: 0

Dallas Epperson
Dallas Epperson

Reputation: 56

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.

Upvotes: 4

Related Questions