- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Javier,
There's an issue with the previous thread (http://software.intel.com/en-us/forums/showthread.php?t=61036)that we're trying to debug now, I can't see any posts within the thread past October 8th, but I saw that you had made posts on Friday and today. Until we get that issue resolved, I wanted to follow-up with you in this thread about your current status with this issue.
Andy
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Andy,
I'm still getting an Unauthorized Exception when accessing the SCS Web Services by code, but when I try to access by a browser I'm able to see a Gsoap page (I mean, I can access SCS Web Services by a browser, but not by code).
I used the same credentials in the browser (in Windows Integrated authentication window) and in code.
I also tried the following with no results.
MyService.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials;
Many thanks,
Javier Andrs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Javier,
I haven't tried this yet so I'm not sure if it will help, but have you tried creating the NetworkCredential object with the username, password, and domain? Most of the examples in MSDN about NetworkCredential use the constructor with all three, so it seems like it'd be worth trying.
My understanding is thatwhen you don't use the domain argument, the .Net makes an assumption about what domain you're connecting to. Given that you're calling from a system that isn't part of the domain you're interested in, specifying the domain name seems reasonable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2)
CredentialCache myCache = new CredentialCache();
myCache.Add(new Uri(ServiceUrl), AuthScheme, netCred);
myCache.Add(new Uri(ServiceUrl), AuthScheme, netCred);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
CredentialCache myCache = new CredentialCache();
myCache.Add(new Uri(ServiceUrl), AuthScheme, netCred);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
-
Bring up the IIS Manager (under Administrative tools)
-
Expand the Web Site item in the list box, then expand the Default Web Site item under that (assuming you followed the standard SCS install)
-
Right click on AMT
-
Go to the Directory Security Tab of the property window, then click edit in the Secure Communications section.
-
Uncheck the Require Secure Channel connection.
This lets you test your connection against just http. If this doesn't work, then connections against https are unlikely to work as well.
Javier, since your code worked against http, the next step is enabling https. If you go to page 45 of the SCS Installation guide (the top of the page hasExporting and Installing the CA Root Certificate on it), it tells you how to export the root certificate from your Certificate Authority. Then, you'll need to move that over to your client machine, and follow the instructions on how to put that into the trusted certificate store on the client machine.
After that, try connecting to https again. I think that will be sufficient, but if that still doesn't work, you can usethe SCS Console code that came with the SCS download as a reference point, it has certificate code in the Certificates.cs, _8021xProfileForm.cs, and ClientCertForm.cs C# files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
-
Bring up the IIS Manager (under Administrative tools)
-
Expand the Web Site item in the list box, then expand the Default Web Site item under that (assuming you followed the standard SCS install)
-
Right click on AMT
-
Go to the Directory Security Tab of the property window, then click edit in the Secure Communications section.
-
Uncheck the Require Secure Channel connection.
This lets you test your connection against just http. If this doesn't work, then connections against https are unlikely to work as well.
Javier, since your code worked against http, the next step is enabling https. If you go to page 45 of the SCS Installation guide (the top of the page hasExporting and Installing the CA Root Certificate on it), it tells you how to export the root certificate from your Certificate Authority. Then, you'll need to move that over to your client machine, and follow the instructions on how to put that into the trusted certificate store on the client machine.
After that, try connecting to https again. I think that will be sufficient, but if that still doesn't work, you can usethe SCS Console code that came with the SCS download as a reference point, it has certificate code in the Certificates.cs, _8021xProfileForm.cs, and ClientCertForm.cs C# files.
Hello Andy,
Thanks again.
I'm going to check the reference code and I also think it will be enough.
Javier Andrs Cceres Alvis
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page