473,480 Members | 2,592 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Async Web Service calls and Shareware Starter Kit

Hi,
First of all, thanks for a great starter kit, now If I could just get
it to work (fully).
I am trying to compile and run the solution/services all on a local dev
box.
I am able to successfully run most of the SampleApp features
(Register,Feedback,Error report, version check)
The only method I can not execute is the BuyNow example.
I have tried leveraging the Sharewarestarterkit.com web service to rule
out locality, to no avail.

The exception occurs as a result of calling this method:
-----------------------------------------------------------------------------------------------------

m_webservice.GetLicenseAsync(Client.Properties.Set tings.Default.ProductName,
m_datastore.UniqueMachineID,
buyNowInfo.LicenseLevel,
buyNowInfo.Invoice,
Client.Properties.Settings.Default.DevToken,
m_datastore.UniqueMachineID);
-----------------------------------------------------------------------------------------------------
when the following delegate is called (assume triggered by async
completion / failure )...
-----------------------------------------------------------------------------------------------------
m_webservice.GetLicenseCompleted += new
GetLicenseCompletedEventHandler(_webservice_GetLic enseCompleted);

-----------------------------------------------------------------------------------------------------
the exception contained in the args value passed into the delegate from
the async web request is this:
-----------------------------------------------------------------------------------------------------
- args {Client.SskWebService.GetLicenseCompletedEventArgs } Client.SskWebService.GetLicenseCompletedEventArgs
+ base {Client.SskWebService.GetLicenseCompletedEventArgs } System.ComponentModel.AsyncCompletedEventArgs
{Client.SskWebService.GetLicenseCompletedEventArgs }
- Result 'args.Result' threw an exception of type
'System.Reflection.TargetInvocationException' string
{System.Reflection.TargetInvocationException}
- base {"An exception occurred during the operation, making the result
invalid. Check InnerException for exception
details."} System.ApplicationException
{System.Reflection.TargetInvocationException}
- base {"An exception occurred during the operation, making the result
invalid. Check InnerException for exception
details."} System.Exception
{System.Reflection.TargetInvocationException}
+ Data {System.Collections.ListDictionaryInternal} System.Collections.IDictionary
{System.Collections.ListDictionaryInternal}
HelpLink null string
- InnerException {"Unable to connect to the remote
server"} System.Exception {System.Net.WebException}
+ [System.Net.WebException] {"Unable to connect to the remote
server"} System.Net.WebException
+ Data {System.Collections.ListDictionaryInternal} System.Collections.IDictionary
{System.Collections.ListDictionaryInternal}
HelpLink null string
- InnerException {"The attempted operation is not supported for the
type of object referenced"} System.Exception
{System.Net.Sockets.SocketException}
+ [System.Net.Sockets.SocketException] {"The attempted operation is
not supported for the type of object
referenced"} System.Net.Sockets.SocketException
+ Data {System.Collections.ListDictionaryInternal} System.Collections.IDictionary
{System.Collections.ListDictionaryInternal}
HelpLink null string
+ InnerException null System.Exception
Message "The attempted operation is not supported for the type of
object referenced" string
Source "System" string
StackTrace " at System.Net.Sockets.Socket.get_ConnectEx()\r\n at
System.Net.Sockets.Socket.BeginConnectEx(EndPoint remoteEP, Boolean
flowContext, AsyncCallback callback, Object state)\r\n at
System.Net.Sockets.Socket.UnsafeBeginConnect(EndPo int remoteEP,
AsyncCallback callback, Object state)\r\n at
System.Net.ServicePoint.ConnectSocketInternal(Bool ean connectFailure,
Socket s4, Socket s6, Socket& socket, IPAddress& address,
ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout,
Exception& exception)" string
+ TargetSite {ConnectExDelegate
get_ConnectEx()} System.Reflection.MethodBase
{System.Reflection.RuntimeMethodInfo}
+ Static members
+ Non-Public members
Message "Unable to connect to the remote server" string
Source "System.Web.Services" string
StackTrace " at
System.Web.Services.Protocols.WebClientAsyncResult .WaitForResponse()\r\n
at
System.Web.Services.Protocols.WebClientProtocol.En dSend(IAsyncResult
asyncResult, Object& internalAsyncState, Stream& responseStream)\r\n
at
System.Web.Services.Protocols.SoapHttpClientProtoc ol.InvokeAsyncCallback(IAsyncResult
result)" string
+ TargetSite {System.Net.WebResponse
WaitForResponse()} System.Reflection.MethodBase
{System.Reflection.RuntimeMethodInfo}
+ Static members
+ Non-Public members
Message "An exception occurred during the operation, making the
result invalid. Check InnerException for exception details." string
Source "System" string
StackTrace " at
System.ComponentModel.AsyncCompletedEventArgs.Rais eExceptionIfNecessary()\r\n
at Client.SskWebService.GetLicenseCompletedEventArgs. get_Result() in
I:\\SSK1\\SSK1\\Client\\Web
References\\SskWebService\\Reference.cs:line 851" string
+ TargetSite {Void
RaiseExceptionIfNecessary()} System.Reflection.MethodBase
{System.Reflection.RuntimeMethodInfo}
+ Static members
+ Non-Public members
results null object[]

one strange thing is that if I change it to a synchronous call, it
seems to get a result...
below is the messagebox content when I just display the synch call
returned data.

---------------------------
<?xml version="1.0" encoding="utf-16"?>
<LicenseResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<ClientIdentity>J8e0WUa7AAjPzBUNoi69OYEfChg=</ClientIdentity>
<LicenseLevel>Standard</LicenseLevel>
<Product>Shareware Starter Kit</Product>

<AuthenticatedLicense>d737HtAIRJxSp48cfZ/a2lfBwF25Yj6mrNcivr+sFjKhLg3q5aZev8Gi7NFJWjXGhBkZB 8MSLMTFgGtKgB3mkpK/s6k29/fQyPUqJH7g+p6tiel2G9AspnjfVmg6gZ4hzp7h342LUOoxWktY sSb/6hTHUgL8D5n0CypFlJ7kAzc=</AuthenticatedLicense>
</LicenseResponse>
---------------------------
OK
All of the other service calls work, so I am a bit confused.
I am unable to step into the web service code during the call so Im not
sure where to go from here.

Does anyone have any ideas as what I can check, or look into?

Thanks for any Help
David Johnson
-----------------------------------------------------------------------------------------------------

Jan 15 '06 #1
0 2065

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1687
by: Bob | last post by:
I'm looking at the docs in VS2005 regarding starter kits and I noticed that the starter kits to download from the site are in vsi files (compressed), all except the shareware starter kit. MS docs...
2
5536
by: Drew Stoddard | last post by:
We are working in C#/Winforms and are using asynchronous client-side web service calls (the Begin... and End... methods supplied by the web reference creation). Many of these calls are contained...
2
1357
by: Lucas Tam | last post by:
Is there a realistic maximum time a client can wait for an async response from a web service? I have requests that may take anywhere from 1 - 5 minutes to complete... maybe even more. Is it safe...
1
4304
by: Simon Hart | last post by:
Hi, I thought I'd just open a thread in an attempt to get peoples feelers with regards to multithreading vs Async Web Service processing. Of course Web Services makes it easy to do Async...
10
2608
by: Brian Parker | last post by:
I inherited a C++ DLL that I need to remotely call multiple times asynchronously. What I have developed is: CSharp web application that makes asynchronous calls to a CSharp Web Service. The...
1
1619
by: ksen | last post by:
I am calling wcf service asynchronously, It works fine most of the time. Sometimes i get exceptions. When i see the event log there are few event logs related to the async calls. Could some one...
5
4659
by: =?Utf-8?B?U3RlZmFuIEZpbGlw?= | last post by:
Hello, I'm trying to launch several async calls for different methods of a web service, but I get this error when i'm trying to read the result (There was an error during asynchronous...
2
5537
by: jojoba | last post by:
Hello to all! I have a fairly simple webservice running in asp.net ajax under c# (vs 2008). I built the service and it runs just dandy when i test it by itself in visual studio. However, to...
1
1959
by: =?Utf-8?B?TWFyaw==?= | last post by:
Hi... There are a few questions wrapped up in this, but the main one is that the WebService.MyMethodAsync() methods that are automatically generated in the client code by VS 2005 don't seem to...
0
7055
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6920
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7060
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7022
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4799
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4501
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
1
572
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
206
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.