From: Rob T on
When I was using VS2003, I was able to compile my asp.net project locally on
my machine and copy it to the production server and it would run just fine.

I've now converted to VS2005. The project compiles & runs fine locally, but
when I copy to the production machine, I get this error:

Parser Error Message: Could not load type 'Global'.
Source Error:
Line 1: <%@ Application Codebehind="Global.asax.vb" Inherits="Global" %>
Source File: D:\Inetpub\wwwroot\WiseERP\global.asax Line: 1

I thought perhaps I could change the Root Namespace to "WiseERP" (it was
blank), but then I can't get the project to compile. In the
aspx.designer.vb file It doesn't like Protected WithEvents HelpMain As
Global.Help I thinks it should be Protected WithEvents HelpMain As
Global.WiseERP.Help. I have about 500 pages on this site...and would like
to avoid having to change each one...just to find out this really isn't my
problems.

Thanks for your help!


From: Mark Fitzpatrick on
You did mark the directory WiseERP as an application correct? If not, then
the global.asax is looking for a dll in the wrong bin file. It will be
looking for D:\inetpub\wwwroot\bin instead of the bin directory in the
WiseERP since the wwwroot is the next application up in the heirarchy.

Something else to keep in mind, if you use the Web Site project, it's not
the same as the VS 2003 web project. The Web Site project does all
compilation dynamically, which can lead to pages being compiled before
others. The Web Application Project, which was available as an add-on to VS
2005 and is now part of VS 2005 SP 1, is more akin to the VS 2003 web
project in that it compiles everything into a single dll. That could also
avoid the error you are seeing if it's a matter of timing for the
compilation.


--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"Rob T" <RTorcellini(a)DONTwalchemSPAM.com> wrote in message
news:eKIOAwiaHHA.4396(a)TK2MSFTNGP06.phx.gbl...
> When I was using VS2003, I was able to compile my asp.net project locally
> on my machine and copy it to the production server and it would run just
> fine.
>
> I've now converted to VS2005. The project compiles & runs fine locally,
> but when I copy to the production machine, I get this error:
>
> Parser Error Message: Could not load type 'Global'.
> Source Error:
> Line 1: <%@ Application Codebehind="Global.asax.vb" Inherits="Global" %>
> Source File: D:\Inetpub\wwwroot\WiseERP\global.asax Line: 1
>
> I thought perhaps I could change the Root Namespace to "WiseERP" (it was
> blank), but then I can't get the project to compile. In the
> aspx.designer.vb file It doesn't like Protected WithEvents HelpMain As
> Global.Help I thinks it should be Protected WithEvents HelpMain As
> Global.WiseERP.Help. I have about 500 pages on this site...and would
> like to avoid having to change each one...just to find out this really
> isn't my problems.
>
> Thanks for your help!
>


From: Rob T on
Sorry about my stupidity on this...

I'm assuming you're talking about the Home Directory of the IIS admin. I
hit the Remove and Create button to set this. currently the settings are:
Local Path: D:\inetpub\wwwroot\wiseerp
Application name: Default Application
Starting point: <WiseERP>
Execute permissions Scripts only
application pool: DefaultAppPool

Also I have SP1 installed and have already "Convert to Web Application" in
VS.

"Mark Fitzpatrick" <markfitz(a)fitzme.com> wrote in message
news:%23Ogad5iaHHA.4772(a)TK2MSFTNGP05.phx.gbl...
> You did mark the directory WiseERP as an application correct? If not, then
> the global.asax is looking for a dll in the wrong bin file. It will be
> looking for D:\inetpub\wwwroot\bin instead of the bin directory in the
> WiseERP since the wwwroot is the next application up in the heirarchy.
>
> Something else to keep in mind, if you use the Web Site project, it's not
> the same as the VS 2003 web project. The Web Site project does all
> compilation dynamically, which can lead to pages being compiled before
> others. The Web Application Project, which was available as an add-on to
> VS 2005 and is now part of VS 2005 SP 1, is more akin to the VS 2003 web
> project in that it compiles everything into a single dll. That could also
> avoid the error you are seeing if it's a matter of timing for the
> compilation.
>
>
> --
> Hope this helps,
> Mark Fitzpatrick
> Former Microsoft FrontPage MVP 199?-2006
>
> "Rob T" <RTorcellini(a)DONTwalchemSPAM.com> wrote in message
> news:eKIOAwiaHHA.4396(a)TK2MSFTNGP06.phx.gbl...
>> When I was using VS2003, I was able to compile my asp.net project locally
>> on my machine and copy it to the production server and it would run just
>> fine.
>>
>> I've now converted to VS2005. The project compiles & runs fine locally,
>> but when I copy to the production machine, I get this error:
>>
>> Parser Error Message: Could not load type 'Global'.
>> Source Error:
>> Line 1: <%@ Application Codebehind="Global.asax.vb" Inherits="Global" %>
>> Source File: D:\Inetpub\wwwroot\WiseERP\global.asax Line: 1
>>
>> I thought perhaps I could change the Root Namespace to "WiseERP" (it was
>> blank), but then I can't get the project to compile. In the
>> aspx.designer.vb file It doesn't like Protected WithEvents HelpMain As
>> Global.Help I thinks it should be Protected WithEvents HelpMain As
>> Global.WiseERP.Help. I have about 500 pages on this site...and would
>> like to avoid having to change each one...just to find out this really
>> isn't my problems.
>>
>> Thanks for your help!
>>
>
>


