Solved

Visual Studio express / IIS Express error

Posted on 2015-01-20
1
1,899 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
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…

910 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

23 Experts available now in Live!

Get 1:1 Help Now