Anatoly Lubarsky

Logo
MSSQL, .NET, Design. Life and Music

ASP.NET: Bug in IIS - .NET runtime versions compatibility

Everyone seems to be quiet on this. We have already SP1 out for both VS2003 and VS2005 but seems like that many issues are yet to be fixed...


Suppose the following scenario:


  • Create ASP.NET application in VS2003.
  • Compile it, test.
  • Create a MSI setup in VS2003 (I'm still in the same solution).
  • So, take your MSI and deploy it to another computer.

The bug: When MSI is installed on that another computer - it is installed under IIS virtual derectory and the application is configured as .NET 2.0 runtime application in IIS by default. You cannot know this until you browse IIS administration panel for that application.


Which can cause unpredictable results, since:


  • This scenario is not tested.
  • It forces rendering as XHTML compliant, while VS2003's ASP.NET generated HTML is not XHTML compliant. Like it renders ClientID as ctl00_controlId if we use master page, while ASP.NET 1.1 renders it the other way.
  • Not to mention .NET 1.1 does not support XHMLconformance tag in web.config.
  • The application is not performant since it was not compiled under the runtime it runs.
  • There are other incompatibilities since ASP.NET 2.0 is not fully backward compatible with ASP.NET 1.1.

If you ask - there is a reason why the application is build with VS2003 and not VS2005.


My advice: instead of being so enthusiastic about reporting bugs fixed in VS2005 SP 1 or reporting getting MVP awards (for answering the same questions in forums year after year ?) - start to take care of real things.


P.S. And for god sake - why is it impossible in VS2005 to compile for .NET 1.1 runtime ?


Related Posts:

Friday, January 05, 2007 3:06 AM

Comments

# re: ASP.NET: Bug in IIS - .NET runtime v
For building for 1.1 while using VS2005, take a look at MSBee:

http://www.codeplex.com/Release/ProjectReleases.aspx?ProjectName=MSBee

1/5/2007 4:34 AM by Dan McKinley

# re: ASP.NET: Bug in IIS - .NET runtime versions compatibility
Dan: I know about MSBEE, while I want VS integrated solution and also MSBEE does not support ASP.NET scenarios.
As far as Winforms is concerned I want an integrated setup solution that builds obfuscates assemblie and creates setup. Seems like it is easier to build it with VS2003 since it will run under .NET 2.0 except the ASP.NET case :(

1/5/2007 3:43 AM by Anatoly Lubarsky

If your feedback doesn't appear right away, please be patient as it may take a few minutes to publish.

Post a Comment

Protected by CAPTCHAEnter the code you see
Name (*)  
E-mail (*)  
Url
Remember

Comment (*)