Copy aspx pages to another website

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
 
M

Mr. Arnold

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?
 
T

Tony M

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
 
T

Tony M

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.
 

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

Top