newbie configuration-type issue

J

John Spiegel

All right, there's something stupid I'm missing.

I have a folder named CPR with a subfolder, V2. I built a small website in
a solution in CPR, dropped in on the webserver (third-party hosted) and it
runs. I've lately been working on a replacement version in the V2
subfolder, which is in a separate solution.

When I run v2's version from the development machine, it runs fine. When I
drop it on the Web server and try to run it or copy everything over to
another development machine and try to run it in VS, I receive the error:

Could not load type 'CPRInc.WebForm1'.

and points to my Page directive:

<%@ Page language="c#" Codebehind="CPRTemplate.aspx.cs"
AutoEventWireup="false" Inherits="CPR.WebForm1" %>

This feels like a configuration problem like one box uses relative pathing
while the others don's SORT of thing. Any ideas?

TIA,

John
 
A

alan.washington

On your machine that folder is probably setup as a virtualdirectory where on the webserver it is probably not. Thevirtual directory can have a seperate bin directory which isused by .Net to store the DLL's that your files are referencing.To make it work you can either create the folder as a vitualdirectory (i.e., Application) or just add the DLL's that the V2application uses to the Bin directory of the root folder.

Alan Washington
All right, there's something stupid I'm missing.

I have a folder named CPR with a subfolder, V2. I built asmall website in
a solution in CPR, dropped in on the webserver (third-partyhosted) and it
runs. I've lately been working on a replacement version in theV2
subfolder, which is in a separate solution.

When I run v2's version from the development machine, it runsfine. When I
drop it on the Web server and try to run it or copy everythingover to
another development machine and try to run it in VS, I receivethe error:

Could not load type 'CPRInc.WebForm1'.

and points to my Page directive:

<%@ Page language="c#" Codebehind="CPRTemplate.aspx.cs"
AutoEventWireup="false" Inherits="CPR.WebForm1" %>

This feels like a configuration problem like one box usesrelative pathing
while the others don's SORT of thing. Any ideas?

TIA,

John
User submitted from AEWNET (http://www.aewnet.com/)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top