Sign In/My Account | View Cart  

advertisement

AddThis Social Bookmark Button

Article:
  Build a Simple Web Service
Subject:   c:\inetpub\wwwroot\MathLibrary\Service1.asmx.vb(5): Expected an identifier.
Date:   2003-04-01 01:47:56
From:   anonymous2
Response to: c:\inetpub\wwwroot\MathLibrary\Service1.asmx.vb(5): Expected an identifier.

If you took code from WWW page:
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.

Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • 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 ...