Solved

iis express cannot access the IIS express applicationHost.config file

Posted on 2015-01-19
4
274 Views
Last Modified: 2015-01-27
Not able to create new web projects in Visual Studio 2013.  When I try open a web site I notice a yellow error icon below IIS Express Sites and the message "Cannot access the the IIS Express applicationHose.config.file.  I have tried everything listed on StackOverflow regarding permissions...
0
Comment
Question by:hertzgordman
  • 2
  • 2
4 Comments
 
LVL 12

Expert Comment

by:FarWest
ID: 40557990
if you did not use administrator try working on using a user with administrator rights
if yes, try run VS with administrative privilege
I think this will solve the problem
0
 

Accepted Solution

by:
hertzgordman earned 0 total points
ID: 40558091
Thanks Fryezz I have tried that...

I am not able to at least create the MVC solution and open it after doing this:

 (from stackoverflow.com/questions/24582929/unable-to-create-a-new-web-project-in-visual-studio-2013)


Alright - I am able to find the workaround.

If you find this error coming then probably it is to do with the IISExpress or IIS configuration that you may not be able to control from home.

The workaround that I have found is that:

Create Project,
System will not be able to attach the project, however it has been created. Then browse to that directory where the project has been created, and open the project file in the notepad or any editor.
Make sure that <UseIISExpress>false</UseIISExpress>
Before modifying further in the project file, Create a virtual directory in your IIS and point to the project path.
find <WebProjectProperties> in your project file config.
Define the virtual directory path under IISUrl.
Your config file should look something like this:

<WebProjectProperties>
          <UseIIS>True</UseIIS>
          <AutoAssignPort>True</AutoAssignPort>
          <DevelopmentServerPort>0</DevelopmentServerPort>
          <DevelopmentServerVPath>/</DevelopmentServerVPath>
          <IISUrl>http://localhost/app.account/</IISUrl>
          <NTLMAuthentication>False</NTLMAuthentication>
          <UseCustomServer>False</UseCustomServer>
          <CustomServerUrl>
          </CustomServerUrl>
          <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
        </WebProjectProperties>
0
 
LVL 12

Expert Comment

by:FarWest
ID: 40558140
good job, and thanks for sharing
0
 

Author Closing Comment

by:hertzgordman
ID: 40572388
Solved the issue myself
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

New Relic: Our company recently started researching several products to figure out what were the best ways for us to increase our web page speed and to quickly identify performance problems that we may be having. One of the products we evaluated wa…
If I have to fix slow responding website my first thoughts are server side optimizations: the database may not be optimized or caching is not enabled, or things like that. We often overlook another major part of our web application: the client. We o…
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

759 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

21 Experts available now in Live!

Get 1:1 Help Now