473,505 Members | 16,544 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.NET says "Could not load type 'MyProject.MyWebform'."

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:

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.MyWebform'.

Source Error:

Line 1: <%@ Page language="c#" Codebehind="MyWebForm.aspx.cs"
AutoEventWireup="false" Inherits="MyProject.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 1046
Hi Kevin,

Make sure your web application on the server has the bin folder with the
dll in it.
If you have MyProject.MyWebform 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@pd7tw2no...
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:

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.MyWebform'.

Source Error:

Line 1: <%@ Page language="c#" Codebehind="MyWebForm.aspx.cs"
AutoEventWireup="false" Inherits="MyProject.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@pd7tw2no...
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:

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.MyWebform'.

Source Error:

Line 1: <%@ Page language="c#" Codebehind="MyWebForm.aspx.cs"
AutoEventWireup="false" Inherits="MyProject.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
1682
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....
4
10302
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...
3
2043
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...
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...
0
1156
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: <%@...
0
1443
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...
0
1726
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...
0
1006
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...
1
3236
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....
1
1300
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...
0
7218
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,...
0
7307
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,...
1
7021
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7478
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5614
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,...
0
4701
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...
0
3177
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1532
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 ...
1
755
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.