Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 1.1
This is the forum to discuss the Wrox book Beginning ASP.NET 1.1 with Visual C#.NET 2003 by Chris Ullman, John Kauffman, Chris Hart, Dave Sussman, Daniel Maharry; ISBN: 9780764557088
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 29th, 2004, 03:32 AM
Registered User
 
Join Date: Mar 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problems importing namespace

I'm working on the samples in Chapter 16, Web Services, the ISBN example.

The problem I'm having is that when I try to get the data from the web service I created, I'm getting the following errors in the browser.

Compiler Error Message: BC30002: Type 'ISBNService.ISBN' is not defined.

Source Error:



Line 4:
Line 5: Private Sub RetrieveBook(ByVal sender As System.Object, ByVal e As System.EventArgs)
Line 6: Dim ws As New ISBNService.ISBN()
Line 7: lblBookTitle.Text = ws.BookDetail(txtISBN.Text)
Line 8: End Sub

I've even copied over the files from the Wrox downloadable code, and still the same problem. The .dll is being compiled fine. Maybe some configuration on my part? I'm not sure.

Any help would be great!

Thanks!

 
Old April 2nd, 2004, 02:34 PM
Registered User
 
Join Date: Feb 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to knopfler
Default

Try putting the dll into a bin folder, if it isn't already in one. That might work.

Cheers!

Errors have been made. Others will be blamed.
 
Old April 2nd, 2004, 07:56 PM
Registered User
 
Join Date: Mar 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks!

I'm pretty sure it's in a bin directory already, but I'll double check it.

The dll was created from the proxy generator in Web Matrix.

 
Old April 3rd, 2004, 01:02 AM
Registered User
 
Join Date: Mar 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I was able to figure it out. The problem was I had my bin directory in the wrong place, it wasn't in the root directory. User error...

 
Old January 29th, 2005, 03:31 AM
Friend of Wrox
 
Join Date: May 2003
Posts: 229
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

I have tested the code you are referring and got it work after some changes. Please follow the instructions below:

Instructions to follow for Web Matrix..

Open ISBN.asmx in web matrix and run the file using web matrix inbuilt web server, in web browsers you will see something similar to “http://localhost:8080/isbn.asmx”. Copy this URL to somewhere for later use.

Now Generate the proxy Class for this web service by using “Web Service Proxy Generator” found in “Tools #61664; Web Service Proxy Generator”. On clicking this option a dialog box will appear.

In “XML Web Service Proxy Generator” dialog box fill the information as follows:

WSDL URL = “http://localhost:8080/isbn.asmx”

Namespace = ISBNService

Output Directory = C:\BegASPNET11\ch16

Source File = ISBNProxy

Generate Assembly = ISBNProxy.dll

Click on Generate. This will generate the source file named “ISBNProxy.vb” in the output directory and assembly named “ISBNProxy.dll” in the folder named bin under the output directory.

After process completion a confirmation message box will appear, click “OK” and then click “cancel” to get out of the “XML Web Service Proxy Generator” dialog box.

Now Open the aspx file named “BookInfo.aspx” and click on the “start” icon on the toolbar to run this file using the web matrix web server.

If all the instructions followed, you will see the result in web browser successfully.






Charul Shukla





Similar Threads
Thread Thread Starter Forum Replies Last Post
Namespace problems riffla XSLT 1 April 10th, 2008 06:18 PM
Problem importing namespace netsu ASP.NET 1.0 and 1.1 Basics 1 March 16th, 2007 02:03 PM
Problems with namespace & classes ayamas Visual Studio 2005 0 October 12th, 2006 08:56 AM
namespace problems in xslt stekker XSLT 2 June 16th, 2006 09:59 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.