473,499 Members | 1,619 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

View Type of Protocol

Does anyone know how to in ASP.NET (VB.NET) to display the current
protocol being used between a client and server? I noticed that IIS/SQL
Server can use Named Pipes if TCP/IP is not available. Does anyone know
how to programmatically see which protocol is being used? Thanks.

Dec 4 '06 #1
8 1425
"czuvich" <cz*****@gmail.comwrote in message
news:11**********************@80g2000cwy.googlegro ups.com...
Does anyone know how to in ASP.NET (VB.NET) to display the current
protocol being used between a client and server? I noticed that IIS/SQL
Server can use Named Pipes if TCP/IP is not available. Does anyone know
how to programmatically see which protocol is being used? Thanks.
It always uses HTTP or HTTPS. The client is a browser and can't use named
pipes.

John
Dec 4 '06 #2

John Saunders wrote:
"czuvich" <cz*****@gmail.comwrote in message
news:11**********************@80g2000cwy.googlegro ups.com...
Does anyone know how to in ASP.NET (VB.NET) to display the current
protocol being used between a client and server? I noticed that IIS/SQL
Server can use Named Pipes if TCP/IP is not available. Does anyone know
how to programmatically see which protocol is being used? Thanks.

It always uses HTTP or HTTPS. The client is a browser and can't use named
pipes.

John
I see. Well is there a way to programmatically display the protocol
being used between the IIS Server and the SQL Server in a client
browser? I am having an issue where a random NT AUTHORITY problem comes
up. We are using delegation and I am thinking that the Named Pipes is
something that may be causing this problem.

Dec 4 '06 #3
"czuvich" <cz*****@gmail.comwrote in message
news:11*********************@j72g2000cwa.googlegro ups.com...
>
John Saunders wrote:
>"czuvich" <cz*****@gmail.comwrote in message
news:11**********************@80g2000cwy.googlegr oups.com...
Does anyone know how to in ASP.NET (VB.NET) to display the current
protocol being used between a client and server? I noticed that IIS/SQL
Server can use Named Pipes if TCP/IP is not available. Does anyone know
how to programmatically see which protocol is being used? Thanks.

It always uses HTTP or HTTPS. The client is a browser and can't use named
pipes.

John

I see. Well is there a way to programmatically display the protocol
being used between the IIS Server and the SQL Server in a client
browser? I am having an issue where a random NT AUTHORITY problem comes
up. We are using delegation and I am thinking that the Named Pipes is
something that may be causing this problem.
IIS is not involved in this. The connection would be between the aspnet_wp
(or w3wp on IIS 6) processes and the SQL Server.

Use Enterprise Manager and look under Management->Current Activity->Process
Info.

John
Dec 4 '06 #4
Ahhh..That was a huge help, but I was wondering if there was a way to
track that for failed attempts. The manager shows the connections for
successful logins, but I want to see what protocol was being used for a
failed attempt. Is that possible?

John Saunders wrote:
"czuvich" <cz*****@gmail.comwrote in message
news:11*********************@j72g2000cwa.googlegro ups.com...

John Saunders wrote:
"czuvich" <cz*****@gmail.comwrote in message
news:11**********************@80g2000cwy.googlegro ups.com...
Does anyone know how to in ASP.NET (VB.NET) to display the current
protocol being used between a client and server? I noticed that IIS/SQL
Server can use Named Pipes if TCP/IP is not available. Does anyone know
how to programmatically see which protocol is being used? Thanks.

It always uses HTTP or HTTPS. The client is a browser and can't use named
pipes.

John
I see. Well is there a way to programmatically display the protocol
being used between the IIS Server and the SQL Server in a client
browser? I am having an issue where a random NT AUTHORITY problem comes
up. We are using delegation and I am thinking that the Named Pipes is
something that may be causing this problem.

IIS is not involved in this. The connection would be between the aspnet_wp
(or w3wp on IIS 6) processes and the SQL Server.

Use Enterprise Manager and look under Management->Current Activity->Process
Info.

John
Dec 5 '06 #5
"czuvich" <cz*****@gmail.comwrote in message
news:11*********************@79g2000cws.googlegrou ps.com...
Ahhh..That was a huge help, but I was wondering if there was a way to
track that for failed attempts. The manager shows the connections for
successful logins, but I want to see what protocol was being used for a
failed attempt. Is that possible?
I don't know if it will show the protocol, but make sure you have auditing
turned on in your server properties.

Also, if you're looking into failed attempts, then perhaps the protocol
isn't the problem. What is the nature of the failures?

John
Dec 7 '06 #6
We have turned on auditing, and it doesn't show the protocol
unfortunately. The issue happens randomly. Basically, we have an IIS
server and separate SQL server. At random (couple times a week), a user
will try to hit a database from a web page, and the NT Anonymous logon
error will occur. This error will persist until the client logs in and
out of their computer. No matter what application they get to, if it
hits a database, it will throw that error. IIS authenticates the user
fine. We are using delegation in a windows environment in asp.net. But
as I said it's very sporadic, but once it happens, that user is pretty
much locked out of our system until they log out and log into our
domain. Something tells me it's something to do with Kerberos and/or
the network. Can you shed some light on this? I have developed page
that is supposed to force the user to use Named Pipes and TCP/IP from
IIS to SQL, but the user still gets the same error no matter which
protocol is used. I specified the Network library in the connection
string. Thanks.
John Saunders wrote:
"czuvich" <cz*****@gmail.comwrote in message
news:11*********************@79g2000cws.googlegrou ps.com...
Ahhh..That was a huge help, but I was wondering if there was a way to
track that for failed attempts. The manager shows the connections for
successful logins, but I want to see what protocol was being used for a
failed attempt. Is that possible?

