If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Parser Error - when viewing a simple asp.net file

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-14-04, 10:23
mary2004 mary2004 is offline
Registered User
 
Join Date: Dec 2004
Posts: 3
Unhappy Parser Error - when viewing a simple asp.net file

I keep getiing a Parser error when I try to view asp.net pages that contain code behind.

I created a basic aspx page but I still recieved the same error.

I'm not sure whether I have to set something in VS.Net, I'm loosing my mind because the error is so trivial.

Does anyone have any suggestions

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

Parser 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 'testDoc'.

Source Error:

Line 1: <%@ Page Language="vb" AutoEventWireup="false" Codebehind="testDoc.vb" Inherits="testDoc" %>Line 2: <html>Line 3: <body>

HTML Code:
HTML

<%@ Page Language="vb" AutoEventWireup="false" Codebehind="testDoc.vb" Inherits="testDoc" %>

<html>

<body>



<asp:Label ID="mydateTime"  runat="server" />

</body>

</html>
Code:
Public Class testDoc

    Inherits System.Web.UI.Page



#Region " Web Form Designer Generated Code "

……………

#End Region



Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

        Dim mydate As Date = Now()

        Dim mydateTime As Label



        mydateTime.text = mydate

    End Sub



End Class
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

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