Home All Groups Group Topic Archive Search About

HELP: Problem Hosting the "Simplest" of VB.NET Apps

Author
17 Jul 2006 1:54 AM
samadams_2006
Hello,

I 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>

---------------------------------------------------------------------------------------------------------------------------

Author
17 Jul 2006 3:30 AM
Steven Nagy
When you copied the project, did you also copy the DLL and its relevant
folders?
Or just the ASPX ?
Author
17 Jul 2006 4:26 AM
samadams_2006
I ftp'd all the files over to the hosting web site, all the files that
are under the Project in Inetpub.
Author
17 Jul 2006 5:10 AM
Cor Ligthert [MVP]
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.
>
Author
17 Jul 2006 6:06 AM
Steven Nagy
Yes. I would double check that the DLL went over with the rest of the
project.