|
 |
aspx thread: VS.NET-- Can't seem to load types for pages.. HELP!
Message #1 by "Oliver, Wells" <WOliver@l...> on Fri, 25 Oct 2002 10:03:23 -0700
|
|
I just got a new computer at work and copied my VS projects to it. All of
the are actually hosted on a webserver, so I just had to copy the SLN file
and such..
Now when I browse to the application I get "Could not load type
'namespace.classname'" type error on _any_ page with a codebehind like so:
<%@ Page language="c#" Codebehind="edit.aspx.cs" AutoEventWireup="false"
Inherits="catalogadmin.graphicsEdit" %>
I don't understand why this is happening; everything worked fine before I
copied the files over. All of the ASPX and CS files are there, too, so I am
not sure what is happening.
Any ideas? I'm desperate :)
Wells Oliver
Web Applications Programmer
Leviton Voice & Data
xxx-xxx-xxxx
http://www.levitonvoicedata.com
Message #2 by "Srinivasan, Sundar (PBS - NJ)" <SSrinivasan3@N...> on Fri, 25 Oct 2002 14:20:23 -0400
|
|
Oliver,
I have had the same problems..just switch the codebehind clause to src,
meaning, src="edit.aspx.cs".
With codebehind, for whatever reason, it expects the inherits to have the
root namespace.
Sundar
-----Original Message-----
From: Oliver, Wells [mailto:WOliver@l...]
Sent: Friday, October 25, 2002 1:03 PM
To: ASP.NET
Subject: [aspx] VS.NET-- Can't seem to load types for pages.. HELP!
I just got a new computer at work and copied my VS projects to it. All of
the are actually hosted on a webserver, so I just had to copy the SLN file
and such..
Now when I browse to the application I get "Could not load type
'namespace.classname'" type error on _any_ page with a codebehind like so:
<%@ Page language="c#" Codebehind="edit.aspx.cs" AutoEventWireup="false"
Inherits="catalogadmin.graphicsEdit" %>
I don't understand why this is happening; everything worked fine before I
copied the files over. All of the ASPX and CS files are there, too, so I am
not sure what is happening.
Any ideas? I'm desperate :)
Wells Oliver
Web Applications Programmer
Leviton Voice & Data
xxx-xxx-xxxx
http://www.levitonvoicedata.com
---
ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442
ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450
These books are a complete reference to the ASP.NET namespaces
for developers who are already familiar with using ASP.NET.
There is no trivial introductory material or useless .NET
hype and the presentation of the namespaces, in an easy-to use
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes,
giving you those real-world tips that the documentation doesn't
offer, and demonstrating complex techniques with simple
examples.
---
Message #3 by "Srinivasan, Sundar (PBS - NJ)" <SSrinivasan3@N...> on Fri, 25 Oct 2002 14:47:32 -0400
|
|
Oliver,
An addition to my previous reply:
If you say src= instead of codebehind= you probablt also need to Imports
Microsoft.VisualBasic (or C#, I suppose)
in your codebehind file. Since I do VB, I definitely need this statement,
otherwise no VB statements are recognized.
sundar
-----Original Message-----
From: Oliver, Wells [mailto:WOliver@l...]
Sent: Friday, October 25, 2002 1:03 PM
To: ASP.NET
Subject: [aspx] VS.NET-- Can't seem to load types for pages.. HELP!
I just got a new computer at work and copied my VS projects to it. All of
the are actually hosted on a webserver, so I just had to copy the SLN file
and such..
Now when I browse to the application I get "Could not load type
'namespace.classname'" type error on _any_ page with a codebehind like so:
<%@ Page language="c#" Codebehind="edit.aspx.cs" AutoEventWireup="false"
Inherits="catalogadmin.graphicsEdit" %>
I don't understand why this is happening; everything worked fine before I
copied the files over. All of the ASPX and CS files are there, too, so I am
not sure what is happening.
Any ideas? I'm desperate :)
Wells Oliver
Web Applications Programmer
Leviton Voice & Data
xxx-xxx-xxxx
http://www.levitonvoicedata.com
---
ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442
ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450
These books are a complete reference to the ASP.NET namespaces
for developers who are already familiar with using ASP.NET.
There is no trivial introductory material or useless .NET
hype and the presentation of the namespaces, in an easy-to use
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes,
giving you those real-world tips that the documentation doesn't
offer, and demonstrating complex techniques with simple
examples.
---
|
|
 |