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

Migration from 1.1 to 2.0 - global.asax????

P: n/a
In one of my web applications, after migrating, the global.asax file was
moved to the App_Code directory. That's fine and the application compiles
okay.

But when i attempted to run it, i get the error below....seems sort of odd:

Compiler Error Message: BC30183: Keyword is not valid as an identifier.

Source Error:

Line 9:
Line 10:
Line 11: Public Class Global
Line 12: Inherits System.Web.HttpApplication
Line 13:

Source File: D:\InetPubTest\wwwroot\App_Code\Global.asax.vb Line: 11
Nov 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Review the global.asax section of this document :
http://msdn.microsoft.com/asp.net/de...dingaspnet.asp
"Common ASP.NET 2.0 Conversion Issues and Solutions"

The namespace is defined by the root namespace in the Web project.

Unless your project's name is Global, you should change it.

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/
======================================
"Robert" <ro*****@noemail.nospam> wrote in message
news:A0**********************************@microsof t.com...
In one of my web applications, after migrating, the global.asax file was
moved to the App_Code directory. That's fine and the application compiles
okay.

But when i attempted to run it, i get the error below....seems sort of odd:

Compiler Error Message: BC30183: Keyword is not valid as an identifier.

Source Error:

Line 9:
Line 10:
Line 11: Public Class Global
Line 12: Inherits System.Web.HttpApplication
Line 13:

Source File: D:\InetPubTest\wwwroot\App_Code\Global.asax.vb Line: 11

Nov 19 '05 #2

P: n/a
Hi Robert,

Have you got any progress on this issue or does the information Juan
provided in his reply help you resolve the problem? If there're anything
else we can help, please feel free to post here.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: "Juan T. Llibre" <no***********@nowhere.com>
| References: <A0**********************************@microsoft.co m>
| Subject: Re: Migration from 1.1 to 2.0 - global.asax????
| Date: Tue, 1 Nov 2005 04:51:32 -0400
| Lines: 37
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.3790.1830
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830
| X-RFC2646: Format=Flowed; Original
| Message-ID: <eN**************@tk2msftngp13.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: 222stb33.codetel.net.do 64.32.114.222
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msft ngp13.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:135161
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Review the global.asax section of this document :
|
http://msdn.microsoft.com/asp.net/de...n-us/dnaspp/ht
ml/upgradingaspnet.asp
| "Common ASP.NET 2.0 Conversion Issues and Solutions"
|
| The namespace is defined by the root namespace in the Web project.
|
| Unless your project's name is Global, you should change it.
|
|
|
|
|
| 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/
| ======================================
| "Robert" <ro*****@noemail.nospam> wrote in message
| news:A0**********************************@microsof t.com...
| > In one of my web applications, after migrating, the global.asax file was
| > moved to the App_Code directory. That's fine and the application
compiles
| > okay.
| >
| > But when i attempted to run it, i get the error below....seems sort of
odd:
| >
| > Compiler Error Message: BC30183: Keyword is not valid as an identifier.
| >
| > Source Error:
| >
| > Line 9:
| > Line 10:
| > Line 11: Public Class Global
| > Line 12: Inherits System.Web.HttpApplication
| > Line 13:
| >
| > Source File: D:\InetPubTest\wwwroot\App_Code\Global.asax.vb Line: 11
|
|
|

Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.