D
Davie
I want to authorise a user of a web service by using the AuthHeaderValue for
some reason I keep getting a null reference exception when I try to run the
following code: It seems to work fine on a .NET Framework application, but
just not on the .NET CF version.
Can anyone suggest anything that might be wrong with the code? (I could
post the app and webservice, but i was hoping that you might have noticed
something from the supplied code).
Many thanks.
WebServices service = new WebServices();
Webservices.AuthHeader Credentials = new Webservices.AuthHeader();
Credentials.UserName = "user";
Credentials.Password = "P@ssword";
service.AuthHeaderValue = Credentials;
loggedin = service.login();
some reason I keep getting a null reference exception when I try to run the
following code: It seems to work fine on a .NET Framework application, but
just not on the .NET CF version.
Can anyone suggest anything that might be wrong with the code? (I could
post the app and webservice, but i was hoping that you might have noticed
something from the supplied code).
Many thanks.
WebServices service = new WebServices();
Webservices.AuthHeader Credentials = new Webservices.AuthHeader();
Credentials.UserName = "user";
Credentials.Password = "P@ssword";
service.AuthHeaderValue = Credentials;
loggedin = service.login();