Re: Cannot generate SSPI Context error
From: Peter B.L. Rasmussen (PeterBLRasmussen_at_discussions.microsoft.com)
Date: 11/09/04
- Next message: Dejan Sarka: "Re: [Help]SQLServer Logon Failure ...."
- Previous message: ares: "[Help]SQLServer Logon Failure ...."
- In reply to: Kevin McDonnell [MSFT]: "Re: Cannot generate SSPI Context error"
- Next in thread: Kevin McDonnell [MSFT]: "Re: Cannot generate SSPI Context error"
- Reply: Kevin McDonnell [MSFT]: "Re: Cannot generate SSPI Context error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 9 Nov 2004 04:28:02 -0800
Hi Kevin,
Yes, changing to Named Pipes will connect. But I would rather solve the
problem than work around it and learn something in the process. As this
problem only occurs on my development platform, and not at the production
site, I am hesitant on changing the program just to accomodate some troubles
on my site.
I don't know how to make a network trace.
Today I cannot connect at all - even after a windows logoff/logon. I have
found out that I have some old ADODB code in my program that actually
connects fine, and the connection problem only lies in .NET code connections.
If I use ADODB.ConnectionClass
And this connection string:
Provider=SQLOLEDB;Data Source=W2KServer1\VSdotNET;
Initial Catalog=Sugro011104;Integrated Security=SSPI
I can connect without any problems.
If I use System.Data.SqlClient.SqlConnection
And this Connection String:
data source=W2KServer1\VSdotNET;
initial catalog=Sugro011104;
integrated security=SSPI;
persist security info=True;
workstation id=WORKSTATION2;
packet size=4096
I cannot connect.
So maybe the solution to the problem lies somewhere in the .Net framework?
Peter
"Kevin McDonnell [MSFT]" wrote:
> Profiler won't help you tshoot the problem. You need to make network
> traces to diagnose where it is failing. An alternative is to change the
> client to use Named Pipes to connect. Named Pipes connections are able to
> natively impersonate the client without calling the SSPI API.
>
> Thanks,
>
> Kevin McDonnell
> Microsoft Corporation
>
> This posting is provided AS IS with no warranties, and confers no rights.
>
>
>
>
- Next message: Dejan Sarka: "Re: [Help]SQLServer Logon Failure ...."
- Previous message: ares: "[Help]SQLServer Logon Failure ...."
- In reply to: Kevin McDonnell [MSFT]: "Re: Cannot generate SSPI Context error"
- Next in thread: Kevin McDonnell [MSFT]: "Re: Cannot generate SSPI Context error"
- Reply: Kevin McDonnell [MSFT]: "Re: Cannot generate SSPI Context error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|