I have programmed a Web Service called Customer.asmx.

This is the code:

<%@ WebService Language="VB" Class="Customer"%>
Imports System.Web.Services
<WebService(Namespace:="DigitalSnd1")> _
Public Class Customer
Public Name As String
<WebMethod()> Public Sub Custname()
Name="The name is John"
End Sub
End Class

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??