473,761 Members | 7,710 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 programmaticall y see which protocol is being used? Thanks.

Dec 4 '06 #1
8 1438
"czuvich" <cz*****@gmail. comwrote in message
news:11******** **************@ 80g2000cwy.goog legroups.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 programmaticall y 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.goog legroups.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 programmaticall y 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 programmaticall y 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******** *************@j 72g2000cwa.goog legroups.com...
>
John Saunders wrote:
>"czuvich" <cz*****@gmail. comwrote in message
news:11******* *************** @80g2000cwy.goo glegroups.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 programmaticall y 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 programmaticall y 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******** *************@j 72g2000cwa.goog legroups.com...

John Saunders wrote:
"czuvich" <cz*****@gmail. comwrote in message
news:11******** **************@ 80g2000cwy.goog legroups.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 programmaticall y 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 programmaticall y 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******** *************@7 9g2000cws.googl egroups.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******** *************@7 9g2000cws.googl egroups.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.goo glegroups.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.goo glegroups.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
3009
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 - A Proposal As we all know, one of the best things about python and other scripting languages is dynamic typing (yes I know it has advantages and disadvantages but I will not discuss them now). Dynamic typing allows us to change types of...
8
1470
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 thought i could assign values to my type like this:
5
12590
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 something like this but it doesn't work: <a herf="javascript:document.location = 'view-source:'+'testpage.htm'>testpage.htm</a> ?? Won't work, unless it is saved on a server with http:// in front of it.
10
2277
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 for non-trivial tasks, I always happen to write small wrapper functions to adjust the values returned by struct. An example API would be the following: ============================================
0
9531
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9345
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9775
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8780
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7332
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5229
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5373
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3456
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2752
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.