mike hodnick -> mhodnick <-> kindohm

Mike Hodnick is a geeky consultant guy living in Chaska, MN. He enjoys writing code, writing music, and doing fun stuff with his wife and daughter. This is his personal website, where you can get to his blog, music library, and other nonsense.

Latest From Twitter...

The Blog

Apparently, the ordering of your <%@ Assembly %> directive before your <%@ Page %> in custom WSS application pages makes a difference. Make sure you put the Assembly directive before the Page directive:

<%@ Assembly Name="MyWebApp, Version=1.0.0.0, 
	Culture=neutral, PublicKeyToken=abcdefg817264759" %>
<%@ Page MasterPageFile="~/_layouts/application.master" Language="C#" 
	Inherits="MyWebApp.MyForm" %>

This is incorrect:

<!-- INCORRECT -->
<%@ Page MasterPageFile="~/_layouts/application.master" Language="C#"
	Inherits="MyWebApp.MyForm" %>
<%@ Assembly Name="MyWebApp, Version=1.0.0.0, 
	Culture=neutral, PublicKeyToken=abcdefg817264759" %>

Doing it the incorrect way, you'll get a generic error message:

This rule probably applies in other ASP .Net cases, but I've never come across it before.

Technorati Tags:    
posted on Thursday, November 29, 2007 3:09 PM |

Comments

No comments posted yet.
Post Comment
Title *
Name *
Email
Url
Comment *  
Please add 5 and 7 and type the answer here: