J
Joe Befumo
I just created the default personal site project in Visual Studio 2005, and it worked perfectly -- very nice.
Next, I'd like to import some stat-capture code that I have working in a Visual Studio 2003 asp,net project.
The first think I noticed is that in the 2003 project, there's a global.asax and a global.asax.vb file, with the code being in the latter. Since the 2005 project had a routine directly in the global.asax file, I moved it to my imported global.asax.vb file. In global.asax I put a line like so:
<%@ Application Codebehind="Global.asax.vb" Inherits="PersonalSite.Global"%>
where PersonalSite is the name of my new project (paralleling what was in my 2003 project).
I get several build errors:
Could not load type 'PersonalSite.Global', in global.asax,
and one indicating the Global is not valid as an indentifier, for
Public Class Global
in Global.asax.vb.
I also noticed that there were no session_start, application_start, etc., procedures in the automatically-created project.
Are these procedures no longer used? If so, where would one put code that must run when the session or application starts and ends?
Thanks.
Joe
Next, I'd like to import some stat-capture code that I have working in a Visual Studio 2003 asp,net project.
The first think I noticed is that in the 2003 project, there's a global.asax and a global.asax.vb file, with the code being in the latter. Since the 2005 project had a routine directly in the global.asax file, I moved it to my imported global.asax.vb file. In global.asax I put a line like so:
<%@ Application Codebehind="Global.asax.vb" Inherits="PersonalSite.Global"%>
where PersonalSite is the name of my new project (paralleling what was in my 2003 project).
I get several build errors:
Could not load type 'PersonalSite.Global', in global.asax,
and one indicating the Global is not valid as an indentifier, for
Public Class Global
in Global.asax.vb.
I also noticed that there were no session_start, application_start, etc., procedures in the automatically-created project.
Are these procedures no longer used? If so, where would one put code that must run when the session or application starts and ends?
Thanks.
Joe