From: Juan T. Llibre on
re:
> Line 1: <%@ Application Codebehind="Global.asax.vb" Inherits="Global" %>
> Source File: D:\Inetpub\wwwroot\WiseERP\global.asax Line: 1

VS2005, when WAP isn't installed, doesn't use "codebehind".

In ASP.NET version 2.0, you should instead use the CodeFile attribute
to specify the name of the source file, along with the Inherits attribute
to specify the fully qualified name of the class.

See:
http://msdn.microsoft.com/msdnmag/issues/06/01/ExtremeASPNET/default.aspx?loc=&fig=true#fig1

....for usage examples.

Also, in ASP.NET 2.0, if you use the code-behind model,
global.asax.vb must be moved to the App_Code directory.




Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espa�ol : http://asp.net.do/foros/
===================================
"Rob T" <RTorcellini(a)DONTwalchemSPAM.com> wrote in message
news:eKIOAwiaHHA.4396(a)TK2MSFTNGP06.phx.gbl...
> When I was using VS2003, I was able to compile my asp.net project locally on my machine and copy
> it to the production server and it would run just fine.
>
> I've now converted to VS2005. The project compiles & runs fine locally, but when I copy to the
> production machine, I get this error:
>
> Parser Error Message: Could not load type 'Global'.
> Source Error:
> Line 1: <%@ Application Codebehind="Global.asax.vb" Inherits="Global" %>
> Source File: D:\Inetpub\wwwroot\WiseERP\global.asax Line: 1
>
> I thought perhaps I could change the Root Namespace to "WiseERP" (it was blank), but then I can't
> get the project to compile. In the aspx.designer.vb file It doesn't like Protected WithEvents
> HelpMain As Global.Help I thinks it should be Protected WithEvents HelpMain As
> Global.WiseERP.Help. I have about 500 pages on this site...and would like to avoid having to
> change each one...just to find out this really isn't my problems.
>
> Thanks for your help!
>


From: Rob T on
I thought the App_Code directory was for projects that were created in
2005...this is a conversion form 2003. ??

also, I changed the codebehind to CodeFile, I get this error:

Compiler Error Message: BC30554: 'Global' is ambiguous.
Source Error:
Line 44:
<System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()> _
Line 45: Public Class global_asax
Line 46: Inherits Global.[Global]
Line 47:
Line 48: Private Shared __initialized As Boolean
Source File: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files\root\5de7b2a1\c4da5030\App_global.asax.vydatjj_.0.vb Line: 46


"Juan T. Llibre" <nomailreplies(a)nowhere.com> wrote in message
news:%23XVtuVjaHHA.2064(a)TK2MSFTNGP05.phx.gbl...
> re:
>> Line 1: <%@ Application Codebehind="Global.asax.vb" Inherits="Global" %>
>> Source File: D:\Inetpub\wwwroot\WiseERP\global.asax Line: 1
>
> VS2005, when WAP isn't installed, doesn't use "codebehind".
>
> In ASP.NET version 2.0, you should instead use the CodeFile attribute
> to specify the name of the source file, along with the Inherits attribute
> to specify the fully qualified name of the class.
>
> See:
> http://msdn.microsoft.com/msdnmag/issues/06/01/ExtremeASPNET/default.aspx?loc=&fig=true#fig1
>
> ...for usage examples.
>
> Also, in ASP.NET 2.0, if you use the code-behind model,
> global.asax.vb must be moved to the App_Code directory.
>
>
>
>
> Juan T. Llibre, asp.net MVP
> asp.net faq : http://asp.net.do/faq/
> foros de asp.net, en espa�ol : http://asp.net.do/foros/
> ===================================
> "Rob T" <RTorcellini(a)DONTwalchemSPAM.com> wrote in message
> news:eKIOAwiaHHA.4396(a)TK2MSFTNGP06.phx.gbl...
>> When I was using VS2003, I was able to compile my asp.net project locally
>> on my machine and copy it to the production server and it would run just
>> fine.
>>
>> I've now converted to VS2005. The project compiles & runs fine locally,
>> but when I copy to the production machine, I get this error:
>>
>> Parser Error Message: Could not load type 'Global'.
>> Source Error:
>> Line 1: <%@ Application Codebehind="Global.asax.vb" Inherits="Global" %>
>> Source File: D:\Inetpub\wwwroot\WiseERP\global.asax Line: 1
>>
>> I thought perhaps I could change the Root Namespace to "WiseERP" (it was
>> blank), but then I can't get the project to compile. In the
>> aspx.designer.vb file It doesn't like Protected WithEvents HelpMain As
>> Global.Help I thinks it should be Protected WithEvents HelpMain As
>> Global.WiseERP.Help. I have about 500 pages on this site...and would
>> like to avoid having to change each one...just to find out this really
>> isn't my problems.
>>
>> Thanks for your help!
>>
>
>