Visual Studio 2013 IIS Express - visual-studio-2013

I cannot use VS2013 due to the fact that the "Visual Studio Development Server" option is missing. You can only use IIS Express, or an external host. When I use IIS Express, I get one of several errors when I launch a website with F5.
Failed to register URL "" for site "" application "/". Error description: Cannot create a file when that file already exists. (0x800700b7)
Cannot process request because the process (8204) has exited.
Neither of them make sense. I tried deleting all the configured sites in the IIS express config. I tried reinstalling IIS Express, Visual Studio. I don't see how the first error can occur. In all the demos I've seen, you can just hit F5 in VS and it works. This isn't the case here.

Right click on the Project in your solution and pick Properties.
Select web on the left side.
Choose IIS Express
Enter Project url
example:
https://localhost:44300
or you could check 'Override application root url' and type url like above

Related

Launching localhost on IISExpress: The remote device or resource won't accept the connection

I tried using IISExpress to launch my web projects in Visual Studio 2015. I have both a RESTful service project and a front end website. Neither one will launch and after drilling into the diagnostics in Internet Explorer I find the error message
The remote device or resource won't accept the connection.
I have tried resetting Internet Explorer and there is no proxy server that might be interfering with the connection.
A) Check to make sure that IISExpress is running. First, start your project in Visual Studio, then click the Start button and search for 'Resource Monitor'. Expand the 'Network' section and look for IISExpress. You could also use Ctrl-Alt-Delete and choose Task Manager to see whether IISExpress is running. If it's not there then there is a problem with IISExpress and it's not even running. In this case you can work around the issue by configuring the web project to run in IIS.
Make sure IIS is set up on the machine
How to enable IIS on Windows
Configure Visual Studio to use IIS to run the web project
Use Local IIS as a Web Server in Visual Studio
B) Check the version compatability of IISExpress with Visual Studio. IISExpress 10 does not work with VS 2017, for instance.
C) There are any number of reasons why IISExpress night not be starting
IISExpress Troubleshooting on Stackoverflow

cannot find "use IIS Express" in the Solution Explorer dropdown in VS2013

I just installed VS 2013, and I cannot find an option to use IIS express when I right click on the website project name.
Did this option get moved?
Without this option when I open an existing website, and run, I get 403.14 Forbidden error saying
HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory.
I'm new to visual studio 2013, would appreciate any help you can provide...
Open the Project Properties, and go to the Web tab. In the Servers section you should see a dropdown with three options: Local IIS, IIS Express, and External Host.
See Web Servers in Visual Studio for ASP.NET Web Projects for more information.

The website showing Error when opened with WebMatrix

I have developed a website using Asp.Net MVC which uses a SQL CE database in the App_Data. The website when run in Visual Studio, runs fine. But, when i opened it as 'site from folder' in Microsoft WebMatix. It doesn't show anything. In IE it says "Internet Explorer cannot display the webpage" and in chrome it says " Chrome could not connect to localhost:49742".
This happens on the url, where database access is performed. Basic pages work.
I tried opening other website(MvcMusicStore) using 'site from folder' and it works fine. Why does it happen in the above case when everything is similar. I cannot do the debugging since it is not happening in visual studio
It probably doesn't work because you don't have configured your site with IIS (or another webserver like Cassini).
Probably while in visual studio you have configured your project to use "visual studio development server" with "Auto-assign port". If yes, it's visual studio that starts your web server every time you press F5.

IIS Express Web Server - (Every) Port is in Use?

