Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
| Search | Today's Posts | Mark Forums Read
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports 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 January 20th, 2007, 03:28 AM
Registered User
Join Date: Jan 2007
Location: Bhubaneswar, Orissa, India.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Cast Problem in Web service proxy

I have got a web service which returns a custom object defined in the web service itself. When i use the Web service in a windows form,through a proxy to return the custom object, it gives me the error "Specified Cast not valid". Can anyone help me out?
The problem occurs in the proxy in the following method
public OrderPrintResult StartOrderPrint(string UserLogin, string UserPassword, int LocationID, int SiteID, int WorkQueueID) {
            object[] results = this.Invoke("StartOrderPrint", new object[] {
            return ((OrderPrintResult)(results[0]));
The problem occurs when the cast (OrderPrintResult)(results[0]) is made. Please help me out.
This is really important as i am running out of time.

Thanks and Regards
Amit Taparia

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a Web Service Proxy cjo ASP.NET 1.0 and 1.1 Basics 2 January 29th, 2005 03:33 AM
Web Service proxy to COM sangata .NET Web Services 2 October 18th, 2004 02:02 AM
Web Service Proxy - to - COM component sangata General .NET 1 October 11th, 2004 01:22 PM

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