Visual Studio and IIS manager - visual-studio

forgive my dumb question, but I have a new project solution in my Visual Studio 2017. Is there anything I need to do on my local IIS Manager as far as Default Websites, in order to run that solution in VS locally?

Visual Studio 2013, 2015 and 2017 use IIS Express by default, which runs with its own separate applicationHost.config file and shares no configuration with the "real" IIS, this also means that you cannot use IIS Manager to configure IIS Express.
If you do configure IIS to use your "Local IIS Web Server" instead of IIS Express then you will need to run Visual Studio elevated ("As Administrator") to give it permission to reconfigure your local IIS. I do not know how Visual Studio decides which IIS Website to add your application-binding to - I cannot find any information about this. I guess you'll have to experiment.
Note that using Local IIS means that the project may not be portable to other machines - so if you're working on a team and your coworkers have different IIS configurations then you'll be in a mess. You should always prefer IIS Express where possible.

Related

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

Visual Studio 2013 always opens a website in IIS Express

I am having a website in ASP.Net 4.0 in VS2010 that works of IIS localhost and not IIS Express or VS local dev server. When I open this same website in VS 2013 ( File > Open Web Site...), it always uses IIS Express ( and not IIS) as in screen shot below.
Is there any way I could use the regular IIS ( not the express version) and also, can I change VS 2013 to show IIS websites and not IIS Express sites i.e. make VS 2013 use regular IIS?
If you run Visual Studio as an Administrator, it should let you access and open IIS Sites OR IIS Express Sites.
IIS Express is pretty much the same thing as IIS. The only major difference is that IIS Express does not have a configuration UI. You have to handle everything through the command line.

Could not set Use Local IIS URL Web Server for SharePoint Web Server project in Visual Studio 2010

I have a custom SharePoint ASP.NET Web Service project.
I've setup it to debug as described in http://www.sharepoint-tips.com/2007/08/web-services-on-sharepoint-making-f5.html
it used to work as long as I was working with Visual Studio 2005.
but now I want to setup Visual Studio 2010 environment,
and I'm stuck trying to set 'Use Local IIS Web server' setting in VS, the error says: "The local IIS URL ... specified for web project ... has not been configured."
Tried in both: Windows2003 with MOSS 2007 and Windows 2008 with SharePoint server 2010. All the same.
What I'm missing? thanks in advance.
For Visual Studio 2010 and SharePoint 2010, F5 should work right out of the box. There's no need for any special tricks. Have a try without that outdated blog posting.

Visual Studio 2010 and IIS Express lock up on build

I have about four web projects that I am hosting in IIS Express. Whenever I do a build in Visual Studio 2010, the build will be blocked until I manually kill IIS Express. The build then completes. A new instance of IIS Express is created that works as expected.
I tried to do a prebuild event to kill IIS Express with taskkill, but the lock up seems to happen before the prebuild event is executed :/
If I stop the hosted sites, Visual Studio 2010 will also build as normal.
From research, one possibility is IIS Express is trying to display a dialog that Visual Studio 2010 is waiting for the user to interact with, but doesn't actually display the dialog.
Has anyone else had an issue with IIS Express and Visual Studio 2010 locking up on building? Or some insight on how to debug this issue?
If i remember correct the last service pack for vs 2010 corrected that error (at least on my maschine).
Sounds like visual studio is trying to do something on port 80, which IIS is blocking ( thats the default listener port for it ).
A simple google search of port 80 visual studio brings up several promising hits ( how to configure it, and hey! 2nd one even has a fix for a similar problem. )
This happens to me constantly, but then again I'm using WinXP / VS2010 / IIS Express 7.5. I suspect the WinXP part is the culprit, perhaps a bug for this particular scenario? At any rate, VS2010 wants to rebuild one of my web apps, but appears to wait indefinitely on some files in the Temporary ASP.net directory for the web app, until I stop IIS Express.

Developing in Visual Studio 2010 with the new IIS Express web server?

Although this question isn't directly about code it's related to programming and seems better put here than, say, serverfault or superuser.
--
I'm a developer with Visual Studio 2010. Microsoft's newest web server offering for developers is IIS Express. ScottGu indicated this combination is workable:
IIS Express will work with VS 2010 and
Visual Web Developer 2010 Express,
will run on Windows XP and higher
systems,
The only option I've seen so far, is to download WebMatrix which contains and uses IIS Express, but I cannot get it hooked into VS 2010, or to download IIS Express separately.
Any ideas?
Current of July 11, 2011
Visual Studio 2010 Service Pack 1 includes the option to use IIS Express from inside VS2010.
Blog post.
Or use the Web Platform Installer.
I don't think IIS Express is available for Visual Studio 2010 yet.
Edit: Found it in Scott's post. http://weblogs.asp.net/scottgu/archive/2010/06/28/introducing-iis-express.aspx
We’ll be releasing the first public beta of IIS Express shortly. With the beta you’ll be able to right-click on a file-system folder and have IIS Express launch a web-site based on that file-system location. We’ll also be releasing a patch for VS 2010 and Visual Web Developer 2010 Express later this year that will enable you to automatically launch and use IIS Express in place of VS’s built-in ASP.NET Developer Server.
http://www.intrepidstudios.com/blog/2010/7/11/debug-your-net-web-project-with-iis-express-t.aspx has instructions on using IIS Express with VS2010 if you don't feel like waiting for VS2010 SP1 to be released.
The link to the Visual Studio 2010 Service Pack 1 (not beta any longer) is http://www.microsoft.com/downloads/en/confirmation.aspx?FamilyID=75568aa6-8107-475d-948a-ef22627e57a5.
Jesper Palm is not correct, I am able to run IIS Express Using Visual Studio after a lot of investigation. What Jaseper is mentioning(ScootGu's blog), I already have read that. Scott is only telling that the patch will be released to run 'IIS Express' within VS2010 IDE but with 'MS Web Matrix Beta 2' It is possible to run IIS EXpress with VS 2010. If u face problem contact me in by e-mail:ankitvbdotnet#yahoo.com
The current IIS Express Overview says that VS2008 and VS2010 integration is going to come in a later release (presumably before the RTM release).
A future update to Visual Studio 2010 will add support for IIS Express. You can also manually configure Visual Studio 2008 and Visual Studio 2010 to use IIS Express.
For anyone that can't/doesn't want to install the SP1 beta then this blog post will show you how you can incorporate it into your debugging in a relatively easy way.

Resources