[Mono-bugs] [Bug 318126] Sometimes fails to pass basic auth credentials to web service

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Oct 5 20:48:54 EDT 2007


Jason Powell <jtpowell at hotmail.com> changed:

           What    |Removed                                         |Added
                 CC|                                                |jtpowell at hotmail.com
                URL|                                                |http://sourceforge.net/projects/sharptv
           Found By|---                                             |Other
         OS/Version|Other                                           |Linux
           Platform|Other                                           |i686
            Version|1.1                                             |1.2

--- Comment #1 from Jason Powell <jtpowell at hotmail.com>  2007-10-05 18:48:51 MST ---
Looks like same bug but its in still.  This works perfect in .NET 2 on
windows.  I'm trying to consume the schedulesdiret tv listing service. Code is
available SVN http://sourceforge.net/projects/sharptv

sharpTV listing loader
Downloading data

Unhandled Exception: System.Net.WebException: The request failed with HTTP
status 401: Unauthorized
  at System.Web.Services.Protocols.SoapHttpClientProtocol.ReceiveResponse
(System.Net.WebResponse response,
System.Web.Services.Protocols.SoapClientMessage message,
System.Web.Services.Protocols.SoapExtension[] extensions) [0x00000]
  at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke (System.String
method_name, System.Object[] parameters) [0x00000]
  at sharpTV.SchedulesDirect.xtvdWebService.download (System.String startTime,
System.String endTime) [0x00000]
  at (wrapper remoting-invoke-with-check)
sharpTV.SchedulesDirect.xtvdWebService:download (string,string)
  at sharpTV.ListingLoader.DownloadData (System.String location) [0x00000]
  at sharpTV.MainClass.Main (System.String[] args) [0x00000]

The credentials are valid
string username = Properties.Settings.Default.username;
            string password = Properties.Settings.Default.password;
            xtvdWebService csService = new xtvdWebService();
            System.Net.ICredentials credentials = new
System.Net.NetworkCredential(username,password, string.Empty);
            csService.Credentials = credentials;

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list