C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » Silverlight »

Could not load type 'GetAway.Web.UsersListing'.


Posted Date: 28 Oct 2009      Posted By: NekkantiDivya      Member Level: Gold     Points: 1   Responses: 1



Hi,

I am working on a silverlight project. In this I published the code and uploaded in server. When I run the pages I am getting the following 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 'GetAway.Web.UsersListing'.

Source Error:

Line 1: <%@ Page Title="" Language="C#" MasterPageFile="~/admin/MasterAdmins.Master" AutoEventWireup="true" CodeBehind="UsersListing.aspx.cs" Inherits="GetAway.Web.UsersListing" %>
Line 2: <%@ Register TagName="Calender" TagPrefix="uc" Src="~/admin/DateCreatedUserControl.ascx" %>
Line 3:


If anyone hav idea to solve this please reply me.


Thanks in advance.





Responses

Author: Lalji    28 Oct 2009Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

This error occurs when you create a new web application in asp.net using visual studio.net and without compiling the application, you try to browse a page in the application.

This occurs because of the Application DLL not having been formed.

asp.net will look in the Global Assembly Cache, and then in the application's local bin directory. If it can't find the class with the name you specified then it won't load. When you do a codebehind file in Visual studio, you are writing a base class for your aspx file to inherit from - the HTML template you write in the aspx is inlined into the dynamically generated subclass's Render method.

Even if you don't put any code in your page, you still need to compile it as long as you put the Inherts Webappname.Global in your Page directive.

To resolve this, Built the application using Ctrl + Shift + B or use F5 to build the application and then try to browse the application. The error will be resolved.



Post Reply
You must Sign In to post a response.
Next : Silverlight with vs2005
Previous : Rotate the image based on mouse moving on over the image URGENT!!
Return to Discussion Forum
Post New Message
Category: Silverlight

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use