NotSupportedException.....from ascyn webservice call?

I

Iceman_Aragorn

Below is the offending code. The error occurs in the last line, when
the endauthenticate1 method is called. The "ar" webclientasyncresult
variable, at this point, contains a property called error which
contains "NotSupportedException".
Any ideas as to what could possibly cause this?

IAsyncResult ar = securityProvider.BeginAuthenticate1(username,
password, jndiNotNull,SecurityPlatformProviderService.getJndiName(),
null, null);

int secondsToWait = 0;
while (!ar.IsCompleted)
{
// do work while waiting
if (secondsToWait++ > securityProvider.Timeout/1000)
{
//abort the webservice as we timed out
((WebClientAsyncResult)ar).Abort();

//throw a new web service timeout exception
throw new WebException("Login Failed - Timeout",
System.Net.WebExceptionStatus.Timeout);
}
else
Thread.Sleep(1000);
}

return securityProvider.EndAuthenticate1(ar);
 
I

Iceman_Aragorn

For some reason, syncronous calls too, result in a not supported
exception.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top