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:   2002-01-23 06:17:12
From:   albert1234
I am using v.s .net beta2
and i keep getting this errors
help please ?
Full Threads Oldest First

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]

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