What does Visual Studio for Mac use to host applications? - iis-express

When you hit the run button in Visual Studio for Mac, what service is it that actually temporarily runs the website? So for example if I ran the application in Windows the site would be running under Local IIS (assuming I had nothing else configured) - is there a Local IIS equivalent for Visual Studio for Mac?

Related

Windows Phone Emulator does not communicate with local WebAPI 2 services

I have a Windows Phone 8 App. It uses a series of WebAPI 2 calls to retrieve data from the server. In Visual Studio 2013 I can run the WebAPI project in Visual Studio and then run the App on an emulator through Visual Studio and everything works. For this to work I do have to run Visual Studio 2013 as an Administrator and I had to add an extra line into the IISExpress applicationhost.config file under the API application's entry as seen below:
<binding protocol="http" bindingInformation="*:56952:192.168.1.59" />
This is the line of code in the App that sets the location of the WebAPIs:
public const string APIPrefix = "http://192.168.1.59:56952";
It does not matter if I run the app on a Windows Phone 8.1 Or Windows 10 Mobile emulator, as long as I am running through Visual Studio 2013 it connects to the WebAPI project I have running in Visual Studio. Note that 192.168.1.59 is the IP address of my development machine where I am running Visual Studio.
When I upgrade the projects to Visual Studio 2015 and run everything the exact same way (run as administrator and the project names are exactly the same so I don't need to make a change to the applicationhost.config file) any call to a WebAPI returns the "Not Found" message.
Any idea what I am missing in Visual Studio 2015 to make this work?
So I did find a fix for this. If I change the API Prefix from:
APIPrefix = "http://192.168.1.59:56952";
to
APIPrefix = "http://localhost:56952";
it seems work everywhere except on the Windows 10 Mobile emulator version 10.0.14393.0. I have found the problem with that version of the emulator reported on another thread here
Unable to access local Web API from Visual Studio 2015 WIndows 10 Phone Emulator
Hope this helps other people.

Where are inetpub folder and IIS?

I have Visual Studio 2010 installed in my machine. But, there is no inetpub folder created. I was not able to find the IIS when I typed out inetmgr in the Run command. Where is the IIS? And why was the inetpub folder not created?
"By default, Visual Studio 2010 SP1 uses the Visual Studio Development Server for Web site projects and Web application projects."
http://msdn.microsoft.com/en-us/library/58wxa9w5(v=vs.100).aspx
You would need to install IIS to use the traditional IIS with inetmgr.
As already noted in the other answer, Visual Studio 2010 uses its own Development Server and not the IIS for your web application projects.
You'll need to set up IIS on your system as per instructions detailed here.
Once that's done, verify the installation by pointing your browser to http://localhost

Error when running application in debug mode from Visual Studio 2012 on windows 8

When I'm trying to run any type of project using F5 or attaching to a process an error window is displayed displaying the following:
"Error when trying to run the project: Unable to start the program
... The microsoft visual studio debugging monitor does not appear to
be running on the remote machine. This may be because a firewall is
preventing communication to the remote computer..."
But I'm debugging locally. This happens to some projects but not all.
I'm on Windows 8, Visual Studio 2012, and using Project configuration ANY CPU.
What should I do in order to debug my application locally using Visual Studio 2012?
Upgrading Visual Studio 2012 to SP2 fixed the issue.

Block development server window

Is there any way to avoid the window of development server? (Not stopping or avoiding to run the development server, just the window).
In Visual Studio 2010 (and before) it only appears when the development server was started. Now, in Visual Studio 2012 it is opened each time the project start, no matter if the development server has already started and you have closed it.
I've found that I can run projects using IIS Express. Also it will make our lives easier when we want to be able to access to the project running from other PC.
With Visual Studio 2012 it comes already installed (in fact is the default setting for projects started in it). With Visual Studio 2010 it can be installed (see post).

Visual Studio Debugging

I just installed windows 7 64 bit I cannot debug an app in Visual studio using the Cassini web server. I have attempted to use firefox, chrome and IE and nothing will let me connect in debug mode. As anyone seen this issue before? All make it appear as though the website does just not exist.
EDIT:
I cant even get a aspx page to display after the Cassini web server has been spun up by visual studio. Is simply wont connect, I have read this could have something to do with IPV6?
Edit and Continue does not work when Visual Studio is running on a 64-bit Windows operating system.
http://msdn.microsoft.com/en-us/library/ms241066%28VS.80%29.aspx
You can however perform remote debugging.
http://msdn.microsoft.com/en-us/library/ms184678%28v=VS.80%29.aspx

Resources