Scott Hanselman

Visual Studio Express 2005 - C# Edition - will upgrade your ASP.NET to 2.0 without asking...Fix here...

June 30, '04 Comments [7] Posted in Web Services | ASP.NET
Sponsored By

Even though it is called the Visual C# 2005 Express Edition and they explicitly point you to the Visual Web Developer 2005 Express Edition for web site development, the Visual C# 2005 Express Edition (and no doubt others) will still upgrade your ALL YOUR ASP.NET VDIRS to version 2.0.40607.0 without asking.

You can go your %windir%\Microsoft.NET\Framework\v1.1.4322 directory and run:

ASPNET_REGIIS -r

to replace the ScriptMaps with ASP.NET 1.1, and you're back in business.

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

CRASH WARNING: SnapStream Beyond TV doesn't work at ALL with .NET Framework 2.0 BETA, fix here.

June 30, '04 Comments [5] Posted in XML
Sponsored By

Today's warning to the PVR user, SnapStream's Beyond TV doesn't work at ALL with .NET Framework 2.0 BETA.  It's a 1.1 app, and .NET 2.0 is automatically being used when it loads and it crashes stupendously.  Since I have .NET 1.1 on my box, I'm surprised it automatically used the newer Framework.  I need to refresh myself on the rules.

To fix it, add files

  • WTLPVSApp.exe.config
  • PVSGuideUpdaterService.exe.config
  • PVSLogService.exe.config
  • SSBatchProcessorService.exe.config

and to each add these lines:

<?xml version="1.0"?>
<configuration>
  <startup>
    <supportedRuntime version="v1.1.4322" />
  </startup>
</configuration>

NOTE: This fix (with the appropriate my.exe.config) will likely fix other apps that may start acting strange after you install Visual Studio.NET Express or the Community Edition.

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

Visual Studio.NET Express Beta 1 requires the Windows SP2 Firewall be turned off to install. Oy.

June 30, '04 Comments [2] Posted in ASP.NET | Tools
Sponsored By

The readme for the new Visual Studio Express Beta

Windows XP SP2
Issue: On a computer running Windows XP Service Pack 2 (SP2), the Web download will fail, as the firewall is enabled by default.

Workaround: Disable the firewall and check to make sure the Proxy settings are enabled. This can be checked by opening Internet Explorer. On the Tools menu, click Internet Options, and then click the Connections tab. Click LAN Settings. The Automatically Detect Settings check box should be checked. If it is not, check it and click OK. Then run Setup again."

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

How to list all the files in an MSI Installer using VBSciript

June 29, '04 Comments [1] Posted in Programming
Sponsored By

Just a quickie today, someone wanted me to give them a list of all the files that were inside an Windows Installer (MSI) and I remembered that MSI's were databases (Access?) so:

Option Explicit
Const msiOpenDatabaseModeReadOnly = 0
Dim installer : Set installer = Nothing
Dim WshShell : Set WshShell = CreateObject("Wscript.Shell")
Dim szMSI : szMSI = WScript.Arguments.Item(0)
Dim folder : folder = WshShell.CurrentDirectory
Set installer = Wscript.CreateObject("WindowsInstaller.Installer")
Dim database : Set database = installer.OpenDatabase(szMSI, msiOpenDatabaseModeReadOnly)
Dim View, Record
Set View = database.OpenView("SELECT FileName FROM File") 'could include FileSize, etc
View.Execute
Do
 Set Record = View.Fetch
 If Record Is Nothing Then Exit Do
 Wscript.Echo Record.StringData(1)
Loop
Set View = Nothing
Wscript.Quit(0)

You call it like this: cscript WhateverFileName.vbs YourInstallerDatabase.msi

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

Power User Windows Registry Tweaks

June 29, '04 Comments [8] Posted in ASP.NET | Tools
Sponsored By

I've collected these over the years, and I keep them in My Documents so I can setup a new machine the way I like it.  I remember where I found a few, others not so much.  So, if I've not thanked you - thank you.  If you were the one that made a particular hack, let me know in comments and you'll be attributed.

Warning: Use this stuff so VERY much At Your Own Risk.  And read them in notepad before you double-click to make sure any paths are appropriate to your machine.

Enjoy.

UPDATE: Sorry, my ISP was blocking .reg extensions.  They are now .txt, you'll need to SaveAs... them yourself.

UPDATE^2: Oy, sorry again, bad link on VolumeCaches.reg and bad chars in MajorControl.reg.  Fixed.  Thanks for catching it.

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.