Visual Studio Cannot Create new ASP.NET Web Application - No IIS Express folder in Documents - iis-express

When loading in a solution that uses IIS express, or trying to create a new ASP.NET Web Application I receive errors.
When loading an existing solution I get "Creation of the virtual directory failed with the error: Unable to access the IIS metabase. You do not have sufficient privilege to access IIS web sites on your machine"
When creating a new project I get "Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))"
Following these responses:
Visual Studio 2013: Unable to access IIS metabase and
Error - Unable to access the IIS metabase
So far I have:
- Uninstalled/Reinstalled IIS
- Repaired, and uninstalled reinstalled Visual Studio
- Ran VS as admin
- Repaired IIS
- Changed the registry key in HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Common Documents the value was set to P:\ updated to C:\Users\user\Documents
- Reinstalled .NET Framework and .NET Core
I have found that there is no IIS Express folder in Documents, even after reinstalling and I think this may be the cause of the issue - does anyone have a suggestion?

Related

i/o error during create file in vs2013 with Firebird db and iis 10

I'm working on an asp.net project in visual studio 2013 which uses Firebird as the database server. I have no problems with Windows 8 or if I deployed the project on a remote server, but if I work on a PC with Windows 10 and IIS and I tried to debug the project in visual studio, it is not possible to open the connection with the database, I got the error I/O error during "CreateFile (open)" operation for file "path and name of the database file" Error while trying to open file.
I think the problem is in the IIS configuration but I can't find out where it is. Surely someone can guide me...
Solved: I moved the database to the app_data folder of the project and the error disappeared

VS2017 RC - The following error occurred when trying to configure IIS Express

Installed VS2017 RC - Started New Project ASP.NET Core Web Aplication(.Net CORE), selected Individual User Accounts as Authentication type. Try to run code generated with no changes and got the following error: Error occurred when trying to configure IIS Express for project... Error: ../.vs/config/applicationhost.config Error: cannot write configuration file
Looked at that file and it appears that it should have been writable.
FYI using VS2015 Update 3 everything builds and runs as expected including IIS Express.
I have encountered the same issue but deleting .vs folder worked for me.
I was having this issue, but only after the recent updated to Visual Studio 2017 RC (12/12/16).
I searched for a good hour and really didn't find anything, so I simply downloaded the latest IIS Express (v10) and it seems to have corrected the issues for 2017, but also for 2015 that started after the update as well.
IIS Express Download
EFS (Encryption File System) is known to cause file access problems. Ensure that EFS is turned off in your project directory.
More information:
https://blog.danielsmon.com/2017/04/03/cant-write-to-applicationhost-config/

Unable to Launch IIS Express Web Server - VS 2015 Community

I am developing a web project and I am not being able to test it using the IIS Express from the Visual Studio 2015.
I have googled this error and I found many references to it on the internet, but I believe that my case is different, because there is no other error message displayed besides "Unable to Launch IIS Express Web Server".
I've looked at the Windows Event Viewer and I got these errors below:
The worker process failed to initialize correctly and therefore could not be started. The data is the error.
The Module DLL C:\Program Files (x86)\IIS Express\aspnetcore.dll failed to load. The data is the error.
I also tried to launch the IIS Express directly using: c:\Program Files (x86)\IIS Express>iisexpress.exe /trace:error and I was successfull, so I think that the problem must be somewhere within Visual Studio and that my port (8080) is free.
Does anyone knows what else I can do?
If you are working with .NET core/ASP.NET core application then
please make sure you have installed these-
.NET Core SDK
VS 2015 Tooling Preview 2
If it is appeared to be solution-specific then-
Look for applicationhost.config file at <solution-name>\.vs\config\applicationhost.config location
Try removing this file and run solution again.
See if this helps.
I had the same error few days ago. I tried many things but i think Repairing DotNetCore.1.0.0-VS2015Tools.Preview2.exe fixed the issue.
Also, check whether you can run the web app in Kestrel web server. If you can run then worth checking web.config file for the presence of aspnetCoreModule tag properly.
This link might be helpful -- https://github.com/aspnet/Home/issues/1583

Visual Studio Error When Creating New ASP.NET Web Application

I have successfully created Web API projects a few days ago using Visual Studio 2013 update 4. Today when I try to create a project using the same default project that comes with VS, I get this error:
Unspecified error (Expection from HRESULT: 0x80004005 (E_FAIL))
I figured it out. In my case, my company maps my documents folder where the templates are stored to a network share and I was not connected to the VPN. Oh silly day.

What is going on with this 'localhost' project in visual studio?

I have a visual studio solution and when I opened it I got an error saying:
"http://localhost:55365 : error : Unable to open the Web site
'http://localhost/_1'. To access local IIS Web sites, you must install
the following IIS components:
In addition, you must run Visual Studio in the context of an
administrator account.
For more information, press F1."
What is strange is that nothing is listed to install. NOTE : I have run visual studio as administrator. This is a screenshot of the solution in the explorer...
Really I have 2 questions:
1) What is the project type of the second project in the solution explorer?
2) Why wont it load? I do have IIS installed and I have other sites that run under the web development server....
Web Application or Web Site.
Project was pointing to a local IIS web site but this doesn't exist anymore.
About 2), maybe you erased by error your web site code and its physical folder, or the IIS web site.

Resources