Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old January 3rd, 2006, 06:42 AM
Registered User
 
Join Date: Dec 2005
Location: , , .
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Parser Error

while accessing the home page by giving this URL http://localhost/shopcart/home.aspx, I am getting this error.I have downloaded the code from a site.

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 'ShopCart.Global'.

Source Error:


Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="ShopCart.Global" %>



Source File: C:\Inetpub\wwwroot\shopcart\global.asax Line: 1


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573

kindly help.
Shupi

  #2 (permalink)  
Old January 3rd, 2006, 12:29 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

This error usually occurs when you try to access a page in an application that hasn't yet been compiled.

The "Inherits" attribute is telling the ASP.NET runtime to inherit the class "ShopCart.Global" which it can not find in any of the available assemblies. Once you compile the application, that class will be available within the "ShopCart.dll" assembly found in the application's /bin directory.

-Peter
  #3 (permalink)  
Old January 5th, 2006, 05:22 AM
Registered User
 
Join Date: Dec 2005
Location: , , .
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanx peter for the response but how will i compile it???
shupi

  #4 (permalink)  
Old January 5th, 2006, 09:58 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Are you using visual studio.net? Use the "Build->Build Solution" menu option.

-Peter
  #5 (permalink)  
Old January 6th, 2006, 12:59 AM
Registered User
 
Join Date: Dec 2005
Location: , , .
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

sorry for the silly question peter and thanx again.



Similar Threads
Thread Thread Starter Forum Replies Last Post
Parser Error rwalker Crystal Reports 0 May 8th, 2006 03:47 PM
Parser Error ashokparchuri General .NET 0 June 3rd, 2005 03:14 AM
global.asax parser error exarkuun General .NET 3 February 24th, 2005 01:56 AM
SAX Parser Error dpan168 XML 0 October 26th, 2004 04:53 PM
Parser Error on Biztalk mandla Access 0 August 13th, 2003 07:03 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.