Authentication Error??
Greetings everyone,
I hope that someone can point me in the right direction to solve this problem that I am having. I am currently developing a very extensive Intranet for the company that I work for and one of the functional requirements is that everytime any user access's any part of the Intranet from any workstation, the Users ID#, resource they requested, IP Address, and the machine they used to access the resource must be logged to a SQL Database.
Here is the problem that I have come across. While on the companies internal network this works flawlessly, however, I took a day away from the office to work at home; I connected to the internal network via VPN and tried accessing the intranet. And I was presented with this error:
System.Net.Sockets.SocketException: The requested name is valid and was found in the database, but it does not have the correct associated data being resolved for
This error is thrown from this line of code:
strHost = System.Net.Dns.GetHostByAddress(Request.ServerVari ables("Remote_Host"))
Normally this might not be a big deal, however, we have about a dozen employees that connect to our network remotely. While I could place this statement in a TRY CATCH block and then use a generic name for the host name when the exception is raised, is there another way to do this? Any help would be greatly appreciated.
"The one language all programmers understand is profanity."
__________________
===============================================
Doug Parsons
Wrox online library: Wrox Books 24 x 7
Did someone here help you? Click  on their post!
"Easy is the path to wisdom for those not blinded by themselves."
===============================================
|