Hi There,
I am having lot of trouble getting out the ASP.NET "dll hell", i hope i
can find the help here. i have coded a simple page using Visual Studio
compiled it. keep on getting works on my computer but when i put this page
on the test sever online on which i have very control and can't recompile
over there. i keep on getting error could not load type "_default". Code for
the page is as follows
<!------------------------- HTML PAGE -------------------------------->
<%@ Page language="c#" Codebehind="def ault.aspx.cs" AutoEventWireup ="false"
Inherits="_defa ult" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>defaul t</title>
<meta name="GENERATOR " Content="Micros oft Visual Studio 7.0">
<meta name="CODE_LANG UAGE" Content="C#">
<meta name="vs_defaul tClientScript" content="JavaSc ript">
<meta name="vs_target Schema"
content="http://schemas.microso ft.com/intellisense/ie5">
</HEAD>
<body>
<form id="default" method="post" runat="server">
<P>Welcome to kapurs Site</P>
<P>This is a test page</P>
<P>
<asp:TextBox id="TextBox1" runat="server"> </asp:TextBox>&nb sp;
<asp:TextBox id="TextBox2" runat="server"> </asp:TextBox></P>
<P>
<asp:Button id="Button1" runat="server" Text="Button"></asp:Button></P>
</form>
</body>
</HTML>
<!---------------------------------------------------------------CODE
BEHIND ------------------------------------->
using System;
using System.Collecti ons;
using System.Componen tModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.Sess ionState;
using System.Web.UI;
using System.Web.UI.W ebControls;
using System.Web.UI.H tmlControls;
public class _default : System.Web.UI.P age
{
protected System.Web.UI.W ebControls.Text Box TextBox1;
protected System.Web.UI.W ebControls.Text Box TextBox2;
protected System.Web.UI.W ebControls.Butt on Button1;
private void Page_Load(objec t sender, System.EventArg s e)
{
// Put user code to initialize the page here
}
#region Web Form Designer generated code
override protected void OnInit(EventArg s e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeCompo nent();
base.OnInit(e);
}
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeCompo nent()
{
this.Button1.Cl ick += new System.EventHan dler(this.Butto n1_Click);
this.Load += new System.EventHan dler(this.Page_ Load);
}
#endregion
private void Button1_Click(o bject sender, System.EventArg s e)
{
TextBox2.Text = TextBox1.Text ;
TextBox1.Text = "";
}
}
<!--------------------------------------------------------------------------
------------------------------------->
i tried the copy method of the visual studio still same error. i made sure
that there is the dll file in the bin dir which was created when i compiled
the project in VS .net.
My App is named "TestApp1" and dll in the bin is also by that name. i works
fine on my computer when i copy it to some other web folder(virtual
directory app). not when i put on the test server.
my test server is at Hostopia.com which is also in interesting things, they
have Unix and Windows app coexist.
any help would be greatly appreciated
Thanks
m
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.501 / Virus Database: 299 - Release Date: 7/14/2003