ASP.NET mismatch

From: Adam Getchell (AdamGetchell_at_discussions.microsoft.com)
Date: 09/09/04


Date: Thu, 9 Sep 2004 10:13:01 -0700

Yesterday, I received a nice error out of the blue for a web project,
Commencement, that thankfully I had mostly finished:

"Visual Studio .NET has detected that the Web server is running ASP.NET
version 1.0. The Web application you are creating or opening can be
configured to be compliant with ASP.NET 1.0. However, the application will
not be able to use new features from ASP.NET 1.1"

I select Cancel, because I don't want to downgrade. Now the funny thing is
that I have never used .NET 1.0, and that development webserver has been
running .NET 1.1 for months.

I verified our webserver was running ASP.NET version 1.1 by going to IIS
Manager\Default Web Sites\Commencement\Properties\Directory\Configuration,
then checking the .aspx Application extension which is:

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll

Then verifying by re-registering ASP Framework 1.1 with IIS:

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322>aspnet_regiis -i Start
installing ASP.NET (1.1.4322.0).
Finished installing ASP.NET (1.1.4322.0).

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322>

And finally reinstalling the .NET 1.1 framework, all with reboots and
restarts of IIS.

On the client side, I reinstalled VisualStudio to be sure, but one of our
other developers experiences the same problems so I know it's not (just)
VisualStudio.

Searches of the KB return the reverse case (1.0 to 1.1):

http://support.microsoft.com/default.aspx?scid=kb;en-us;827074

Ditto Google:

http://www.kbalertz.com/kb_827074.aspx

Now here's where it gets better: opening another web application on the same
server doesn't return the error. And by inspecting the Solution references
(e.g. System) you can see it's Runtime version is v1.1.4322. In fact, all
references in both applications (e.g. System, System.Data, System.Web are
Version 1.0.5000.0 located in the
%SystemRoot%\Microsoft.net\Framework\v1.1.4322\ directory.

Which is the same runtime version as the System\mscorlib reference in
Commencement.

And both applications are in the same Application Pool, DefaultAppPool.

So why does Visual Studio think that one web application on the same server
in the same Website in the same Application Pool is running ASP.NET v1.0,
while another web application is running ASP.NET v1.1? There isn't a single
reference to v1.0 anywhere in IIS …. (and if there was, aspnet_regiis -i
should have changed them all)

Any ideas on how to fix this?



Relevant Pages

  • Re: IssueTracker (VB) Starter Kit
    ... > I'm only trying to open the Visual Studio project. ... When it can't find a suitable web server it complains. ... >> machineA(with IIS) can detect this? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Upgrading to .NET
    ... The server and IIS are OK, you just need either Visual Studio .NET 2003 ... or the free Web Matrix ...
    (microsoft.public.vsnet.general)
  • Re: Advantages of using the Visual Studio Development Server (VSDS) compared to IIS
    ... I have just installed Visual Studio 2005, ... application using either the IIS Web Server or the Visual Studion ... You don't have to install IIS. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: virtual PC/Server 2003 hosting glitches...
    ... are you using Visual Studio 2003 or 2005? ... being called a "file system" web project and the server is only available on ... because IIS is not necessary. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Slow booting xp home.
    ... The LexBce Server service terminated unexpectedly. ... Windows is loading will come on and then the desktop, ... I read somewhere that Microsoft ... Visual Studio Source Control and SourceSafe -» ...
    (microsoft.public.windowsxp.perform_maintain)