By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,526 Members | 1,888 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,526 IT Pros & Developers. It's quick & easy.

Error: Could not load type

P: n/a
I have a web application that was working fine until recently. It runs just
fine in the IDE. When I try to run it from another browser, I get this
error:

Could not load type 'TestCAD.Global'

Followed by:
Line 1: <%@ Application Codebehind="Global.asax.vb"
Inherits="TestCAD.Global" %>

The source file is listed as "global.asax". TestCAD.Global doesn't exist,
but since I didn't create "global.asax", I have no idea where the reference
came from. I'd edit the file, but I have no idea what it wants to inherit
from. The program was originally writting using VS2003. I converted it to
VS2008 and it's been working fine. I recently installed the SP1 patch which
is what I suspect is the source of the problem.

Any ideas for a fix or a work-around, I'd appreciate it.

Thanks,
Mark


Oct 7 '08 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Mark,

What do you mean with the SP1 patch, I am not aware about such a thing and I
am interested in that?

Cor

"Mark Brown" <mb****@echd.orgschreef in bericht
news:%2***************@TK2MSFTNGP03.phx.gbl...
>I have a web application that was working fine until recently. It runs
just fine in the IDE. When I try to run it from another browser, I get
this error:

Could not load type 'TestCAD.Global'

Followed by:
Line 1: <%@ Application Codebehind="Global.asax.vb"
Inherits="TestCAD.Global" %>

The source file is listed as "global.asax". TestCAD.Global doesn't exist,
but since I didn't create "global.asax", I have no idea where the
reference came from. I'd edit the file, but I have no idea what it wants
to inherit from. The program was originally writting using VS2003. I
converted it to VS2008 and it's been working fine. I recently installed
the SP1 patch which is what I suspect is the source of the problem.

Any ideas for a fix or a work-around, I'd appreciate it.

Thanks,
Mark

Oct 8 '08 #2

P: n/a
Cor Ligthert[MVP] wrote:
What do you mean with the SP1 patch, I am not aware about such a
thing and I am interested in that?
Presumably VS2008 SP1:
http://support.microsoft.com/kb/945140

Andrew
Oct 8 '08 #3

P: n/a
Mark Brown wrote:
I have a web application that was working fine until recently. It
runs just fine in the IDE. When I try to run it from another
browser, I get this error:

Could not load type 'TestCAD.Global'

Followed by:
Line 1: <%@ Application Codebehind="Global.asax.vb"
Inherits="TestCAD.Global" %>
<snip>
Any ideas for a fix or a work-around, I'd appreciate it.
That doesn't look quite right compared to a VS2008-generated global.asax
file I have:

<%@ Application Codebehind="Global.asax.vb"
Inherits="ProjectName.Global_asax" Language="vb" %>

which suggests your file is missing "_asax" in the inherits (and the
Language setting). The VS2003-generated Global.asax files I have don't have
the "_asax".

Andrew
Oct 8 '08 #4

P: n/a
On Oct 7, 5:22*pm, "Mark Brown" <mbr...@echd.orgwrote:
I have a web application that was working fine until recently. *It runsjust
fine in the IDE. *When I try to run it from another browser, I get this
error:

Could not load type 'TestCAD.Global'

Followed by:
Line 1: <%@ Application Codebehind="Global.asax.vb"
Inherits="TestCAD.Global" %>

The source file is listed as "global.asax". *TestCAD.Global doesn't exist,
but since I didn't create "global.asax", I have no idea where the reference
came from. *I'd edit the file, but I have no idea what it wants to inherit
from. *The program was originally writting using VS2003. *I convertedit to
VS2008 and it's been working fine. *I recently installed the SP1 patch which
is what I suspect is the source of the problem.

Any ideas for a fix or a work-around, I'd appreciate it.

Thanks,
Mark
You might want to open up the main dll for the site and see what class
is being created for the Global.asax.vb - typically it's either
"Global_asax" or "GlobalApplication". Once you find the name of the
class that's being created, you should be able to modify the
Global.asax to point there.

Thanks,

Seth Rowe [MVP]
http://sethrowe.blogspot.com/
Oct 8 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.