473,320 Members | 1,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Global.asax problem after converting to 2.0

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
2 2486
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
I tried to do it that way the first time, but then it also complained
with the same error.

Oct 11 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Vishwanathan Raman | last post by:
Hi I have a declared a static DataSet object SOBJ in Global.asax.I also have a localy defined DataSet LSOBJ in Global.asax which I am storing in Application State.Is there any technical...
2
by: Steve | last post by:
I am new to this newsgroup & to .NET in general. I have been playing around with Visual Studio .NET, building and rendering web pages using VB "code behind" files. My problem / question is; How...
2
by: Nattydreadlock | last post by:
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:...
15
by: =?Utf-8?B?UGF0Qg==?= | last post by:
Just starting to move to ASP.NET 2.0 and having trouble with the Global.asax code file. In 1.1 I could have a code behind file for the global.asax file. This allow for shared variables of the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.