Re: Problem establishing SSL connection in code-behind



On Jan 2, 5:37 pm, "Joe Kaplan"
<joseph.e.kap...@xxxxxxxxxxxxxxxxxxxxxxxx> wrote:
The 401 indicates that your creds are not being accepted. You would get a
different error if there was an SSL problem.

I'd suggest enabling auditing of logon events (success and failure) on the
remote web server and see if you can find out why the authentication is
failing.

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"http://www.directoryprogramming.net

I enabled logon event auditing and did find something interesting.
Look:

Event Type: Error
Event Source: Userenv
Event Category: None
Event ID: 1058
Date: 1/2/2008
Time: 6:17:48 PM
User: MYCOMPANY.COM\myusername
Computer: Mercury01
Description:
Windows cannot access the file gpt.ini for GPO cn={4D440ED8-E77F-447C-
A091-739F3F676AB0},cn=policies,cn=system,DC=mycompany,DC=com. The file
must be present at the location <\\mycompany.com\SysVol\mycompany.com
\Policies\{4D440ED8-E77F-447C-A091-739F3F676AB0}\gpt.ini>. (The system
detected a possible attempt to compromise security. Please ensure that
you can contact the server that authenticated you. ). Group Policy
processing aborted. For more information, see Help and Support Center
at http://go.microsoft.com/fwlink/events.asp.

It looks like that the system is trying to access the so-called
gpt.ini file. I just checked the remote computer, it does not even
have a folder called \\mycompany.com\SysVol\.

So, somehow, I have to create that path and that gpt.ini file in order
for this to work?

.