473,385 Members | 1,486 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 2169
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
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
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
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
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
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
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
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
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
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
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.