J
John Kotuby
I am studying a Wrox book, "Beginning ASP.NET 1.1 with VB.NET".
In the chapter on Web Services I am trying an example in VS 2003 with VB.NET
that shows what they are calling a Processor Directive that should be at the
top of the code page (according to the book) before the Imports statements.
Note that the book is using WebMatrix as the development tool and I am using
VS.NET.
Here is partial example code in the book:
<%@ WebService language="VB" class="MeasureConvert" %>
Imports System.Web.Services
Imports System.XML.Serialization
VS is pointing out 2 errors.
"Imports statements must preceed any declarations"
The % is underlined with the error text "Character is not valid"
When I move the "Directive" below the Imports statements, the first error
goes away, but the "Character is not valid" remains.
Now, when I leave out the...
<%@ WebService language="VB" class="MeasureConvert" %>
.... entirely, the Web Service runs just fine. Does anyone know what the
problem might be?
Thanks in advance...
In the chapter on Web Services I am trying an example in VS 2003 with VB.NET
that shows what they are calling a Processor Directive that should be at the
top of the code page (according to the book) before the Imports statements.
Note that the book is using WebMatrix as the development tool and I am using
VS.NET.
Here is partial example code in the book:
<%@ WebService language="VB" class="MeasureConvert" %>
Imports System.Web.Services
Imports System.XML.Serialization
VS is pointing out 2 errors.
"Imports statements must preceed any declarations"
The % is underlined with the error text "Character is not valid"
When I move the "Directive" below the Imports statements, the first error
goes away, but the "Character is not valid" remains.
Now, when I leave out the...
<%@ WebService language="VB" class="MeasureConvert" %>
.... entirely, the Web Service runs just fine. Does anyone know what the
problem might be?
Thanks in advance...