FastRodas Posted April 22, 2004 Posted April 22, 2004 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? Quote
wessamzeidan Posted April 22, 2004 Posted April 22, 2004 Why don't you just copy it manually to the production server, like you copy normal files.... Quote Proudly a Palestinian Microsoft ASP.NET MVP My Blog: wessamzeidan.net
FastRodas Posted April 22, 2004 Author Posted April 22, 2004 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 Quote
FastRodas Posted April 22, 2004 Author Posted April 22, 2004 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? Quote
FastRodas Posted April 22, 2004 Author Posted April 22, 2004 when i copy the project i get error.....i tried to resolve this but i couldn't http://www.linkcom.pt/Drafts/error.JPG any help?? Quote
Arch4ngel Posted April 22, 2004 Posted April 22, 2004 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 ? Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
FastRodas Posted April 22, 2004 Author Posted April 22, 2004 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 Quote
Arch4ngel Posted April 22, 2004 Posted April 22, 2004 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 ? Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.