DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   ASP.NET (http://www.daniweb.com/forums/forum18.html)
-   -   <@ import Namespace "MathService"> , or was not found. (http://www.daniweb.com/forums/thread27732.html)

rico6xrico Jul 8th, 2005 5:52 pm
<@ import Namespace "MathService"> , or was not found.
 
Hello All,

I'm trying to understand the whole concept of Webservices ans ASP.NET. I've created following documents, using "VB" Script.

MathServiceClient.aspx
MathService.asmx
MathService.wsdl
MathService.vb

On my MathServiceClient.aspx file I have the following include,
{code} <%@ Import Namespace="MathService" %> {/code}

*I think this forum required {code}{/code} when posting code.

Well, when I call MathServicesClient.aspx, I get the following error.



Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30002: Type 'MathServiceVB.MathService' is not defined.

Source Error:



Line 19: End Try
Line 20:
Line 21: Dim Service As MathServiceVB.MathService = New MathServiceVB.MathService()
Line 22:
Line 23: Select (CType(sender,Control).ID)


Source File: C:\Inetpub\wwwroot\webservices\math\MathServiceClient.aspx Line: 21


I believe the "MathServiceClient.aspx" has NOT imported the Namespace "MathService, for some reason it doesn't create object from library.

I've also done various examples off the web and I continue to have the same issue, what could be the problem? Please help.

Thanks,

Ricardo


All times are GMT -4. The time now is 7:54 am.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC