Answered by:
Cannot write configuration file

Question
-
Hello,
I have a problem loading up a project I have taken over from some one else. I need some guidance as I can't seem to find the solution. However im not that familiar with .NET or MVS as I once was. The message I get is as follows :-
---------------------------
Microsoft Visual Studio
---------------------------
Creation of the virtual directory localhost:49623/ failed with the error: Filename: \\?\C:\Users\firstname.surname\Documents\IISExpress\config\applicationHost.configError: Cannot write configuration file
However I have checked the permissions and can't see anything obvious. Under guidance from another developer I have also updated :-
www.nuget.org/
and
www.nuget.org/packages/Microsoft.AspNet.Mvc
I am using a Windows 7 enterprise edition Dell Lattitude laptop. With MVS as follows
Microsoft Visual Studio Professional 2012
Version 11.0.50727.1 RTMREL
Microsoft .NET Framework
Version 4.5.50938Installed Version: Professional
Microsoft Visual Studio Tools for Applications 2012 04938-088-1153812-02395
Microsoft Visual Studio Tools for Applications 2012Office Developer Tools 04938-088-1153812-02395
Microsoft Office Developer ToolsTeam Explorer for Visual Studio 2012 04938-088-1153812-02395
Microsoft Team Explorer for Visual Studio 2012Visual Basic 2012 04938-088-1153812-02395
Microsoft Visual Basic 2012Visual C# 2012 04938-088-1153812-02395
Microsoft Visual C# 2012Visual C++ 2012 04938-088-1153812-02395
Microsoft Visual C++ 2012Visual F# 2012 04938-088-1153812-02395
Microsoft Visual F# 2012Visual Studio 2012 Code Analysis Spell Checker 04938-088-1153812-02395
Microsoft® Visual Studio® 2012 Code Analysis Spell CheckerPortions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.
The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.
Visual Studio 2012 SharePoint Developer Tools 04938-088-1153812-02395
Microsoft Visual Studio 2012 SharePoint Developer ToolsNuGet Package Manager 2.8.60318.667
NuGet Package Manager in Visual Studio. For more information about NuGet, visit docs.nuget.org/.PreEmptive Analytics Visualizer 1.0
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.SQL Server Analysis Services
Microsoft SQL Server Analysis Services Designer
Version 11.0.5058.0SQL Server Data Tools 11.1.20627.00
Microsoft SQL Server Data ToolsSQL Server Integration Services
Microsoft SQL Server Integration Services Designer
Version 11.0.3436.0SQL Server Reporting Services
Microsoft SQL Server Reporting Services Designers
Version 11.0.3436.0Web Developer Tools 1.0.30710.0
Microsoft Web Developer Tools contains the following components:
Page Inspector: Tool that offers an efficient way to decompose Web Applications and diagnose front-end issues.
Web Publishing: Extensions required for Web Publishing for both hosted servers as well as on premises.
Web Form Templates: Includes the default templates for Web Form Applications.
Editor Extensions: Includes HTML, CSS, and JS editor extensions that greatly enhance the development experience.- Moved by Kristin Xie Thursday, May 7, 2015 10:56 AM
Wednesday, April 29, 2015 3:04 PM
Answers
-
Hi OmShanti,
Your issue is more related to asp.net/web technology and for a better support on this please post your question on the below forum:
Fouad Roumieh
- Proposed as answer by Cor Ligthert Thursday, April 30, 2015 9:05 AM
- Marked as answer by Just Karl Tuesday, May 12, 2015 9:20 PM
Wednesday, April 29, 2015 4:43 PM -
I see some others have had success by removing encryption on the IISExpress folder and removing the Read Only attribute as well.
See this post for details.
Others have had success by doing the following:
- Run Command Prompt (cmd) in Admin Mode
- Enter the following command: DISM /Online /Cleanup-image /Restorehealth...as detailed here.
Wednesday, April 29, 2015 6:34 PM
All replies
-
Hi OmShanti,
Your issue is more related to asp.net/web technology and for a better support on this please post your question on the below forum:
Fouad Roumieh
- Proposed as answer by Cor Ligthert Thursday, April 30, 2015 9:05 AM
- Marked as answer by Just Karl Tuesday, May 12, 2015 9:20 PM
Wednesday, April 29, 2015 4:43 PM -
I see some others have had success by removing encryption on the IISExpress folder and removing the Read Only attribute as well.
See this post for details.
Others have had success by doing the following:
- Run Command Prompt (cmd) in Admin Mode
- Enter the following command: DISM /Online /Cleanup-image /Restorehealth...as detailed here.
Wednesday, April 29, 2015 6:34 PM -
Thanks for pointing me in the right direction, most appreciated.Thursday, April 30, 2015 8:38 AM
-
Thanks, the removal of encruption on IISExpress folder seems to have sorted me out. I will check out the link you share if I get any more problems. And of course post anything new in forums.asp.net/ as advised earlier.
Thursday, April 30, 2015 8:40 AM -
Try to change to another port and see. Sometime the virtual directory in IIS Express might gives you problem.
To confirm this is an IIS Express issue you can also try to enable your IIS (not IIS Express). Windows 7 enterprise comes with IIS so you can make use of it.
chanmm
chanmm
Thursday, April 30, 2015 8:45 AM