Solved

iis express cannot access the IIS express applicationHost.config file

Posted on 2015-01-19
4
290 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

Foolproof security solutions has become one of the key necessities of every e-commerce or Internet banking website. If you too own an online shopping site then its vital for you to equip your web portal with customer security features that can allow…
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…

792 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