473,396 Members | 1,683 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,396 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 2491
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.