Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Created attachment 8 [details]
Proxy class and class to call the service, SSRS needed....
*) Created a proxy to the SSRS WebService using Silverlight Tools
*) Created a silverlight test client to call SSRS
*) Ported everything to MonoTouch
*) Running the App gives exception in emu:
System.Web.NetException: There was an error processing web request: Status Code 401 (Unauthorized)
*) Using the same user and pwd in Firefox or Safari succeeds
Just to make sure, SSRS == "SQL Server Reporting Services" right ?
Does your SL application worked under Moonlight, or using Mono (and a different app) ?
If it works on Mono (or Moonlight) then there's likely something MonoTouch specific we're missing (or mis-initializing).
In any case a network trace (using wireshark) would be very useful to see what's being exchanged (and the authentication method being used) and let us build a test case that does not requires SSRS :)
Got it to work:
*) Created a WebService Proxy in VS2010 (before it was a WCF proxy created using SlSvcUtil)
*) Tried (but fails in Mono/MoonoTouch with error 401, on the 1st ws call):
cache.Add( new Uri(rs.Url), "Negotiate", new NetworkCredential("myuser", "mypwd", null));
*) Tried, and this works:
cache.Add( new Uri(rs.Url), "NTLM", new NetworkCredential("myuser", "mypwd", null));