Robert McLaws: FunWithCoding.NET

Public Shared Function BrainDump(ByVal dotNet As String) As [Value]

News

<script type="text/javascript"><!-- google_ad_client = "pub-4330602465258980"; google_hints = "ASP.NET, VB.NET, C#, C#.NET, WindowsForms, .NET Framework, VS2005, Visual Studio, XAML, WinFX, Windows Workflow, WPF, WCF, Atlas, NetFX3, Visual Studio Orcas"; google_ad_width = 120; google_ad_height = 240; google_ad_format = "120x240_as"; google_ad_type = "text_image"; google_ad_channel ="4997399242"; google_color_border = "B6C9E7"; google_color_bg = "EFEFEF"; google_color_link = "0000FF"; google_color_text = "000000"; google_color_url = "002C99"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
<!--
-->

You should feel free to challenge me, disagree with me, or tell me I'm completely nuts in the comments section of each blog entry, but I reserve the right to delete any comment for any reason whatsoever. That said, I will most likely only delete abusive, profane, rude, or annonymous comments, so keep it polite, please.

Blogroll

Cool .NET Articles

My .NET Tools

My Builder.com Articles

My MSKB Articles

Remapping ASP.NET Runtime Versions in IIS6

Earlier last month I saw someone complain that you could no longer use aspnet_regiis in Windows Server 2003 running IIS6. Having just repaved both my employer's and my personal machine to run WS2K3, and installed VSNET2002 and VSNET2003 SxS, I can gladly say that this is not the case.

I wanted to be running WS2K3 so that I could mimic the configurations that my employer uses at both hosting companies, MaximumASP and OrcsWeb. Truth be told, I like the OrcsWeb setup TONS better than MaxASP, but this is all relatively speaking anyways since I like my own hosting setup the best. Anyways, some of the apps on my machine run off .NET 1.0, and some off .NET 1.1. There is a REAL simple way to remap IIS to which ever one you want on a per-application basis. Simply navigate to:

x:\%WINDIR%\Microsoft.NET\Framework\%FRAMEVER%\

where:

 x = your system drive
%WINDIR% = your windows directory
%FRAMEVER% = version of framework you want to map, either v1.0.3705 or v1.1.4322

From there, just type aspnet_regiis -s /w3svc/%IDENTIFIER%, where %IDENTIFIER% is the ID of the Website in IIS6, as seen in this screenshot:

And there you have it. Your app is remapped. Now you can have different sites using different versions of the runtime, without messing with your web.config or publisher policies.

Comments

No Comments