VS2010 Web Installer Project not recognizing IIS Express - asp.net

I built an installer for a ASP.net web application and installing from Visual Studio fails to recognize IIS Express as a version of IIS. Is this expected behavior? If so is there a workaround?

Yes... It's expected behavior, but Visual Studio 2010 SP1 recognizes IIS Express and you can use it instead of Cassini(Visual Studio Development Server).
http://blogs.msdn.com/b/webdevtools/archive/2010/12/11/visual-studio-2010-sp1-beta-iis-express-integration.aspx

Related

How can VS Code be configured to run and debug with IIS Express and ASP.NET core?

I have been able to run ASP.NET core applications with Visual Studio 2017. Visual Studio has the integration of IIS Express and ASP.NET core all setup and it works with F5.
I would like to get this same functionality in VS Code. I have found and tried the IIS extensions for VS code. They serve the files without launching the dotnet.exe process.
How can I configure my VS Code project to provide similar run/debug functionality as Visual Studio 2017?
There is an extension available in visual studio market place which can be used to configure and host web applications in IIS Express from VS Code.
Check it our here.
https://marketplace.visualstudio.com/items?itemName=warren-buckley.iis-express

IIS Express option unavailable in Visual Studio 2010

How do I enable the option to use IIS Express for a website project in my solution?
I have installed IIS Express but it does not show up as an option? I would like to use this because at the moment I cannot use IIS on my machine.
Do you have Visual Studio 2010 SP1 installed? SP1 is required to get the IIS Express option in the Web tab of your project properties. (don't forget to also do a windows update) Also, you should install the Visual Studio 2010 Web Standards Update as well.
As 'Mystere Man' said you need VS 2010 service pack (SP1) to see IIS Express option in VS. If you are sure that you have SP1 installed, did you check if IIS Express exists in the installation folder? (%programfiles%\IIS Express or %programfiles(x86)\IIS Express)
If it is not installed, you can install it from http://www.microsoft.com/en-us/download/details.aspx?id=1038
I had this problem because I opened the site through IIS. The only way to see that the project was opened through IIS is the lack of this button and the title of the Web Site project looks like: http://localhost/x rather than http://localhost:1111.
To get the ability to use IIS Express, you have to remove the Web Site project from the solution and use Add Existing Web Site then choose the file system.

My asp.net application needs the "IIS Metabase and IIS 6 Configuration Compatibility" - how to get rid of it?

Some while ago I've upgraded an asp.net 1.1 application (which ran on IIS 5 and 6) to .net 3.5 and later to .net 4.0 (and IIS 7.5)
Still, when I want to open it in VS, I need to install the "IIS Metabase and IIS 6 Configuration Compatibility". It works after I install it, but..
How to get rid of this requirement?
When debugging ASP.NET projects using Windows 7's IIS7.5 web server, Visual Studio 2010 RTM requires the IIS6 Metabase and IIS6 Configuration Compatibility components.
However Visual Studio 2010 SP1 fixes this dependency and VS2010 now works natively with IIS7.5 without any need to use the IIS6 bits.
I also proved this by knocking out a test project in Visual Studio 2003 and then copying to two different IIS7.5 machines configured as:
PC1: VS2010 RTM, no IIS6 Compatibility
PC2: VS2010 SP1, no IIS6 Compatibility
Here's a long-winded explanation (in case you need it) but the short answer (which also appears there) is to run
aspnet_regiis -ga <WindowsUserAccount>
I believe that this only happens when you upgrade a machine or you are not an administrator of the machine when you install .Net/Visual Studio. I recently had to do this on a brand new laptop with Visual Studio 2010 installed by others before I had admin rights. So, the way to get rid of this requirement from your end is to do the install as an admin.

Visual studio 2003 web projects

I have a requirement to work on a VS2003 web project.
I have VS2008,vs2010,vs2003 installed in my system
Other System details are
Windows Xp professional version 2 service pack 3. IIS 5.1
When i am trying to create a VS 2003 web project giving the localhost as path
i am getting the following error.
visual studio noted that specified web server is not running under asp .net 1.1 version.You will be unable to run asp .net web applications or services
I have used aspnet_regiis commands as well as a tool(ASPNETVersionSwitcher.exe ) to swith versions and in IIS also default web site ASP.NET version chosen as ASP.NET 1.14322.
I am still getting the error.
same error I get ,if I point a virtual directory in the existing 1.1 .NET web application and trying to open it.
Please advise, I have to work on this project as soon as possible.
Make sure all IIS Applications are using the same version of the framework. It is possible to have both 1.x and 2. I typically, uninstall using aspnet_regiis /ua which uninstalls all ASP.NET versions, then use aspnet_regiis to install ASP.NET as needed.
Make sure the "Virutual Directory" ASP.NET properties are correct for the version of Visual Studio you are using. Obviously, you cannnot use VS2k3 to connect to a ASP.NET 2.0 Virtual Directory.
Following is a dump of my installed ASP.NET versions.
C:\Program Files\Microsoft Visual Studio 9.0\VC>aspnet_regiis -lv
1.1.4322.0 Valid (Root) C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\asp
net_isapi.dll
2.0.50727.0 Valid C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\as
pnet_isapi.dll
4.0.30319.0 Valid C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\as
pnet_isapi.dll
C:\Program Files\Microsoft Visual Studio 9.0\VC>aspnet_regiis -lk
W3SVC/ 1.1.4322.2443
W3SVC/1/ROOT/ 2.0.50727.0
W3SVC/1/ROOT/Reports/ 2.0.50727.0
W3SVC/1/ROOT/ReportServer/ 2.0.50727.0
W3SVC/1/ROOT/ExceptionService/ 2.0.50727.0
W3SVC/1/ROOT/verification/ 2.0.50727.0
I've seen people create a virtual machine (pc) using Windows XP as the guest OS. They would then install Visual Studio 2003 on the virtual machine and do their development there.
From what I gather those people ran into a similar issue like yours.
Another solution that I have heard was that Visual Studio 2003 needs to be installed first, before Visual Studio 2005, 2008, or 2010 are installed. I've heard that works, but only from a clean OS install (you can't uninstall all the versions and start over.)

asp.net mvc 1.0 "project type is not supported" on Visual Studio 2008

I've installed (in this order):
64bit Windows7,
64bit Visual Studio 2008,
Microsoft Free Web Platform Installer (WEB PI)
- installed iis7
- bunch of samples
- ...
asp.net mvc 1.0
Visual Studio 2008 sp1
When opening an existing solution with mvc web application in it, i get this error:
"The project type is not supported by this installation" on Visual Studio 2008
I've noticed that almost all project templates are stored under "Program Files (x86)" not under "Program Files"...
I've also repaired vs2008, asp.net mvc 1.0 and nothing worked...
Just some things to try:
Have you updated Visual Studio 2008 to SP1 (google for download - its a bigge)?
Have you removed all previous traces of ASP.Net MVC Beta and RC installs?
Does the project contain MSTest tests and the version you are using does not support MSTest?
How did you install IIS7 (or rather 7.5 on Windows 7)? Did you do this via Add Remove Windows Features, did you enable ASP.Net when you drill into Internet Information Server ?
Can you create a new ASP.Net MVC application does this show in Add New Projects? And copy the Web.config over to the existing one? It may be possible it was created with a previous version and the assembly identies are no longer than same.
When you install Visual Studio 2008 did you untick the Web application bit in the Customize/Advance by any chance (cant recall exact wording) but IIRC it appears as sibling on the branch where Visual C# option is.

Resources