Copy aspx pages to another website

  • Thread starter Thread starter Tony M
  • Start date Start date
T

Tony M

I'm trying copy asp .net pages from one website (where it works fine) to
another.

CusAdd.aspx.vb and CusAdd.aspx

I tried to just copy it and also tried to "Add Existing Item"

When I try to run it on the website I copied it too I get the following
error.
Any Help?

line 1 below is highlighted



Parser Error
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 'CusAdd'.

Source Error:

Line 1: <%@ Page Language="VB" AutoEventWireup="false"
CodeFile="CusAdd.aspx.vb" Inherits="CusAdd" %>
Line 2:
Line 3: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

Thanks
 
Tony M said:
I'm trying copy asp .net pages from one website (where it works fine) to
another.

CusAdd.aspx.vb and CusAdd.aspx

I tried to just copy it and also tried to "Add Existing Item"

When I try to run it on the website I copied it too I get the following
error.
Any Help?

line 1 below is highlighted



Parser Error
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 'CusAdd'.

Source Error:

Line 1: <%@ Page Language="VB" AutoEventWireup="false"
CodeFile="CusAdd.aspx.vb" Inherits="CusAdd" %>
Line 2:
Line 3: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Is not CustAdd the name of the class that defines solution in the CodeBehind
file CusAdd.aspx.vb?

And do you have the files in the Web sites application Virtual Directory on
the Web server?
 
Thanks Mr. Arnold but I think it's a server problem.
I rewrote it within the website itself instead of copying it and it did the
same thing.

Thanks
 
it works now. they didn't say what it was, but I think the server where
website resides was only working with framework 1.1 and not 2.0.
 
Back
Top