|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
HELP: Problem Hosting the "Simplest" of VB.NET AppsI have a peculiar problem that I'm hoping someone can help me out with. I have a simple enough Web Application written in VB.Net via Visual Studio 2003. It simply displays a Web Form with a label field saying "Hello". When I run this application interactively via Visual Studio 2003, I have no problems. When I transfer this code to my Web Site and type in the URL: : http://www.certify-it.com/Test/test1.aspx , it give me the 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 'Test.test1'. Source Error: Line 1: <%@ Page Language="vb" AutoEventWireup="false" Codebehind="test1.aspx.vb" Inherits="Test.test1"%> Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> Line 3: <HTML> --------------------------------------------------------------------------------------------------------------------------- If I delete the text: Inherits="Test.test1"% , then the form "test1.aspx" (which has the "Hello" label) comes up no problem. It would appear that there is a problem in "Inheriting" the Class in the Code Behind File. Has anyone had this sort of a problem before and can help me out? Here's the code...simple enough.... --------------------------------------------------------------------------------------------------------------------------- ======================= The HTML for test1.aspx ======================= <%@ Page Language="vb" AutoEventWireup="false" Codebehind="test1.aspx.vb" Inherits="Test.test1"%> <!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="Visual Basic .NET 7.1"> <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:Label id="Label1" style="Z-INDEX: 101; LEFT: 200px; POSITION: absolute; TOP: 64px" runat="server" Width="200px">Hello</asp:Label> </form> </body> </HTML> --------------------------------------------------------------------------------------------------------------------------- ========================== The Code for test1.aspx.vb ========================== Public Class test1 Inherits System.Web.UI.Page #Region " Web Form Designer Generated Code " 'This call is required by the Web Form Designer. <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent() End Sub Protected WithEvents Label1 As System.Web.UI.WebControls.Label 'NOTE: The following placeholder declaration is required by the Web Form Designer. 'Do not delete or move it. Private designerPlaceholderDeclaration As System.Object Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init 'CODEGEN: This method call is required by the Web Form Designer 'Do not modify it using the code editor. InitializeComponent() End Sub #End Region Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Put user code to initialize the page here End Sub End Class --------------------------------------------------------------------------------------------------------------------------- ========================== The Code for Web.config ========================== <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.web> <customErrors mode="Off" /> <compilation defaultLanguage="vb" debug="true" /> <!-- <authentication mode="Windows" /> --> <authorization> <allow users="*" /> </authorization> <trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" /> <!-- <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20" /> --> <globalization requestEncoding="utf-8" responseEncoding="utf-8" /> </system.web> </configuration> --------------------------------------------------------------------------------------------------------------------------- When you copied the project, did you also copy the DLL and its relevant
folders? Or just the ASPX ? I ftp'd all the files over to the hosting web site, all the files that
are under the Project in Inetpub. Samadans,
Still it seems you are accoording to the way you use it, missing its test1.dll what should probably be in the bin folder of the application test. Cor <samadams_2***@yahoo.ca> schreef in bericht Show quoteHide quote news:1153110397.679172.89790@p79g2000cwp.googlegroups.com... >I ftp'd all the files over to the hosting web site, all the files that > are under the Project in Inetpub. > Yes. I would double check that the DLL went over with the rest of the
project.
Bug or Feature? CancelButton vs Escape Key
overides/loads usage AS400 - Ado.Net from Vb.Net Slow Query Times Can I make my Form visible during a debug session? Problems using Me.Scale in Framework 2.0 ListView and ImageList/ImageKey enforce event calling on inherited classes Is this a bug: 2.2 - 0.4 = 1.8 but 1.2 - 0.4 = 0.8000001 ? detect if running on a terminal server Multiple executescalar() |
|||||||||||||||||||||||