Hello

I have created one web service named SampleService.asmx.
ClassName is public class SecurityWebService : WebService
One method is made public as follows
public SecurityInfo GetSecurityInfo (string code)
And created dll of this webservice.

Now trying to use this dll in some aspx page as follows.

<%@ Page Language="VB" %>
<%@ import Namespace="SampleServiceVB" %>
<script runat="server">
dim objPrice as new SecurityWebService
Sub Button1_Click(sender As Object, e As EventArgs)
TextBox2.text = objPrice.GetSecurityInfo(TextBox1.text)
End Sub
</script>

But it is giving error as follows

Compiler Error Message: BC30002: Type 'SecurityWebService' is not defined.

I found following part on internet regarding path of dll file.

From this view, .NET has a revolution change that a component, just as our proxy class, no long needs be registered, all we need to do is that we just simplly save the component under the bin/, and .NET will automatically find it.

What is the significance of bin directory ? Where should it be ? Or is there any other reason of this error ?

Best Regards
Mahesh