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,Feedb ack,Error report, version check)
The only method I can not execute is the BuyNow example.
I have tried leveraging the Sharewarestarte rkit.com web service to rule
out locality, to no avail.
The exception occurs as a result of calling this method:
-----------------------------------------------------------------------------------------------------
m_webservice.Ge tLicenseAsync(C lient.Propertie s.Settings.Defa ult.ProductName ,
m_datastore.Uni queMachineID,
buyNowInfo.Lice nseLevel,
buyNowInfo.Invo ice,
Client.Properti es.Settings.Def ault.DevToken,
m_datastore.Uni queMachineID);
-----------------------------------------------------------------------------------------------------
when the following delegate is called (assume triggered by async
completion / failure )...
-----------------------------------------------------------------------------------------------------
m_webservice.Ge tLicenseComplet ed += new
GetLicenseCompl etedEventHandle r(_webservice_G etLicenseComple ted);
-----------------------------------------------------------------------------------------------------
the exception contained in the args value passed into the delegate from
the async web request is this:
-----------------------------------------------------------------------------------------------------
- args {Client.SskWebS ervice.GetLicen seCompletedEven tArgs} Client.SskWebSe rvice.GetLicens eCompletedEvent Args
+ base {Client.SskWebS ervice.GetLicen seCompletedEven tArgs} System.Componen tModel.AsyncCom pletedEventArgs
{Client.SskWebS ervice.GetLicen seCompletedEven tArgs}
- Result 'args.Result' threw an exception of type
'System.Reflect ion.TargetInvoc ationException' string
{System.Reflect ion.TargetInvoc ationException}
- base {"An exception occurred during the operation, making the result
invalid. Check InnerException for exception
details."} System.Applicat ionException
{System.Reflect ion.TargetInvoc ationException}
- base {"An exception occurred during the operation, making the result
invalid. Check InnerException for exception
details."} System.Exceptio n
{System.Reflect ion.TargetInvoc ationException}
+ Data {System.Collect ions.ListDictio naryInternal} System.Collecti ons.IDictionary
{System.Collect ions.ListDictio naryInternal}
HelpLink null string
- InnerException {"Unable to connect to the remote
server"} System.Exceptio n {System.Net.Web Exception}
+ [System.Net.WebE xception] {"Unable to connect to the remote
server"} System.Net.WebE xception
+ Data {System.Collect ions.ListDictio naryInternal} System.Collecti ons.IDictionary
{System.Collect ions.ListDictio naryInternal}
HelpLink null string
- InnerException {"The attempted operation is not supported for the
type of object referenced"} System.Exceptio n
{System.Net.Soc kets.SocketExce ption}
+ [System.Net.Sock ets.SocketExcep tion] {"The attempted operation is
not supported for the type of object
referenced"} System.Net.Sock ets.SocketExcep tion
+ Data {System.Collect ions.ListDictio naryInternal} System.Collecti ons.IDictionary
{System.Collect ions.ListDictio naryInternal}
HelpLink null string
+ InnerException null System.Exceptio n
Message "The attempted operation is not supported for the type of
object referenced" string
Source "System" string
StackTrace " at System.Net.Sock ets.Socket.get_ ConnectEx()\r\n at
System.Net.Sock ets.Socket.Begi nConnectEx(EndP oint remoteEP, Boolean
flowContext, AsyncCallback callback, Object state)\r\n at
System.Net.Sock ets.Socket.Unsa feBeginConnect( EndPoint remoteEP,
AsyncCallback callback, Object state)\r\n at
System.Net.Serv icePoint.Connec tSocketInternal (Boolean connectFailure,
Socket s4, Socket s6, Socket& socket, IPAddress& address,
ConnectSocketSt ate state, IAsyncResult asyncResult, Int32 timeout,
Exception& exception)" string
+ TargetSite {ConnectExDeleg ate
get_ConnectEx() } System.Reflecti on.MethodBase
{System.Reflect ion.RuntimeMeth odInfo}
+ Static members
+ Non-Public members
Message "Unable to connect to the remote server" string
Source "System.Web.Ser vices" string
StackTrace " at
System.Web.Serv ices.Protocols. WebClientAsyncR esult.WaitForRe sponse()\r\n
at
System.Web.Serv ices.Protocols. WebClientProtoc ol.EndSend(IAsy ncResult
asyncResult, Object& internalAsyncSt ate, Stream& responseStream) \r\n
at
System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.InvokeA syncCallback(IA syncResult
result)" string
+ TargetSite {System.Net.Web Response
WaitForResponse ()} System.Reflecti on.MethodBase
{System.Reflect ion.RuntimeMeth odInfo}
+ 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.Componen tModel.AsyncCom pletedEventArgs .RaiseException IfNecessary()\r \n
at Client.SskWebSe rvice.GetLicens eCompletedEvent Args.get_Result () in
I:\\SSK1\\SSK1\ \Client\\Web
References\\Ssk WebService\\Ref erence.cs:line 851" string
+ TargetSite {Void
RaiseExceptionI fNecessary()} System.Reflecti on.MethodBase
{System.Reflect ion.RuntimeMeth odInfo}
+ 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"?>
<LicenseRespons e xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema">
<ClientIdentity >J8e0WUa7AAjPzB UNoi69OYEfChg=</ClientIdentity>
<LicenseLevel>S tandard</LicenseLevel>
<Product>Sharew are Starter Kit</Product>
<AuthenticatedL icense>d737HtAI RJxSp48cfZ/a2lfBwF25Yj6mrN civr+sFjKhLg3q5 aZev8Gi7NFJWjXG hBkZB8MSLMTFgGt KgB3mkpK/s6k29/fQyPUqJH7g+p6ti el2G9AspnjfVmg6 gZ4hzp7h342LUOo xWktYsSb/6hTHUgL8D5n0Cyp FlJ7kAzc=</AuthenticatedLi cense>
</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
----------------------------------------------------------------------------------------------------- 0 2080 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 says that templates should be
in compressed files. The Shareware starter kit is in msi file so when you
install it you get a solution that includes some other projects, but it does
not appear in the templates when you want to start a new project....
|
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 in Windows forms that the user
can close before the web service call has completed. This seems to be
working fine, but I wanted to check to see if anyone has experienced any
problem with this. Specifically this is what I need to know: Is it...
|
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 to use an async web service?
Also, is there a limit to the number of async requests a server can
support? Any type of limiters I should be aware of? Threading limits?
Thanks!
|
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 method calling, but what if
you are already in a worker thread in a Windows Forms application when doing
the web service call. In this case there is no need to use Async Begin..End
features that .NET kindly presents us with.
|
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 Web Service calls the DLL, which does some heavy
processing, then sends the results back to the CSharp web application.
The problem is that the calls to the DLL in the Web Service are blocking
each other. If I send 10 async requests to the Web...
| |
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 explain what this about and
how to correct it.?
Here is the event details:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 10/24/2006 2:30:19 PM
|
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 processing. Unique state object is required for
multiple asynchronous simultaneous operations to be outstanding.). I read the
post at
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2279895&SiteID=1, and I
get the same error, but I have async calls...
|
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 make it work, i had to break up the webmethod into the
BeginXXX, EndXXX model
as per http://msdn2.microsoft.com/en-us/library/aa480516.aspx
But now, i can no longer call this method from javascript (since to
|
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 be finishing for me.
We have a VS add-in written in .net that used to make a number of database
calls to fill forms. To improve security, we moved the db calls to a web
service and return DataSets for the calls (the result sets are always...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |