I have an issue running IIS express in Visual Studio 2012 and 2015. This is the issue I've been getting:
Unable to launch the IIS Express Web server.
Failed to register URL "http://localhost:55920/" for site "SITE NAME"
application "/".
Error description: The process cannot access the file because it is being
used by another process. (0x80070020).
I have read the various posts on here and tried the various solutions but they don't seem to work. This is what I have tried:
Deleting IISExpress folder.
Running Visual Studio as administrator.
Deleting .vs folder in the 2015 projects
Running netstat or tcpview to find the port that is actually using it is not listed.
These are the only solutions that work:
Restarting the computer
Changing the port - This works in the short run, but it may throw the same error next time on the new port designation.
I ran these projects before I upgraded my OS, and never had an issue with the ports. For some reason, once I upgraded to Windows 10, I've been encountering this issue. Is there something that went wrong when the OS was upgraded?
Related
I have just setup up IIS 10 on a clean Server 2016 hosted server, and installed the following packages that I have gleaned should be on the machine to allow IIS to host ASP.NET Core applications:
aspnetcore-runtime-2.1.0-win-x64.exe
dotnet-hosting-2.1.0-win.exe
dotnet-runtime-2.1.0-win-x64.exe
I have installed my app straight into the Default Web Site and replaced all files in C:\inetpub\wwwroot\ with my app files. I also did assign the web site an app pool with no managed code, so that isn't my problem.
Last time my app was built with 2.0, and I installed the latest versions of the above packages, which I'm sure was 2.0, and the only error I had was that the command dotnet that IIS uses to invoke Kestrel to run the site, was not in the PATH env. variable
Now when I try and browse to localhost on the Server 2016 machine, it gives me the following error, found in the Windows event log:
Application 'MACHINE/WEBROOT/APPHOST/DEFAULT WEB SITE' with physical
root 'C:\inetpub\wwwroot\' failed to start process with commandline
'dotnet .\QuickDrive.Mvc.dll', ErrorCode = '0x80004005 : 8000808c.
Initially I tried with the same build as before, which was 2.0, and when I got this error, I rebuilt the app to target 2.1. Nearly every search result and relevant SO answer I can find suggest a version conflict, but now there should at least be no version conflict between the runtime and hosting package on the server. Maybe there are other version conflicts I am not aware of though?
At very least I'm asking for some advice on how to get more detailed diagnostic information, even if I don't get an answer that tells me straight what config options and versions to check on Windows and on IIS.
You have to install the Core SDK for whatever version you want to target in Visual Studio. Installing the runtime alone won't do the trick. You may have the restart Visual Studio afterward to see it in the list.
Here is a link to the SDK 2.1 download (the latest as of this writing).
I solved the problem by running dotnet myWesite.dll in PowerShell, and first I found that dotnet.exe was not in the PATH environment variable, and after fixing that, running dotnet myWesite.dll again gave me a meaningful error message that an assembly was missing because it had not been included when I published the website.
I faced the same error on the dev machine in IIS Express. MVC App stopped working all of the sudden. Eventlog gave the 0x80004005 error code.
After trying multiple suggestions, the solution to debug the wired error code was to run the app in the console:
[Project bin folder]> dotnet [projectname].dll
It appeared that during the NuGet package update, the dotnet core version was accidentally updated to 2.1.4 where as the installed version was 2.1.3
[could be a bug in Nuget manager as the update was from there]
I edited the project file to reference the available version (2.1.3) and the app started to work properly.
I am trying to run my asp.net core application (1.0 , 1.1 or 2.0) using IIS instead of IIS Express. However, when I try to do that I get the following error message:
Unable to start process c:\Program files\dotnet\dotnet.exe. The web
server failed with status code 500, Internal Server Error
It does work with IIS express
P.S tried reinstalling the dotnet core and starting VS ad administrator
applicationhost.config has a lot of information in it, but the section I needed to change was under the sites tag. The physical path was set to the directory where the project was located on my other computer. I changed the path to match the path on my current computer and all worked fine. Not sure why this path isn’t relative one it exists within the solution. This is the line that I needed to change.
<virtualDirectory path="/" physicalPath="C:\Users\ericl\Source\Repos\ASP.NET Core Contacts\Contacts\src\Contacts" />
As an alternative it also works to close Visual Studio delete the whole .vs folder and reopen the project in Visual Studio. This causes the config file to regenerated with the proper values.
for more details
I was wondering if someone could help me out here. I keep getting the following errors during the installation of Socket.io on windows 7 64 bits: http://pastebin.com/YMQgWNRu
I've done the following things already:
Added Nodejs path variable
Added Python path variable
Installed Microsoft windows SDK
Played around with the visual studio settings
The Socket.io folder ends up being created in the modules folder (inside Nodejs), but anything fails to find the socket.io module.
Edit: I noticed some dutch language in the error log: "Het systeem kan het opgegeven bestand niet vinden." means "The system could not find the requested file".
I can't believe that I finally fixed it, but I did. For anyone reading this and going through the same nightmare here is what I did:
First of all I made the mistake of trying to install the Socket.io inside the NodeJS folder. It should be in installed in your project folder.
I uninstalled visual studio (and 2010 C++ redis.) and started from Visual Studio 2010 and went from there using '--msvs_version=xxxx'. At Visual Studio 2013 Express my installation was for some reason successful.
Starting a web project in IIS Express 10 and Visual Studio 2015 results in the following error when running the 64 bit version of IIS Express but works fine with the 32 bit version.
Process with an Id of 9172 is not running.
These are the fixes I have tried, all have failed:
Rename/Delete the IISExpress folder under my documents.
Run Visual Studio as Administrator at all times.
Reboot...because turn it off and on again.
I checked the _CSRUN_DISABLE_WORKAROUNDS environment variable as indicated here but it was already set.
Repair IIS Express 10 in Programs and Features.
There already seems to be a Connect issue registered with Microsoft which is Active but this has been ongoing since VS 2010. I have also done some investigation.
Running C:\Program Files (x86)\IIS Express\iisexpress.exe, starts fine. This is presumably the 32 bit version.
Running C:\Program Files\IIS Express\iisexpress.exe (Which I assume is the 64 bit version) results in the following error:
Filename:
\?\C:\Windows\Microsoft.NET\Framework64\v4.0.30319\CONFIG\web.config
Line number: 519 Error: The configuration section
'microsoft.applicationServer' cannot be read because it is missing a
section declaration.
It seems that you have updated C:\Windows\Microsoft.NET\Framework\v4.0.30319\CONFIG\web.config but not updated C:\Windows\Microsoft.NET\Framework64\v4.0.30319\CONFIG\web.config. So, please compare the two files and sync them to solve the problem.
I had a similar problem - the key to solving it was to run iisexpress from the the command line and then look at the error. In my case it said the XML was malformed. I then tried to edit the web.config in XmlNotepad which told me exactly where the bad XML was. In this case - something had put a bad comment in the file - I removed it (IE, fixed the XML issue) and then iisexpress was able to run OK on the command line and in VS 2015.
When trying to change the project url for my MVC 4 web app, i got some weird error.
So first what i did:
Changed Project Url from
http://localhost:54300 to http://192.168.1.26:54300
Changed the bindingInformation for my site to
*:54300:192.168.1.25:54300
Added address:
netsh http add urlacl url=http://192.168.1.26:54300/ user=everyone
So when i am trying to run my web app from visual studio i get the error
"Unable to launch the ISS Express Web Server"
When running my web app from Webmatrix or if i start IIS express from command line, everything works.
What i've tried: Reinstall visual studio, but no effect.
Any suggestions?
Start your project using the Visual Studio Development Server and see if it works. If it does then it means its a configuration problem. Close Visual Studio, back up or rename the %USER_HOME%\Documents\IISExpress folder. Re start Visual Studio again and open your application. Right Click your application and select Use IISExpress.
Hope it helps.