all groups > vj# > march 2004 >
You're in the

vj#

group:

URGENT : Importance of webservice tag in dot net web service page


URGENT : Importance of webservice tag in dot net web service page Prasad Godde
3/18/2004 3:41:05 AM
vj#: Hell

Could someone enlighten for following xml tag/directive

<%@ WebService Language="C#" Class="MyMath"%><%@ WebService Language="J#" Class="MyMath"%

Why do we insert it in our web service pag

We are trying to write one service page and according to the examples given in the msdn site we are
putting the tag at the start of the pag
but after we put we get error messag

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 create type 'WebService2.Service1'

Source Error:

Line 1: <%@ WebService Language="c#" Codebehind="Service1.asmx.cs" Class="WebService2.Service1" %



Please reply as soon as possibl

By

Re: URGENT : Importance of webservice tag in dot net web service page Lars-Inge Tønnessen
3/18/2004 2:28:18 PM
You are using codebehind, this means you have separated the code from the
asmx file.

Eg.
<%@ WebService Language="VJ#" Codebehind="Service1.asmx.jsl"
Class="WebServJSharp.Service1" %>

WebService Language = .net language
WebServJSharp = namespace / pacakge name
Service1 = class name (in namespace).
Service1.asmx.jsl = J# source code file.


If you don't want to ship the source code. Make a dll file of the source
file and place it in the bin folder on the IIS (virtual) application folder,
and set access rights to the file for the IIS.



Lars-Inge Tønnessen
www.larsinge.com

Re: URGENT : Importance of webservice tag in dot net web service page Zain Kazmi
6/1/2004 10:45:26 PM
i was stuck on the same problem for a while.. in fact i had 5 people working on it at one time. finally i found the solution!
thanks a lot!

Zain

---
Posted using Wimdows.net NntpNews Component -

AddThis Social Bookmark Button