473,385 Members | 1,734 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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


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>

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

Jul 17 '06 #1
4 1414
When you copied the project, did you also copy the DLL and its relevant
folders?
Or just the ASPX ?

Jul 17 '06 #2
I ftp'd all the files over to the hosting web site, all the files that
are under the Project in Inetpub.

Jul 17 '06 #3
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

<sa***********@yahoo.caschreef in bericht
news:11*********************@p79g2000cwp.googlegro ups.com...
>I ftp'd all the files over to the hosting web site, all the files that
are under the Project in Inetpub.

Jul 17 '06 #4
Yes. I would double check that the DLL went over with the rest of the
project.

Jul 17 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

40
by: Steve Juranich | last post by:
I know that this topic has the potential for blowing up in my face, but I can't help asking. I've been using Python since 1.5.1, so I'm not what you'd call a "n00b". I dutifully evangelize on the...
32
by: Indrid Colt | last post by:
Thank's for your help ! Indrid
0
by: antsays | last post by:
I am trying to serialize a collection to disk using the code provided. This works just fine but when I try do copy and past the xml file to another location or sometimes even just click on the...
1
by: | last post by:
I've got \\root\folder\Page2.aspx that I want to controll access to, by establishing a rule that says "previous URL must be '\\root\folder\Page1.aspx' (which did password validation). The code...
5
by: theyas | last post by:
Windows XP SP2 + Symantec AV + VS 2003 with .NET Framework 1.1 IIS won't load or run existing ASP.NET applications and VS can't create or load web projects (HTTP/1.1 500 Server Error). Event...
60
by: Dave | last post by:
I'm never quite sure whether to use "this." or not when referring to fields or properties in the same class. It obviously works just fine without it but sometimes I wonder if using this....
17
by: Petyr David | last post by:
Just looking for the simplest. right now my perl script returns an error messge to the user if the date string is invalid. would like to do this before accessing the server. TX
4
by: Dave | last post by:
I have a global.asax file with Application_Start defined and create some static data there and in another module used in the asp.net application and I realize that static data is shared amongst...
2
by: RayOsborn | last post by:
I have some old "shelve" databases created in Python 2.2 that use the old bsddb format, whereas the version of Python 2.4 installed by my web hosting service doesn't have bsddb available at all...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.