# Wednesday, August 10, 2005

I develop with 1.1 and 2.0 - When VS 2003 creates a web solution it is configured to use the 2.0 runtime. Placeing the following code to the Global.asax's of your 1.1 projects and setting execute permissions on the aspnet_regiis.exe helps much.

protected void Application_Start(Object sender, EventArgs e)

{

      if(System.Environment.Version.Major==2)

      {

            System.Diagnostics.Process _p = new System.Diagnostics.Process();

            _p.StartInfo.FileName = "%WINDIR%\\Microsoft.NET\\Framework\\v1.1.4322\\aspnet_regiis.exe";

            _p.StartInfo.Arguments = "-s W3SVC/1/ROOT" + Request.ApplicationPath;

            _p.StartInfo.UseShellExecute = false;

            _p.StartInfo.RedirectStandardOutput = true;

            _p.Start();

      }

}

 

ASP.NET | C# | Misc
Wednesday, August 10, 2005 11:56:11 AM (W. Europe Standard Time, UTC+01:00)  #    Disclaimer  |  Comments [1]  |  Related posts:
Simplify LINQ code?
IE Active Content Update
Sergey and the cards
finally 0x1B
Five
Playing with the Windows RSS Platform

Tuesday, August 23, 2005 7:44:20 AM (W. Europe Standard Time, UTC+01:00)
There is useful tool created by Denis Bauer that allows you to easily switch the asp.net version:

http://www.denisbauer.com/NETTools/ASPNETVersionSwitcher.aspx

Regards
Angel Machín
Name
E-mail
Home page

Comment (HTML not allowed)  

Enter the code shown (prevents robots):

Live Comment Preview