Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
.NET Web Services Discussions about .NET XML Web Service technologies including ASMX files, WSDL and SOAP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Web Services section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 24th, 2003, 03:03 PM
Authorized User
Join Date: Jun 2003
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default Parser Error with Control Directive

I am new to ASP.Net & web development but I am OK with Application based with both C# and VB.Net.
I am following the Wrox ASP.Net 1.0 Spec Edition Book. On chapter 4 - Writing ASP.Net pages, particular around page 185 - 192, which uses the @ Control directive, by the way I am using VB.Net. On p190 it uses class with this Control directive to replace the normal ASP web coding objects. I tried but seems that my .Net complier does not recognised this Control directive, why?

Here is the error code produced when I ran the web application:

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: The directive 'Control' is unknown.
Source Error:

Line 3: <%@ Import Namespace = "System.Data" %>
Line 4: <%@ OutputCache Duration="10" VaryByParam="none" %>
Line 5: <%@ Control Inherits="shipMethodClass" Src="WebForm1.aspx.vb" ClassName="shipMethod" %>Line 6: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Line 7: <HTML>

Source File: d:\inetpub\wwwroot\WebAppTest01\WebForm1.aspx Line: 5

Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573

Can any one help as I am really a novice on web side and like to crack and able to do it. I believe this directive is important and I have to be able to use it before I get to more advance stuff.

Thanks in advance

Similar Threads
Thread Thread Starter Forum Replies Last Post
Parser Error rwalker Crystal Reports 0 May 8th, 2006 03:47 PM
Parser Error shupiR ASP.NET 1.0 and 1.1 Basics 4 January 6th, 2006 12:59 AM
Error: directive 'WebService' is unknown mikeyp .NET Web Services 0 October 31st, 2005 02:19 PM
Parser Error ashokparchuri General .NET 0 June 3rd, 2005 03:14 AM
Parser Error on Biztalk mandla Access 0 August 13th, 2003 07:03 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.