I have programmed a Web Service called Customer.asmx.
This is the code:
<%@ WebService Language="VB" Class="Customer"%>
Public Class Customer
Public Name As String
<WebMethod()> Public Sub Custname()
Name="The name is John"
I also have programmed an aspx to call this Web Service
<%@ Page Language="VB" Debug="true"%>
Dim theCustom As new Customer()
I get an error at this line
Compiler Error Message: BC30456: 'Name' is not a member of 'Customer'.
What Could be wrong If I have "Name" declared as public variable in the web service code??