copy project to production

FastRodas

Freshman
Joined
Apr 14, 2004
Messages
25
hi to all Xtremers,

With visual studio .net i created a web application and now i want to move to it to the production server.

In vs.net i used the option copy project to move it to the server but i keep getting this error. i made a little teste a tried to move it

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 'carrinho.WebForm1'.

Source Error:

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


Source File: D:\Clientes\carrinho\webform1.aspx Line: 1


how do i copy it to the productin server?
 
I tried that! but the erros remains the same. I read a article saying that to copy the web application i should use the option "copy project".

I did that but without success
 
ok...i will put here my teste code and the error that results.

here is my webform1.aspx file using vs.net

<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="CopyProject.WebForm1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>WebForm1</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<asp:Button id="Button1" style="Z-INDEX: 101; LEFT: 344px; POSITION: absolute; TOP: 160px" runat="server"
Text="Change Text" Width="80px" Height="32px"></asp:Button>
<asp:TextBox id="TextBox1" style="Z-INDEX: 102; LEFT: 312px; POSITION: absolute; TOP: 88px" runat="server">This is the Default text</asp:TextBox>
</form>
</body>
</HTML>



Now for the webform1.aspx.cs

using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

namespace CopyProject
{
public class WebForm1 : System.Web.UI.Page
{
protected System.Web.UI.WebControls.Button Button1;
protected System.Web.UI.WebControls.TextBox TextBox1;

private void Page_Load(object sender, System.EventArgs e)
{
}

override protected void OnInit(EventArgs e)
{
InitializeComponent();
base.OnInit(e);
}

private void InitializeComponent()
{
this.Button1.Click += new System.EventHandler(this.Button1_Click);
this.Load += new System.EventHandler(this.Page_Load);

}

private void Button1_Click(object sender, System.EventArgs e)
{
this.TextBox1.Text = "change the text";
}
}
}



done this i go the menu Project --> Copy Project and fill that up

Ok....now i open the browser with the new project location and the textbox and the button show up.

when i click the button i get this error

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 'CopyProject.Global'.

Source Error:


Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="CopyProject.Global" %>



Source File: D:\Clientes\carrinho\global.asax Line: 1


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573



what is the problem?? why cant he inherit?
 
when i copy the project i get error.....i tried to resolve this but i couldn't

error.JPG



any help??
 
It's seems not able to access permission on the destination folder.

Are you're devellopement computer and the production server use the same IIS version, Windows ?
 
All files are copied to the folder. But when i try to run the aplication it gives the error i posted above...

In my development computer i have win XP pro with iis 5.1 and the production Server is win 2000 with 5.0
 
maybe it's that... downgrading IIS from 5.1 to 5.2 might not have helped...

For the permissions... Windows XP is really similar to W2k...

Does ASPNET have the correct right on the production server to create folder and assign them permissions ?
 
Back
Top