Problem in Consuming Web Service
Hello
When I write code using WebMatrix as follows
<%@ Page Language="VB" %>
<%@ import Namespace="TestServiceClass" %>
<script runat="server">
Sub Button1_Click(sender As Object, e As EventArgs)
Dim myService as New SecurityWebService()
txtPrice.text = myservice.GetSecurityInfo()
End Sub
Following error occurs :
Compiler Error Message: BC30002: Type 'SecurityWebService' is not defined.
AND When I write code using WebMatrix as follows
<%@ Page Language="VB" %>
<script runat="server">
Imports TestServiceClass
Sub Button1_Click(sender As Object, e As EventArgs)
Dim myService as New SecurityWebService()
txtPrice.text = myservice.GetSecurityInfo()
End Sub
Compiler Error Message: BC30465: 'Imports' statements must precede any declarations.
I have 2 files as follows
1. TestServiceClass.vb in current "work directory"
2. TestServiceClass.dll in "work directory\bin"
Please suggest some solution.
Note : I do not have Microsoft Visual Studio .NET
Regards
Mahesh