7/25/2005

IISRESET Yields "Class not registered", ASP.NET 2.0 Solution Model, and Virtual Earth

Here's the fix:

Use the following command:
C:\Windows\system32\inetsrv\iisrstas.exe /RegServer

While I am on this, IISRESET comes with some handy command line switches that many people are not aware of:


IISRESET.EXE (c) Microsoft Corp. 1998-1999

Usage:
iisreset [computername]


/RESTART Stop and then restart all Internet services.
/START Start all Internet services.
/STOP Stop all Internet services.
/REBOOT Reboot the computer.
/REBOOTONERROR Reboot the computer if an error occurs when starting,
stopping, or restarting Internet services.
/NOFORCE Do not forcefully terminate Internet services if
attempting to stop them gracefully fails.
/TIMEOUT:val Specify the timeout value ( in seconds ) to wait for
a successful stop of Internet services. On expiration
of this timeout the computer can be rebooted if
the /REBOOTONERROR parameter is specified.
The default value is 20s for restart, 60s for stop,
and 0s for reboot.
/STATUS Display the status of all Internet services.
/ENABLE Enable restarting of Internet Services
on the local system.
/DISABLE Disable restarting of Internet Services
on the local system.


Tip: I keep a link to this on the tray, and if I am working with a solution where IIS has a lock on a file, all I have to do is hit it, and I am good to go!


Now, the

ASP.NET 2.0 "FileSystem" based Solution model:
I've read lots of complaints about not being able to find or reload a WebSite solution using the File System Option. That's not accurate. If you want to be able to reload a complete Solution that has a File System - based web site in it (using the built-in "cassini-meanie" Web server), just SAVE the solution file in the same folder! Now you can zip it up and send it to somebody, and when they click on the Solution file, everything will be just fine! This includes any and all additional Class Library or Control projects in the solution, as long as you have placed them under the folder tree that represents the root of the FileSystem - based Web Site. Really, I find it difficult to understand why this seems to be such an obstacle to some developers. All this fiddling with IIS and worrying about permissions and everything else is just made incredibly easy with this method. And, you can always change it to a real IIS - based web solution anytime you want. In addition if you've got SQLExpress MDF etc. files for a database that is reference by and goes with the solution, you are good to go with no hassle at all! I just don't think it can get any easier. . .

These incessant kvetchers remind me of the joke about the Jewish grandmother at the beach whose 5 year old grandson is suddenly swept out to sea by a huge wave. She looks up to the heavens and says, "Dear God, please send him back! He's my only grandson!" Suddenly another huge wave rolls in and deposits the kid back on the beach, good as new. She looks up to the heavens and says, "He had a HAT!"....

Finally, MS is releasing an early version of Virtual Earth here. Let's see what the API looks like. Here is some API Stuff.. Its very easy to use!