Scott Hanselman

Updating from early ASP.NET Beta builds to Beta 2

April 22, 2005 Comment on this post [2] Posted in ASP.NET
Sponsored By

If you're upgrading some mid-BETA or CTP ASP.NET 2.0 code and you get some cryptic messages like

  • c:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Temporary ASP.NET Files\chapter 10 - 8 - csharp\3e344bac\60be3ec8\-sngkrtn.0.cs(265): error CS0115: 'ASP._Default_aspx.FrameworkInitialize()': no suitable method found to override
  • 'ASP._Default_aspx.FrameworkInitialize()': no suitable method found to override c:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Temporary ASP.NET Files\chapter 10 - 8 - csharp\3e344bac\60be3ec8\-sngkrtn.0.cs 265 
  • 'ASP._Default_aspx.GetTypeHashCode()': no suitable method found to override c:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Temporary ASP.NET Files\chapter 10 - 8 - csharp\3e344bac\60be3ec8\-sngkrtn.0.cs 272 

You'll need to make a few changes. First, you probably already updated your ASPX Markup.

In your ASPX page:

OLD: <%@ Page Language="C#" CompileWith="Default.aspx.cs" ClassName="Default_aspx" %>
NEW: <%@ Page Language="C#" codefile="Default.aspx.cs" Inherits="Default_aspx" %>

In your ASPX.CS source file:

OLD:     public partial class Default_aspx  
NEW:     public partial class Default_aspx  : Page

No free derivation any more, you have to explictly derive from a class that ulitmately derives from System.Web.UI.Page. It is that derivation that will get ride of the override compiler errors seen above. This who post also applies to pages written in VB.

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 bluesky subscribe
About   Newsletter
Hosting By
Hosted on Linux using .NET in an Azure App Service

VSVARS32.BAT missing from .NET Beta 2?

April 22, 2005 Comment on this post [6] Posted in ASP.NET | Bugs | Tools
Sponsored By

I may be completely off on this, but when I bring up a Command Prompt I always like to use the "Visual Studio Command Prompt" so my PATH is all setup. Ya ya, I know I can make it default, blah blah. Anyway, the first thing I do is usually dig into Start Menu|All Programs|Microsoft Visual Studio xxxx|Tools and get the Visual Studio Command Prompt and pull it over to the top of the Start Menu.

When messing with Beta 2 while updating chapters for our upcoming ASP.NET 2.0 book, I noticed that my Visual Studio 2005 Command Prompt was complaining about a missing file when I ran it. It was looking for something called vsvarsall.bat or something. Anyway, it doesn't exist. That seems odd that Beta 2 would ship with a broken shortcut...?

At any rate, the good old vsvars32.bat is still in there, deep in the bowels, so I set my Command Prompt to point to:

%comspec% /k ""C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\vsvars32.bat""

and I was back in business.

I'm still left wondering if it was me, something I did, some schmutz in the machine, or a legit oversight. We shall see.

UPDATE: Vote on the bug here if you like.

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 bluesky subscribe
About   Newsletter
Hosting By
Hosted on Linux using .NET in an Azure App Service

Creating an Explorer Overlay for NTFS Junctions/ReparsePoints/SoftLinks

April 20, 2005 Comment on this post [6] Posted in Programming
Sponsored By

JunctionIconOverlay_folderTravis beat me to it and in record time. I created a small right-click menu a while back to detect Junctions. I did it mostly because it was 5 minutes work, and I didn't want to take 30 minutes to learn about how to make a File Overlay in Explorer.

I figured I'd get to it one day (yeah, right). Travis, on the other hand, couldn't handle it and took the time. He rocks.

So, Travis gives us, Junction Icon Overlay, today's Cool Util. We should thank Travis by crushing his server with overwhelming amounts of traffic.

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 bluesky subscribe
About   Newsletter
Hosting By
Hosted on Linux using .NET in an Azure App Service

And the site launching continues...Microsoft eLearning

April 19, 2005 Comment on this post [2] Posted in Learning .NET | Javascript | XML
Sponsored By

ElearningYou know, you'd think Microsoft was really serious about this whole MSDN thing, eh?  :)

I've been really impressed with the vast (and useful) amount of content that's been produced on MSDN over the last several weeks.

There's a new Developer eLearning site on MSDN. The contest ain't too shabby, either. A 50" Plasma WEGA HDTV. Yes, please.

I liked their style as well:

"Our contest grabs your attention - Our content will keep you coming back"

They've got some slick new JavaScript-based (IE-only) courseware, like this one on Windows 64-bit. Apparently there's a number of new classes on Windows Server 2003 coming soon.

All this, and an RSS Feed? Subscribed.

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 bluesky subscribe
About   Newsletter
Hosting By
Hosted on Linux using .NET in an Azure App Service

Coding4Fun is LIVE! - A new syndicated MSDN Column

April 18, 2005 Comment on this post [13] Posted in Coding4Fun | XML | Gaming
Sponsored By

I can finally tell my little secret. I'm a part of the new Coding4Fun site that was launched as a part of Beta2 today.

Coding4Fun is a new .NET 2.0-focused hobbyist site with a number of great syndicated columns including ones on creating games, web development, XML and my new column on interfacing with hardware called Some Assembly Required. (It's a triple play on words if you think for a sec)

My first article is on interfacing a CrystalFontz USB LCD Display to Windows Media Player or iTunes using .NET 2.0.

There's a lot of great code up there now, and lots more coming. I'm pretty impressed with the 'Express' SKUs for Visual Studio, and I hope they will inspire more hobbyist developers to jump in and enjoy.

Updated: Here's an RSS Feed.

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 bluesky subscribe
About   Newsletter
Hosting By
Hosted on Linux using .NET in an Azure App Service

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