Yes, .NET 2 and 3.5 are different to 1.1 and do not pick up the CodeBehind as you would expect by default .
The easiest thing to do is just put your Global.asax.cs within the App_Code folder then remove the CodeBehind attribute.
So Global.asax will contain:
asp Code:
<%@ Application Inherits="HitCounters.Global" %>
and Global.asax.cs should look like:
csharp Code:
using System;
using System.ComponentModel;
using System.Web;
using System.Web.SessionState;
namespace HitCounters
{
public partial class Global
: System.Web.HttpApplication
{
// ... methods ...
}
}
HTH
Phil