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

Some time ago I upgraded an asp.net 1.1 application (which ran on IIS 5 and 6) to .net 3.5 and later versions of .net 4.0 (and IIS 7.5)

However, when I want to open it in VS, I need to install "IIS Metabase and IIS 6 Configuration Compatibility". It works after I installed it, but ..

How to get rid of this requirement?

+6
source share
2 answers

When debugging ASP.NET projects using the Windows 7 IIS7.5 Web Server for RTM for Visual Studio 2010, IIS6 Metabase and IIS6 configuration compatibility components are required.

However, Visual Studio 2010 SP1 fixes this dependency, and VS2010 now works with IIS7.5 without the need for IIS6 bits.

I also proved this by selecting a test project in Visual Studio 2003 and then copying to two different IIS7.5 machines configured as:

  • PC1: VS2010 RTM, IIS6 compatible
  • PC2: VS2010 SP1, no IIS6 compatibility
+2
source

Here's a long explanation (if necessary), but the short answer (which also appears there) is to run

aspnet_regiis -ga <WindowsUserAccount> 

I believe that this only happens when updating the machine or you are not the machine administrator when installing .Net / Visual Studio. I recently had to do this on a brand new laptop with Visual Studio 2010 installed by others before I got admin rights. So the way to get rid of this requirement from your end is to do the installation as an administrator.

+1
source

Source: https://habr.com/ru/post/889779/


All Articles