| Article: |
Build a Simple Web Service | |
| Subject: | c:\inetpub\wwwroot\MathLibrary\Service1.asmx.vb(5): Expected an identifier. | |
| Date: | 2002-01-23 06:17:12 | |
| From: | albert1234 | |
|
I am using v.s .net beta2 and i keep getting this errors help please ? |
||
Showing messages 1 through 3 of 3.
-
c:\inetpub\wwwroot\MathLibrary\Service1.asmx.vb(5): Expected an identifier.
2003-04-01 01:47:56 anonymous2 [View]
-
c:\inetpub\wwwroot\MathLibrary\Service1.asmx.vb(5): Expected an identifier.
2003-09-01 03:31:33 anonymous2 [View]
same problem is occurring..
identifier expected..i m using MSVS version 7.0.9466
-
c:\inetpub\wwwroot\MathLibrary\Service1.asmx.vb(5): Expected an identifier.
2003-12-03 20:48:32 anonymous2 [View]
Put the <WebMethod()> in front of the Public Function like this.
<WebMethod()> Public Function ...



Public Function <WebMethod()> Add(ByVal n1 As
Integer, _ ByVal n2 As Integer) As Integer
...it should appear in your files as:
Public Function <WebMethod()> Add(ByVal n1 As _
Integer, ByVal n2 As Integer) As Integer
...to pass parser right.
Hope this helps.