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

Global.asax problem after converting to 2.0

P: n/a
Hello,
I tried to convert my ASP.NET 1.1 project to ASP.NET 2.0.
Apart from some warnings most things went fine.
There was one error though. When I try to run my project it keeps
saying: "Could not find type "myapp.Global""
This error is located in the global.asax-file.
When I converted the project it put three files in the folder App_Code:

-assemblyinfo.vb
-Pageconfigurationfilter.vb(a httpmodule that i use)
-global.asax.vb
so i put global.asax.vb manually back in its original place, was that
correct to do?
Does anyone know how to solve this problem?
Greetz
Kenneth
VB.NET developer@ Combell

Oct 11 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Put it back in the app_code folder. .NET 1.x acted more like ASP than 2.0
does. The app_code folder is used for "global types" for an app, although the
word global is a bit misleading (project types?). You should use that folder
for your classes that have to be accessed by the project.

NOTE: By default, ASP.NET 2.0 compiles each page into a separate assembly.
The benefit is being able to update one page. The downside, however, is
internal methods are not available to your pages when using the default
compilation. You can compile a complete ASP.NET 2.0 project into a single
assembly, however.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
"Nattydreadlock" wrote:
Hello,
I tried to convert my ASP.NET 1.1 project to ASP.NET 2.0.
Apart from some warnings most things went fine.
There was one error though. When I try to run my project it keeps
saying: "Could not find type "myapp.Global""
This error is located in the global.asax-file.
When I converted the project it put three files in the folder App_Code:

-assemblyinfo.vb
-Pageconfigurationfilter.vb(a httpmodule that i use)
-global.asax.vb
so i put global.asax.vb manually back in its original place, was that
correct to do?
Does anyone know how to solve this problem?
Greetz
Kenneth
VB.NET developer@ Combell

Oct 11 '05 #2

P: n/a
I tried to do it that way the first time, but then it also complained
with the same error.

Oct 11 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.