Today I installed VS2010 SP1 Beta, and IIS 7 Express, as I currently have IIS5 on my local development machine and thought I'd try IIS Express out.
I have gone into the properties window for my Web Application, checked the 'Use IIS Express' checkbox, created the Virtual Directory when it has prompted me, but then get the message "Unable to launch the IIS Express Web Server. Port x is in use".
I have tried changing the port number from the default value that was in there, to numerous other port numbers, but whatever value is there, I am always getting this message, and am therefore unable to use the IIS Express Web Server.
Does anyone know what the problem might be, and how to get around it?
If you are using ESET NOD32 Anti Virus, you need to change the setting of "Web access protection" => HTTP, HTTPS => Web browsers => red cross the check box of your devnev.exe (This is three state checkboxs, click the check box until red cross appeared)
I have just installed VS 2010 SP1, using the above setting to tell NOD32 to leave 'IIS Express' alone.
Reference: http://weblogs.asp.net/anasghanem/archive/2009/02/01/nod32-antivirus-is-blocking-visual-studio-built-in-development-server.aspx
What version OS are you using?
Are you able to start IIS Express from command line? Could you try the following and post the error message you are seeing.
Remove IISExpress directory located under 'My documents' folder
Go to IIS Express installation folder '%programfiles%\IIS Express' (on 64-bit machine '%programfiles(x86)\IIS Express') and try to start iisexpress.exe from command line (without passing any arguments)
I had a similar problem. It seems that if IIS Express is already running a particular site and then you try to run a project that uses that site through Visual Studio it isn't able to attach the debugger. The solution was to close any running instances of IIS Express and WebMatrix and then try running the site through Visual Studio (F5).
I recommend installing WebMatrix as it's the simplest way of managing the sites and port numbers that you are using.
I have the same problem in the visual studio 2012.
I am creating a sharepoint app for the SharePoint 2013 and it happened after some days means it was working before then I got the error:
" Unable to Launch IIS web Server " "port 62308 in use.
To fix this I just went to the settings of the web project by right clicking on the project node in in right panel under the project solution tab. Change the port number and configure the virtual directory and it worked for me.
Hope it work for anyone else in case he/she has any problem.
1- Close Visual Studio.
2- Delete IIS Express folder in Documents or edit applicationhost.config:
<bindings>
<binding protocol="http" bindingInformation=":8080:localhost" />
</bindings>
3- Delete solution file.
4- Start Visual Studio and use open website.
5- Choose your website folder.
If any body still facing the same issue ... even after trying all the above steps
try the following simple steps...
1) close all other applications
2) Download TcpView application from
http://technet.microsoft.com/en-gb/sysinternals/bb897437.aspx
3) run the application, check the localport column and see who is using that specific port
and end that task
That will solve your problem ... :)
go to solution explorer, right click on the present Application then go to properties, now click on web scroll the mouse and change the port no. from project localhost:1257
NOW RUN IT...

Unable to use IIS7 with Visual Studio 2010, MVC2.0 and NET4

Here is my environment
Windows7, Visual Studio 2010, MVC2.0 and NET4
My default web site is configured to use ASP.NET v4.0 application pool.
Here is an easy way to reproduce my problem
Create a new MVC2 application
Open the properties Window
Go to the Web tab
Check "Use IIS Local Web Server"
Click on "Create Virtual Directory" button
I get this error message
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
Notice the blank line after "...the following IIS components:"
I am running VS2010 as administrator
Pressing F1 does not bring any help
I checked my Windows eventlog files and found that my metabase was corrupted
(I thought we get rid of this in IIS7 but it looks like it is still here...)
I used this Microsoft article to restore it from an old version and now everything is working
Hope this can help somebody else
Have you tried running VS as administrator?
Right click your VS shortcut and select "Run as Administrator"
I had the same error message, in my case with VS2008, Windows 7 + IIS7, when trying to add an existing web site to a solution. I think this is one of those error messages where what it states can be a big red herring, i.e. it doesn't necessarily have anything to do with running as an administrator or not having components installed.
In my case, the web site had an HTTP binding in which the hostname was set to "localhost". Once I cleared that, it worked fine. Don't ask me why I put "localhost" in there, it just seemed to make sense at the time.
My internet hunting also turned up this brief entry, which did not work for me.

Resources