Thanks for John's input.
Hi Cj,
My previous reply must mislead you somewhat, however, I never means VS 2008
no longer need that directive below:
<%@ WebService Language="C#" CodeBehind="Service1.asmx.cs"
Class="WebService1.Service1" %>
I never try comparing the generated file between VS 2005 & VS 2008
webservice before. I did it just and the above directive is still used in
asmx file. Also, what I ask in last reply is whether you have anything not
quite understand about this directive or anything else related to this
statement. If so, please feel free to let me know.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
From: "John Saunders [MVP]" <john.saunders at trizetto.com>
References: <#fQxyE8VIHA.2268@TK2MSFTNGP02.phx.gbl>
<FKx1XP$VIHA.5204@TK2MSFTNGHUB02.phx.gbl>
<e1yCukFWIHA.4548@TK2MSFTNGP03.phx.gbl>
Subject: Re: <%@ WebService Language ="Vb" Class="....
Date: Wed, 16 Jan 2008 14:07:50 -0500
[quoted text, click to view] "cj" <cj@nospam.nospam> wrote in message
news:e1yCukFWIHA.4548@TK2MSFTNGP03.phx.gbl...
>I hope I'm not annoying you but I'm someone who likes to understand things
>and I'm not happy just because something happens to work. From your
answer
>I take it this statement must have been used in .net 2.0 but must no
longer
>be used in 3.5 which I believe is the default version being used when I
>start a project in VB2008 because that statement isn't in the code for the
>HelloWorld web service that is there when I create a new web service in
>2008. Is this correct?
>
> Anyway one of my problems is examples I find on the web differ quite a
bit
> and there don't seem to be many VB2008 examples yet.
The "<%@ WebService" directive that you refer to belongs in the .ASMX
file.
It is still used. Here's the one from a "Hello World" service that I
created
in Visual Studio.NET 2008:
<%@ WebService Language="C#" CodeBehind="Service1.asmx.cs"
Class="WebService1.Service1" %>
--
----------------------------------------------------------------------------
----