I don't know if it will show the protocol, but make sure you have auditing
turned on in your server properties.

Also, if you're looking into failed attempts, then perhaps the protocol
isn't the problem. What is the nature of the failures?

John
Dec 7 '06 #7
"czuvich" <cz*****@gmail.comwrote in message
news:11**********************@n67g2000cwd.googlegr oups.com...
We have turned on auditing, and it doesn't show the protocol
unfortunately. The issue happens randomly. Basically, we have an IIS
server and separate SQL server. At random (couple times a week), a user
will try to hit a database from a web page, and the NT Anonymous logon
error will occur. This error will persist until the client logs in and
out of their computer. No matter what application they get to, if it
hits a database, it will throw that error. IIS authenticates the user
fine. We are using delegation in a windows environment in asp.net. But
as I said it's very sporadic, but once it happens, that user is pretty
much locked out of our system until they log out and log into our
domain. Something tells me it's something to do with Kerberos and/or
the network. Can you shed some light on this? I have developed page
that is supposed to force the user to use Named Pipes and TCP/IP from
IIS to SQL, but the user still gets the same error no matter which
protocol is used. I specified the Network library in the connection
string. Thanks.
I don't know of a better way to see the protocol used. On the other hand,
since you're specifying Named Pipes, and still get the same error, then I
would suggest that the problem does not have to do with the protocol.

I would try to characterize the users who get these errors and the web pages
on which they get the errors. Does it only happen to a subset of users, or
on a subset of pages? If so, then what's unique about those users and/or
pages? I'd be looking for something which prevents those users, on those
pages, at those times, from properly authenticating. Therefore, no matter
how they connect, they are not authenticated and the SQL Server login fails.

Also, you may have said so, but do the login failures appear in the system
event log? In the SQL Server log file? Do those shed any light on the
situation?

John
Dec 8 '06 #8
Thanks a lot for the feedback John. After doing a whole lot of research
on Kerberos and NTLM, I have developed a page which displays some
information about the type of authentication being used. What I have
realized, is that it is using NTLM credentials every so often since for
some reason Kerberos is not available. Since it's passing a hash to SQL
Server, then it's failing every time. Hence, whenever you restart the
client it works again since it reconnects to the DC. What I am still
working on is why it can't get a ticket from the DC... thanks a whole
lot John!
John Saunders wrote:
"czuvich" <cz*****@gmail.comwrote in message
news:11**********************@n67g2000cwd.googlegr oups.com...
We have turned on auditing, and it doesn't show the protocol
unfortunately. The issue happens randomly. Basically, we have an IIS
server and separate SQL server. At random (couple times a week), a user
will try to hit a database from a web page, and the NT Anonymous logon
error will occur. This error will persist until the client logs in and
out of their computer. No matter what application they get to, if it
hits a database, it will throw that error. IIS authenticates the user
fine. We are using delegation in a windows environment in asp.net. But
as I said it's very sporadic, but once it happens, that user is pretty
much locked out of our system until they log out and log into our
domain. Something tells me it's something to do with Kerberos and/or
the network. Can you shed some light on this? I have developed page
that is supposed to force the user to use Named Pipes and TCP/IP from
IIS to SQL, but the user still gets the same error no matter which
protocol is used. I specified the Network library in the connection
string. Thanks.

I don't know of a better way to see the protocol used. On the other hand,
since you're specifying Named Pipes, and still get the same error, then I
would suggest that the problem does not have to do with the protocol.

I would try to characterize the users who get these errors and the web pages
on which they get the errors. Does it only happen to a subset of users, or
on a subset of pages? If so, then what's unique about those users and/or
pages? I'd be looking for something which prevents those users, on those
pages, at those times, from properly authenticating. Therefore, no matter
how they connect, they are not authenticated and the SQL Server login fails.

Also, you may have said so, but do the login failures appear in the system
event log? In the SQL Server log file? Do those shed any light on the
situation?

John
Dec 11 '06 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2980
by: Tongu? Yumruk | last post by:
I have a little proposal about type checking in python. I'll be glad if you read and comment on it. Sorry for my bad english (I'm not a native English speaker) A Little Stricter Typing in Python...
8
1457
by: Torsten Mohr | last post by:
Hi, i created a new type and implemented the sequence protocol for it, or to be more precise the functions to get the sequence length, to read a value and to assign a value to an item. Now i...
5
12561
by: John Taylor-Johnston | last post by:
This will give me the source of the current page. <a herf="javascript:document.location = 'view-source:'+document.location">testpage.htm</a> I want to display the source of another page, using...
10
2249
by: Giovanni Bajo | last post by:
Hello, given the ongoing work on struct (which I thought was a dead module), I was wondering if it would be possible to add an API to register custom parsing codes for struct. Whenever I use it...
0
7014
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7180
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7229
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5485
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4921
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3108
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3103
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1429
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
311
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.