Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Visual Studio express / IIS Express error

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Finding the IIS version 5 21
reboot server with scheduled time and week base 4 35
jquery tab header text 1 23
SSIS Start 2 20
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

861 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