|
-
Apr 23rd, 2004, 04:17 AM
#1
Thread Starter
Lively Member
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
Everybody is always learning something new ! 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|