Solved

Visual Studio express / IIS Express error

Posted on 2015-01-20
1
1,773 Views
Last Modified: 2015-01-20
Error when creating new ASP MVC 4 project in Visual Studio Express 2012 for Web:

Web application projects are currently configured to use IIS Express...Configuring IIS Express failed with the following error:

Filename:redirection.config
Error: Cannot read configuration file

Related to this is that when I try to open a Web Site in the Local Internet Information Server dialog box under "IIS Express Sites" is an error message "Cannot access the the IIS Express applicationHost.config file.
0
Comment
Question by:hertzgordman
1 Comment
 
LVL 23

Accepted Solution

by:
Michael74 earned 500 total points
ID: 40560726
Try this fix

1/ Close Visual Studio.
2/ Rename the %userprofile%\Documents\IISExpress\config directory.
3/ Start Visual Studio again. The %userprofile%\Documents\IISExpress\config directory will be recreated with the default config files.
4/ Copy the original applicationhost.config file over the autogenerated one.

A similar method is rename the applicationhost.config file, then right click on the web project and select Use IISExpress. You will get an error due to the renaming of the config file.

Change the name of the configuration file back to application.config. Ensure "Use Local IIS Web Server" is selected in the web project settings. Run the solution.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Duplicate a row 2 33
Data Saving 5 40
Set form below another form 3 26
Loop through Multiple Processes Async 2 17
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now