Global.asax problem after converting to 2.0

  • Thread starter Thread starter Nattydreadlock
  • Start date Start date
N

Nattydreadlock

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