473,657 Members | 2,634 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.NET says "Could not load type 'MyProject.MyWe bform'."

Hello Eveyone:
I was wondering if someone can set me straight on this little
problem I am having which I believe must be a configuration issue. Everytime
VS.NET creates a new web form and puts this at the top:

Page language="c#" Codebehind="MyW ebForm.aspx.cs" AutoEventWireup ="false"
Inherits="MyPro ject.MyWebForm"

....when I hit the page on my server, I get this message:

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 'MyProject.MyWe bform'.

Source Error:

Line 1: <%@ Page language="c#" Codebehind="MyW ebForm.aspx.cs"
AutoEventWireup ="false" Inherits="MyPro ject.MyWebForm" %>
Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
Line 3: <HTML>
It looks like the error is with the 'inherits' directive. Does anyone know a
cure for this? Than you in advance!

Sincerely,
Kevin Parkinson
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.647 / Virus Database: 414 - Release Date: 3/29/2004

Nov 18 '05 #1
2 1052
Hi Kevin,

Make sure your web application on the server has the bin folder with the
dll in it.
If you have MyProject.MyWeb form in MyWebForm.aspx. cs,it will work provided
you have
the assembly in the bin directory under the web application folder.

When you hit the page on the server it is looking for the class
in the inherits part, in the assembly in the
bin folder.As it is not found you have the error message.Put the bin folder
with the dll(s) in your web application's
virtual directory.

Hope this helps.
Regards,
Marshal Antony
..NET Developer
http://www.dotnetmarshal.com


"Kevin Parkinson" <ke************ *@shaw.ca> wrote in message
news:CW6bc.9883 $Ig.3919@pd7tw2 no...
Hello Eveyone:
I was wondering if someone can set me straight on this little
problem I am having which I believe must be a configuration issue. Everytime VS.NET creates a new web form and puts this at the top:

Page language="c#" Codebehind="MyW ebForm.aspx.cs" AutoEventWireup ="false"
Inherits="MyPro ject.MyWebForm"

...when I hit the page on my server, I get this message:

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 'MyProject.MyWe bform'.

Source Error:

Line 1: <%@ Page language="c#" Codebehind="MyW ebForm.aspx.cs"
AutoEventWireup ="false" Inherits="MyPro ject.MyWebForm" %>
Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
Line 3: <HTML>
It looks like the error is with the 'inherits' directive. Does anyone know a cure for this? Than you in advance!

Sincerely,
Kevin Parkinson
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.647 / Virus Database: 414 - Release Date: 3/29/2004

Nov 18 '05 #2
I just wanted to bump this message up...it didn't seem to get read.

"Kevin Parkinson" <ke************ *@shaw.ca> wrote in message
news:CW6bc.9883 $Ig.3919@pd7tw2 no...
Hello Eveyone:
I was wondering if someone can set me straight on this little
problem I am having which I believe must be a configuration issue. Everytime VS.NET creates a new web form and puts this at the top:

Page language="c#" Codebehind="MyW ebForm.aspx.cs" AutoEventWireup ="false"
Inherits="MyPro ject.MyWebForm"

...when I hit the page on my server, I get this message:

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 'MyProject.MyWe bform'.

Source Error:

Line 1: <%@ Page language="c#" Codebehind="MyW ebForm.aspx.cs"
AutoEventWireup ="false" Inherits="MyPro ject.MyWebForm" %>
Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
Line 3: <HTML>
It looks like the error is with the 'inherits' directive. Does anyone know a cure for this? Than you in advance!

Sincerely,
Kevin Parkinson
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.647 / Virus Database: 414 - Release Date: 3/29/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.647 / Virus Database: 414 - Release Date: 3/29/2004
Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1692
by: jff | last post by:
I defined a simple enumeration called "LandProjections" in one of my C# class library assemblies. I have another class library assembly that has a static method which references the enumeration. When I execute the static method via a test-driver windows form, I get the "System.TypeLoadException: Could not load type FCI.ITS.GIS.Utilities.LandProjections from assembly fciGISSpatialReferences". The error message has the fully-qualified...
4
10314
by: Mike S | last post by:
I'm hoping someone can explain the following. I have installed Visual Studio 2003. Setup several web application projects, compliled and ran them with no problem. All of this was accomplished with my local server. The default or root directory for my local IIS server is my "C:\" drive. (c:\inetpub\wwwroot) Now I would like to change my root or default directory for my local IIS server to be a network drive (x:\inputpub\wwwroot). ...
3
2047
by: Rod | last post by:
I am getting a strange error when I attempt to run my new ASP.NET application through an ISA server. If I go to the ISA server machine and open up IIS and perform a Browse on the virtual directory pointing to the new ASP.NET application, I get the following error message: Parser Error Message: Could not load type NewWebApp.Global Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits=" NewWebApp.Global" %>
1
334
by: Kevin Parkinson | last post by:
Hello Eveyone: I was wondering if someone can set me straight on this little problem I am having which I believe must be a configuration issue. Everytime VS.NET creates a new web form and puts this at the top: Page language="c#" Codebehind="MyWebForm.aspx.cs" AutoEventWireup="false" Inherits="MyProject.MyWebForm" ....when I hit the page on my server, I get this message:
0
1161
by: .Net Sports | last post by:
I'm trying to build a datagrid project in vs.net, and getting an error that doesnt make sense: \\\\\\\\\\\\\\ Could not load type 'SportsMProject.btresults2a'. Source Error: Line 1: <%@ Import Namespace="System.Data.SqlClient"%> Line 2: <%@ Import Namespace="System.Data"%>
0
1453
by: ksayal | last post by:
Hi, I'm creating a project. Whenever I try to add a user control or add an aspx page it gives me the following error. When I remove the inherits="" thing, it shows up the page.... What would be the cause of this problem.. Please suggest asap.. Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error
0
1741
by: hamstak | last post by:
While attempting to perform a build on an .aspx page from within VS 2005 I receive the "Could not load type" error pertaining to the class representing the page. The class is derived from a custom base class (which itself is derived from System.Web.UI.Page). This custom base class has been used in other projects successfully. The Inherits attribute of the @Page directive is properly assigned and the application root is properly...
0
1008
by: John Bailo | last post by:
When clicking on a form application (some sample code) this error appears in vc#2005 Could not load type 'Microsoft.VisualStudio.Shell.Interop.IVsRunningDocumentTable2' from assembly 'Microsoft.VisualStudio.Shell.Interop.8.0, Version 8.0.0... How do I resolve?
1
3251
by: Curious | last post by:
Hi, I've added a class, AddExternalEIFFileSections, to a project, 'BusinessRules', then rebuilt the project and copied the BusinessRules.dll to the folder containing all of the executables. However, I always get the error when running the program: Could not load type 'BusinessRules.AddExternalEIFFileSections' from assembly 'BusinessRules, Version=6.7.0.0, Culture=neutral,
1
1313
by: KevinMurphyRJLG | last post by:
I'm trying to migrate a large solution (20 or so projects) from .NET 1.1 to .NET 2.0. I've taken care of all the compile errors, but now I'm getting an exception shortly after I start up the app. Exception: System.TypeInitializationException "The type initializer for 'MyClass' threw an exception." InnerException: System.IO.FileLoadException "Could not load file or assembly 'MyLib, Version
0
8407
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8837
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8739
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7347
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5638
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4171
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2739
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1969
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1732
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.