p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 (http://p2p.wrox.com/forumdisplay.php?f=127)
-   -   Chapter 7 p 214 code didn't work, changes needed.. (http://p2p.wrox.com/showthread.php?t=14383)

jmurdock June 18th, 2004 09:06 AM

Chapter 7 p 214 code didn't work, changes needed..
 
I am working through the book (page by page, hence all the posts).

Currently I am working through Chapter 7, building a windows app that connects to the Reporting Services web service to manage reports.

On page 214 it tells us to create a new class and name it RSUtilities. It tells us to add system.io and [projectName].ReportingWebService

I had to also add:
System.Web.Services.Protocols

or I could not work with the Soap protocol.

If anyone else gets Soap related code errors showing up this may be what you need to do.

Using code on page 215 I got the following error:
C:\NetProjects\ReportServicesManager\ProfessionalS QLReportingServicesManager\MainForm.vb(298): 'ProfessionalSQLReportingServicesManager.RSUtiliti es.Private Shared Sub ErrorHandler(ex As System.Exception)' is not accessible in this context because it is 'Private'.

I changed the way I declared my sub to this:
Shared Sub ErrorHandler(ByVal ex As Exception)
and the error went away.

If this is not proper, please someone let me know.

Sandy Murdock MCP

bmains June 20th, 2004 09:06 PM

Hello,

You can declare Public, Friend(Internal in C#) or Protected if you needed to, although Friend and Protected may have the same problems. If it is a web service, that would make sense about the private context because outside programs couldn't access it when needed.

Brian


All times are GMT -4. The time now is 09:34 PM.

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