Link to home
Start Free TrialLog in
Avatar of Purtman15
Purtman15

asked on

I keep getting a parser error in my global_asax.

I am writing a asp.net web project in VS2010, however I keep getting a parser error. I originally called thie project "Features" and changed the name to "CardsISFeatures". It is not working now.  Any thoughts? I'm kind at a loss.
The Assembly Name is "CardsISFeatures".
The Root Namespace is "CardsISFeatures".
Here is the first line of the global.asax:
<%@ Application Codebehind="Global.asax.vb" Inherits="CardsISFeatures.Global_asax" Language="vb" %>

Here is the beginning of the global_asax.vb:
Imports System.Web.SessionState
Imports System.Data.SqlClient
Imports CardsISFeatures

Public Class Global_asax
    Inherits System.Web.HttpApplication
Here is my error:
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type 'CardsISFeatures.Global_asax'.

Source Error:

Line 1:  <%@ Application Codebehind="Global.asax.vb" Inherits="CardsISFeatures.Global_asax" Language="vb" %>

Source File: /global.asax    Line: 1
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
Avatar of dj_alik
dj_alik

Please check the namespace of the class of code behind
namespace of Global_asax class
Avatar of Purtman15

ASKER

I did check it.  I even added a namespace of "CardsISFeatures" even though the root name is CardsISFeatures. It didn't work either time.
Please post your Global.asax.vb

ASKER CERTIFIED SOLUTION
Avatar of Purtman15
Purtman15

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It was provided by a co-worker.