Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - could not load type "_default"

 
Thread Tools Search this Thread
Old 07-16-2003, 07:45 AM   #1
Default could not load type "_default"


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="default.aspx.cs" AutoEventWireup="false"
Inherits="_default" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>default</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
<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>
<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>&nbsp;
<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.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;

public class _default : System.Web.UI.Page
{
protected System.Web.UI.WebControls.TextBox TextBox1;
protected System.Web.UI.WebControls.TextBox TextBox2;
protected System.Web.UI.WebControls.Button Button1;

private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
}

#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}

/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.Button1.Click += new System.EventHandler(this.Button1_Click);
this.Load += new System.EventHandler(this.Page_Load);

}
#endregion

private void Button1_Click(object sender, System.EventArgs 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




M
  Reply With Quote
Old 07-24-2006, 05:29 PM   #2
marcioCoelho
Junior Member
 
Join Date: Jul 2006
Posts: 1
Default error on .net when calling it from another computer
Reason:
- You would tipically receive this error when you have multiple versions of .Net Framework.
- In case of BizTalk Server 2006 you may receive this error when you try to access web services created via the "BizTalk WebService Publishing Wizard".

Resolution:
- Launch IIS
- Go to the properties page for the application.
- Select "Asp.net" tab, and change the Target Framework to 2.0.


marcioCoelho
marcioCoelho is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Eclipse - Axis2 - Java Webservices Error amanjsingh Software 1 10-09-2007 09:03 AM
Need help on Modelsim VHDL syntax? ASAP:) kaji General Help Related Topics 0 03-14-2007 10:43 PM
Need help on a Modelsim VHDL Syntax? ASAP:) kaji Software 0 03-14-2007 10:43 PM
Need Help on a Modelsim VHDL Syntax....ASAP:) kaji Hardware 0 03-14-2007 10:41 PM
Parser Error Message: Could not load type 'Microsoft.SharePoint.ApplicationPages.Glob rasmita General Help Related Topics 0 09-05-2006 05:46 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46