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:
<%@dotnet.itags.org. 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,
JohnOn your machine that folder is probably setup as a virtual=
directory where on the webserver it is probably not. The=
virtual directory can have a seperate bin directory which is=
used by .Net to store the DLL's that your files are referencing.=
To make it work you can either create the folder as a vitual=
directory (i.e., Application) or just add the DLL's that the V2=
application 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 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=3D"c#" Codebehind=3D"CPRTemplate.aspx.cs"
> AutoEventWireup=3D"false" Inherits=3D"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
>
User submitted from AEWNET (http://www.aewnet.com/)
0 comments:
Post a Comment