[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

I keep getting a parser error in my global_asax.

Posted on 2011-05-12
6
Medium Priority
?
670 Views
Last Modified: 2012-05-11
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
0
Comment
Question by:Purtman15
  • 3
  • 3
6 Comments
 
LVL 18

Expert Comment

by:dj_alik
ID: 35748259
Please check the namespace of the class of code behind
0
 
LVL 18

Expert Comment

by:dj_alik
ID: 35748265
namespace of Global_asax class
0
 

Author Comment

by:Purtman15
ID: 35748392
I did check it.  I even added a namespace of "CardsISFeatures" even though the root name is CardsISFeatures. It didn't work either time.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 18

Expert Comment

by:dj_alik
ID: 35748421
Please post your Global.asax.vb

0
 

Accepted Solution

by:
Purtman15 earned 0 total points
ID: 35750040
dj, sorry I never saw this comment come up. Somebody here suggested the location of my compile. I changed that to the bin folder in the same project folder, and it now works. Thanks for your suggestions.
0
 

Author Closing Comment

by:Purtman15
ID: 35775525
It was provided by a co-worker.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question