Bob On Development

Musings on the craft and business of software development









March 25, 2007

Tip: Migrating to IIS 6 From Earlier Versions

Filed under: — bob @ 11:29 am

I won’t re-pave this oft-visited topic, but want to mention a few interesting twists I encountered and solved moving a number of IIS sites from Windows 2000 Server to Windows 2003 Server. Microsoft provides a migration tool for converting older IIS metabases to work with IIS 6, but it is not a complete solution.

The first thing I did after migration was “complete” was to go into IIS Manager, right-click on the server node, select Properties and check the “Enable Direct Metabase Edit” box. This enabled me to open the metabase directly with Notepad (c:\windows\system32\inetsrv\metabase.xml).

The old system had logical drives C:, D: and E: whereas the new system just has a single C: drive. On the old system, web sites were located on D:\websites. A global search and replace changed them all to C:\websites. A lot quicker and less error-prone than doing that through the UI for a dozen sites.

This particular server had a few web sites that redirect to a specific URL or file rather than to a vdir, and it turns out that these are saved in the metabase with a reference to the Windows directory as their “home directory”. Moral of the story: when migrating, if your Windows directory has a different name on the new server (in my case, the old one was C:\Winnt) then do a global search and replace on that string as well.

Editing the metabase sounds scary; you certainly want to make a backup copy before messing with it. But it’s just XML, and if you’re careful with your search and replace expressions it should be no big deal.

Once you save the updated metabase file, go back to IIS Manager, right-click on the server node, and select All Tasks | Restart IIS. Frankly I don’t know if IIS detects the metabase changes and reads them in on the fly and if it does so, whether this works reliably; I figure that it’s best to force a complete restart to be sure. Besides if you’re just setting up a new server, it’s not like it’s going to disturb live users.

If you’re using ASP.NET you will probably want to run aspnet_regiis -i against the desired version of the .NET framework. This is how I noticed some of the above issues; the utility creates a log file (and notifies you it’s done so, and where it’s located) if it encounters any errors. Search that log file for the word fragment “fail” and any failure to create or find a directory is probably related to incorrect paths within the IIS metabase.

2 Comments »

  1. I can’t tell you how many times aspnet_regiis -i has saved my butt! I remember that it was particularly useful when .NET 1.1 was installed on a server for the first time - although I don’t know if the issue still exists for .NET 2.0

    Bob responds: Ah, so you’ve encountered the old “installed IIS after .NET” problem, too ;-) Yes, the issue exists and is compounded for later .NET versions because you may have the need to move some or all sites to (say) 2.0 from 1.1. In that case you’d run the 2.0 version of aspnet_regiis — using the -i argument if you want to do this for all sites, or the -sn argument if you want to do it for selected sites. You can list what sites are using what runtimes with aspnet_regiis -lk. Scott Forsyth has an excellent summary post here with more info.

    Comment by John K — March 25, 2007 @ 6:02 pm

  2. That would explain how hosting companies manage the .NET runtime for each site in each app pool, would it not?

    Bob responds: Sort of. You can set the runtime to use on a site by site basis interactively in IIS, too; aspnet_regiis is a way to do this in a batch mode for multiple sites. I frankly don’t know if IIS Manager calls aspnet_regiis to do this work for a single site, or if some other mechanism is used. But it makes sense that IIS would do so, because otherwise the IIS snap-in would have to be updated for each new framework release.

    Another issue is that you can’t run different versions of the framework within the same app pool; that has to be managed from IIS as far as I know. If anyone has more experience with this, please chime in. Oh — and you have to make sure each version of the .NET framework you want to use has been permitted within the IIS “web services extensions” node. IIS 6 has all of them locked down by default.

    Comment by John K — March 27, 2007 @ 11:41 am

RSS feed for comments on this post. TrackBack URI

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

(required)

(required)


Powered by WordPress

