Solved

Visual Studio express / IIS Express error

Posted on 2015-01-20
1
2,307 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
[X]
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
1 Comment
 
LVL 23

Accepted Solution

by:
Michael Fowler 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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

688 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