473,545 Members | 1,893 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Could not load type "namespace.clas s" Parser Error

Hey everyone,

I am trying to make a multi-project web application in
visual studio that uses the server.transfer method in C#
to get to the different aspx pages.
However, when I call out to the page it gives me the
Could not load type "MainConsole.De fault". The code was
working before when i had it all in one project. I want
to seperate the one big project and create little ones to
communicate to each other, just like a desktop
application. Which would give me an easier time when I
do bug fixes/upgrades/etc... If you want more code
please let me know, I don't think it is the problem as
much as the programmer's lack of knowledge.
Line 1: <%@ Page language="c#"
Codebehind="Def ault.aspx.cs" AutoEventWireup ="false"
Inherits="MainC onsole.Default" %>
Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN" >
Line 3: <HTML>

Thanks so much in advance,
-Kristopher
Nov 18 '05 #1
1 2531
Are project references OK and have you compiled the whole solution ebfore
running the Page?

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
"Kris" <bo*********@cs harp.com> wrote in message
news:02******** *************** *****@phx.gbl.. .
Hey everyone,

I am trying to make a multi-project web application in
visual studio that uses the server.transfer method in C#
to get to the different aspx pages.
However, when I call out to the page it gives me the
Could not load type "MainConsole.De fault". The code was
working before when i had it all in one project. I want
to seperate the one big project and create little ones to
communicate to each other, just like a desktop
application. Which would give me an easier time when I
do bug fixes/upgrades/etc... If you want more code
please let me know, I don't think it is the problem as
much as the programmer's lack of knowledge.
Line 1: <%@ Page language="c#"
Codebehind="Def ault.aspx.cs" AutoEventWireup ="false"
Inherits="MainC onsole.Default" %>
Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN" >
Line 3: <HTML>

Thanks so much in advance,
-Kristopher

Nov 18 '05 #2

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

Similar topics

3
4771
by: Maersa | last post by:
Hi All, Was anybody able to serialize the "Type" class properly using XmlSerializer().... Want to serialize and deserialze the Type in a string form, but can this be done ? myobj.Type = typeof(System.String) as <type>System.String</type> thanks a ton.
5
9996
by: SenthilSS | last post by:
My application produces XML Data files which have XML namespace qualified XML elements (nodes), but the namespace itself is not declared in the data file. My task is to read these data files in a C# app for viewing purposes. I am using "XmlDocument" and "DataSet" for displaying the XML data in the Data grid. Problem: If I add the...
0
2982
by: maxim mat | last post by:
Hi I need to build client for web service. But when I'm using Visual Studio .NET to add Web Reference, I get error: "Custom tool error: Unable to import WebService/Schema. Unable to import binding 'controllerSoapBinding' from namespace 'http://Bla-Bla-Bla'. Unable to import operation 'getClient'. The datatype 'Array' is missing. " Some...
1
2041
by: Bent Biker | last post by:
This message occurs when browsing to the start of an asp.net program that has been transferred to a machine with the dotnet framework 1.1, IIS 5.1, XP/Pro, and SQL/Server. It is is operational on the development machine using vs.net 2003, running quite well. The program has been built on the dev machine, and all files except for the...
2
1014
by: FayHuang | last post by:
Does anyone know how to debug this problem? My project compiles without any errors. But when I try to bring up the page in the browser, I get this error: "Could not load type 'Website.Company.ContactUs'." Which refers to this line in my HTML: <%@ Page language="c#" Codebehind="ContactUs.aspx.cs" AutoEventWireup="false"...
4
3382
by: Andy Sutorius | last post by:
Hi, I have a folder with a web.config file using forms authentication thus requiring that folder to be an IIS application. When I attempt to visit a webpage in that folder, default.aspx, I receive the error: could not load type "namespace.classname" I found MS KB #306155 and followed the recommended steps of performing a build on the web...
16
5018
by: thefritz_j | last post by:
We just converted our VS2003 1.1 VB web project (which was working fine) to VS2005 2.0 and now I get: Parser Error Message: Could not load type '<Namespace>.'. Source Error: Line 1: <%@ Application Codebehind="Global.asax.vb" Inherits="<Namespace>." %> I've done a lot of things I've found on the web to no avial, but here are some...
4
1463
by: Christian Joergensen | last post by:
Hello I stumpled upon this "feature" during my work tonight, and found it a bit confusing: .... class C: .... foobar = 42 .... .... <class __main__.C at 0xb7cf735c>
2
16388
by: shalong | last post by:
Hi all, VS 2008 is complaining that HttpWebRequest class is not in System.Net namespace I have referenced System.Net and have coded "using System.Net" I think its a setup problem rather than a coding error The type or namespace name 'HttpWebRequest' does not exist in the namespace 'System.Net' (are you missing an assembly...
0
7486
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...
0
7416
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7676
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. ...
0
6001
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...
1
5347
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3473
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...
0
3456
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1905
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
0
729
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...

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.