mel, craig
I've gone ahead and recreated all my libs using the shared file approach,
than made sure I compile my MA project with those. Now I can step into the
lib, but something is still very wrong - the debugger ends on the wrong line
(step into method from a class belonging to my GUI project into a class from
a lib project and the "current line" marker is one line above the method
header... plus, I'm doing all my calls asynchronously any in my asynch
callback calling the End method of the webservice call, I get that call
underlined in red and mouseover tells me "Unknown member".
Then I get the same unhandled exception thrown as before. And then I get my
standard catch handler that tells me the remote endpoint is not listening
(which is to be expected because I purposefully gave it a non working
address).
Any other ideas? It's still voodoo to me.
Here's the method I'm trying to call:
public OperationResult BeginLogin(string login, string password, string
sessionId, string clientVersion)
{
try
{
writeLog(string.Format("SmartAppMobileServerConnector -
BeginLogin - login: {0}, sessionId: {1}", login, sessionId), 2);
smartAppServer.BeginMobileLogin(login, password, sessionId,
clientVersion, new AsyncCallback(loginEnded), sessionId);
return new OperationResult { Code =
OperationResultCode.Success };
}
catch (Exception e)
{
return processErrorInBeginMethod(e);
}
}
private void loginEnded(IAsyncResult ar)
{
try
{
ClientInterface.LoginResult res =
smartAppServer.EndMobileLogin(ar);
if (res.Code == BooleanOperationResultCode.Success)
currentSessionId = ar.AsyncState as string;
ClientInterface.LoginResult fullResult = new LoginResult
{
AdditionalFrameworkUserNumbers =
res.AdditionalFrameworkUserNumbers,
Code = res.Code,
Devices = res.Devices,
Error = res.Error,
FeatureSet = res.FeatureSet,
SearchPlugins = res.SearchPlugins
};
writeLog(string.Format("SmartAppMobileServerConnector -
LoginCallback - LoginResult - Code: {0}, Error: {1}", res.Code, res.Error),
2);
OnLoginComplete(new LoginEventArgs { Result = fullResult });
}
catch (Exception e)
{
processErrorInEndMethod(e);
}
}
And here's the output
Unhandled Exception:
System.ServiceModel.EndpointNotFoundException: A system exception has
occurred.
Unhandled Exception:
System.ServiceModel.EndpointNotFoundException: A system exception has
occurred.
08-18 21:15:04.145 E/SmartAppMobile( 5087): Communication exception in : A
system exception has occurred.
For starters, there are two exceptions (makes no sense... BeginLogin is
called but once), and the exception is not unhandled - what more than
try/catch around all remote calls can I do?
--
View this message in context:
http://mono-for-android.1047100.n5.nabble.com/Stepping-into-standard-NET-libs-tp5711361p5711398.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid