ASP.NET mismatch
From: Adam Getchell (AdamGetchell_at_discussions.microsoft.com)
Date: 09/09/04
- Next message: JohnL: "How to resize all the controls during runtime"
- Previous message: JohnL: "Re: How to show a Tab Control at the top of the Z order"
- Messages sorted by: [ date ] [ thread ]
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?
- Next message: JohnL: "How to resize all the controls during runtime"
- Previous message: JohnL: "Re: How to show a Tab Control at the top of the Z order"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|