Augmentin Avandamet Rhinocort Elavil Gasex Glucotrol XL Zelnorm Vermox Penis Growth Oil Nymphomax Adalat Prograf Geriforte Medithin Avalide Lariam Viagra Erexor Sarafem Confido Himplasia Arimidex Fosamax ActoPlus Met Mentat Cardizem Hytrin Cafergot Lasuna Mycelex G Hyzaar Buy Pro Erex Buy Lincocin Buy Viramune Buy Micardis Buy Nymphomax Buy Omnicef Buy Effexor Buy Accutane Buy Levothroid Buy Cialis Jelly Buy Femcare Buy Amoxil Buy Aleve Buy Cephalexin Buy Lotrisone Buy Acticin Buy Touch Up Kit Buy Metabo UltraMax Buy Orgasm Enhancer Buy Penis Growth Pack Buy Levlen Buy Styplon Buy Aceon Cheap Loxitane Cheap Differin Cheap Geriforte Cheap Dramamine Cheap Sinequan Cheap Hoodia Cheap Nolvadex Cheap Womens Intimacy Enhancer Cheap Medithin Cheap Female Sexual Tonic Cheap Purinethol Cheap Inderal Cheap Flomax Cheap Orgasm Enhancer Cheap Zimulti Cheap Erexor Cheap Avandamet Cheap Ceftin Cheap Buspar Cheap ZMA Power Cheap Wellbutrin SR Cheap Hoodia Gordonii HG p57 Cheap Singulair Cheap Avandia Cheap Soma Credit reporting system For low credit scores Commercial credit report Understanding credit score Credit report and Florida free credit report Chase credit card status 3 credit reporting agencies Beacon credit score Federal credit reporting act To credit reporting agencies Fix your credit report On line credit card applications Credit card offers Card credit reward travel Credit score formula Credit reports from all Credit free instant report Annual report credit Order credit reports Instant personal credit report Credit beacon score Juniper credit card application Free instant credit reports Airline credit card miles National credit card debt Vue prepaid credit card Credit card debt calculator Chase credit card complaints Is credit score Elan credit card services Balance transfer credit cards Fix my credit score Credit card machines uk Check credit report fix Credit scores of Credit report uk Balance transfers credit cards Average credit score Increasing credit scores Is my credit score Business credit report Redit card pros cons Acceptable credit score Credit card business industrial Credit reports for Fast credit score increase Credit card debt facts On line credit report Free credit reporting Order credit report Chase credit card application Credit reporting act litigation Credit report consumer Clean up credit report Affect your credit score Credit report annual Credit report online Chase redit card Getting a credit score Credit card debt history Credit score after bankruptcy Credit scores meaning Stop credit card offer Ranked credit card offers Mobile credit card processing Linkpoint credit card machine Credit card applications in Credit report disputes Student credit card debt Credit reporting columbia house Credit report service Cheap credit card uk 0 credit card offer Credit report agencies Credit report score understanding Credit cards 0 apr Anual credit report Application aspen card credit Credit score higher Credit card debt management Citibank credit card offers Great credit card offer Free business credit reports Introductory offer credit card Money bank credit card Interpreting credit scores Get credit reports Free credit report Credit card apply online Credit score services Interest credit card offers Credit card debt eliminate Equifax credit reporting Instant credit card offer Credit card consolidation loans Bad credit score Credit card application uk Credit rating score scale Free credit score Experian credit report Credit report.com Article credit card debt Consolidation credit card debt Credit card consolidation uk Stopping credit card offer Read my credit report Obtain a credit report Mint credit card deal Raise my credit score Experian credit report uk Reports credit cards Hurt my credit score Discover credit card offer Good credit rating score Of my credit report Repairing credit score Credit reporting codes Credit reports on Hsbc credit card Credit card application online Repair my credit report Apr credit card offers Credit card debt advice Credit scores by Compare credit card offers Prepaid credit card companies Credit card debt laws Unlimited credit reports Annual credit report request Get my credit report Aarp chase credit card Card consolidation credit debt Credit report companies About credit scores Card credit debt free Transunion credit score Free credit card report Application card citi credit Corporate credit card application Credit scores work Consumer credit reports Credit scores mortgage Freecredit report Credit reporting service Credit card application with Credit scores and Personal credit report canada Credit report identity theft Free anual credit report Improving credit score Credit score uk My annual credit report Landlord credit report Credit score rates With a credit score Credit report government The credit reporting Up credit reports Instant credit reports Fre credit report Visa card bad credit Fair credit reporting act Freecreditreports Credit report repair service Free online credit report To increase credit score Bank one credit card American credit card debt Credit fix repair report Stop credit card debt Instant credit reports uk Low credit scores Colorado free credit report Free transunion credit report Of credit score Company credit report Credit reports with Personal credit score repair Credit scores only Obtain free credit score Cic credit report Eliminate credit card debt Free yearly credit reports The best credit score Credit report canada Wamu secured credit card Uk credit card debt Hsbc rs credit card Check credit report equifax Providian credit card company Secured credit or card Canada credit report Online Femcare Lipitor Muscle Pain Hydrocodone No Prescription Online Furosemide Online Inderal Online Maximum Lipotropics Online Viagra Soft Tabs Online Rythmol SR Levitra Actress Online Avalide Online Lynoral Online Neurontin Online Cardura Online Valtrex Online Fosamax Online Ditropan Online Diamox Online MetaboSafe Online Anafranil Online Viramune Online Advair Diskus Online Pro Erex Online Medrol Online Levaquin Online Echinacea Online Betnovate Online Prevacid Online Male Enhancement Oil Online Vasodilan Online Glucotrol XL Lorazepam Online Cymbalta Online Endep Online Confido Online Keftab Online Depakote Lortab Online Prozac Online Methox 400 Online Anabol AMP Online Tribulus Lipitor Side Affects Online Bentyl Online Dramamine Online Geodon Xanax Addiction Vicodine Online Indocin Online Trimox Online Shoot Carisoprodol 350 Mg Vicodin Hp Online Colostrum 800 Tramadol Cod Zoloft Withdrawal Online Cardizem Online Hangover Helper Online Isoptin Online Nolvadex Online Amaryl Online Penisole Cialis Dosage Phentermine No Prescription Vicodin Lorazepam Overdose Online Liponexol Online Sumycin Online Evecare Online Differin Online Urispas Online Biaxin Online Antabuse Online Ventolin Online Styplon Carisoprodol Soma Online Sustiva Online Prinivil Online Casodex Online Vermox Diazepam Online Cafergot Online Detrol Online Melatonin Zoloft Side Effects Online Trandate Online Reglan Xanax Dosage Lorazepam Addiction Online Avapro Adipex P Didrex Diet Pills Cialis.Com Ultram Online Calcium Carbonate Online Zyloprim Online Desyrel Online Ponstel Viagra Side Effects Xanax Withdrawal Viagra Alternatives Online GABA (HGH Booster) Online Probalan Viagra Dosage Online Orgasm Enhancer Hydrocodone Apap Online Flexisyn Adipex No Prescription Xanax Abuse Viagra Online Tofranil Propecia Generic Phentermine Online Online Mentat Online Zanaflex Online Noxide Online Loxitane Online Lukol Levitra Drug Online Extendaquin Alprazolam No Prescription Online Hyzaar Online Pletal Online Zovirax Online Cialis Soft Tabs Online Relafen Online Quibron T Online Paxil Online Rocaltrol Online Coreg Online Mevacor Carisoprodol Online Maxaquin Online Tenormin Online Remeron Online Evegen Online Claritin Ativan Drug Online QuickBust Diazepam Dosage Tramadol Hcl Online Cystone Online Nymphomax