System.Net.Sockets.SocketException

Hi,

I am getting the following error. Does anyone know about this?
It is working fine on some PC and giving error on others?
Server Error in '/MyWebApps' Application.
The requested name is valid and was found in the database, but it does not have the correct associated data being resolved for
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: 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
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:

[SocketException (0x2afc): The requested name is valid and was found in the database, but it does not have the correct associated data being resolved for]
System.Net.Dns.GetHostByAddress(IPAddress address) +186
System.Net.Dns.GetHostByAddress(String address) +54
MyWebApps.Global.Session_Start(Object sender, EventArgs e) +80
System.Web.SessionState.SessionStateModule.CompleteAcquireState() +525
System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) +698
System.Web.AsyncEventExecutionStep.Execute() +66
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +173
Version Information: Microsoft .NET Framework Version:1.0.3705.288; ASP.NET Version:1.0.3705.288
0
shafiqm
2/7/2005 8:15:19 PM
asp.net.security 27051 articles. 1 followers. Follow

7 Replies
4137 Views

Similar Articles

[PageSpeed] 34

Seems like there is something funky with the DNS configuration,

either for your site, or if your calling out to another service.
Did you configure the DNS yourself?
Does it resolve properly if you try it with a browser?
Regards
Fredr!k
0
Fredrik2000
2/7/2005 9:48:28 PM
I was wondering if anyone got any resolution to this problem because I am seeing the same thing.  It seems to work fine on most browsers on my PC, but it never works on IE 5.2 or Netscape 6.2 on a Mac (iBook G4).
0
bostonnole
11/14/2005 7:43:50 PM
I could be wrong but check your database server properties to see if Named Pipes protocol is enabled at Network configuration.   Why well when you use Named Pipes you are using Sockets to connect to one of the dedicated SQL Server ports but in .NET it is better to use both Named Pipes and TCP/IP.  These problems usually comes from Fire Walls on the Network.  Post again if you have more questions.  Hope this helps.
Kind regards,
Gift Peddie
0
Caddre
11/15/2005 12:53:06 AM
 Caddre wrote:
I could be wrong but check your database server properties to see if Named Pipes protocol is enabled at Network configuration.   Why well when you use Named Pipes you are using Sockets to connect to one of the dedicated SQL Server ports but in .NET it is better to use both Named Pipes and TCP/IP.  These problems usually comes from Fire Walls on the Network.  Post again if you have more questions.  Hope this helps.


This is not a SQL Server question, so that won't apply.
0
Xanderno
11/15/2005 2:26:46 AM
Hey thanks it is a DNS database dealing with TCP/IP address resolution.
Kind regards,
Gift Peddie
0
Caddre
11/15/2005 2:35:59 AM
 Caddre wrote:
Hey thanks it is a DNS database dealing with TCP/IP address resolution.


Yep...That's it.  :-)
0
Xanderno
11/15/2005 2:38:03 AM

Hi,
I found this link with related code see if you can use it to resolve your problem.  The code is using decimal addresses, if you used binary addresses you need to use the Bitwise operator to do the conversion.  Hope this helps.


http://builder.com.com/5100-6371_14-5771739.html

http://www.c-sharpcorner.com/Language/BitWiserOpsInCSCH001.asp


Kind regards,
Gift Peddie
0
Caddre
11/17/2005 8:26:43 PM
Reply:

Similar Artilces:

System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: Only one usage of each socket address (protocol/network address/port) is normally permitted
I'm getting this error when hitting a webservice thousands of times for a mass upload. I've researched on the web and added the suggested code but am still getting the error: protected override WebRequest GetWebRequest(Uri uri) { System.Net.HttpWebRequest webRequest = (System.Net.HttpWebRequest)base.GetWebRequest(uri); webRequest.KeepAlive = false; return webRequest; }  Are you receiving it on the client, or on the service?John Saunders | MVP – Connected System Developer...

System.Net.Sockets.SocketException with MySQL Connector.NET
Hi. I already tried many things and spent already 2 days without any success. Please help or I'll hang myself.I am using MySql.Data.dll  ver. 5.2.5.0 (runtime v2.0.50727) from my project (library). It works great if i use it from WindowsApplication but once i use it same way in WebApplication, it keeps throwing: The attempted operation is not supported for the type of object referencedException Details: System.Net.Sockets.SocketException: The attempted operation is not supported for the type of object referenced .. AsyncResult ias = socket.BeginConnect(endPoint, null, null);.. (or w...

Exception while calling .NET web service | System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
Hi,   We have written a .NET web service which retrieves an xml file from the database. This web service is SSL secured and requires client certificates for connection.   Problem: The web service is throwing an exception while retrieving large files. It works fine when the file size is around 1 MB, but fails with a file size of around 65 MB with the following exception: System.InvalidOperationException: There is an error in XML document (1, 38455668). ---> System.IO.IOException: Unable to read data from the transport connection. ---> System.Net.Sockets.SocketException: ...

System.Net.Sockets.SocketException #2
 I'd like to try to consume RSS feed and I get error: http://www.macedonium.org/Default2.aspx?jazik=2I'm using this code: http://blogs.msdn.com/coding4fun/archive/2006/10/31/912335.aspxIn my web.config I have: <system.net>    <defaultProxy>      <proxy bypassonlocal="true" usesystemdefault="false" />    </defaultProxy>  </system.net>and I still get the error... Hero of the day...

XMLDocument and System.Net.Sockets.SocketException
Hi All, I am trying to load XML file and I got the following error. It is working fine on test server but not on LIVE Web Server. Exception Details: System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respondSource Error: Line 53: Line 54: XmlDocument xmlDoc = new XmlDocument(); Line 55: xmlDoc.Load(xmlData); Line 56: Line 57: XmlNodeList xmlNodeListRoot = xmlDoc.GetElementsByTagName("RootMenu&quo...

System.Net.Sockets.SocketException when using the HttpWebRequest.GetResponse
Hello i keep gettign this error when i use this code Error: An unhandled exception of type 'System.Net.Sockets.SocketException' occurred in system.dll Additional information: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full Code: Dim HTTP_request As HttpWebRequest Dim HTTP_response As HttpWebResponse HTTP_request = HttpWebRequest.Create("http://www.google.com/images/logo.gif") HTTP_response = HTTP_request.GetResponse the erorr happens every time on the "HTTP_response = HTTP_...

System.Net.Sockets.SocketException+webservice+Sourabh Das
Hi,I have placed a webservice in the webserver. When I access it from a webpage, default.aspx on a click of a button i get the following error:No connection could be made because the target machine actively refused it Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.  Exception Details: System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused itSource Error: Line 91:    ...

System.Net.Sockets.SocketException when trying to use xml feed
Hi folks, strange error I'm getting here, I'm trying to connect to the ECB s currency exchange feed which is located at http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml - it looks nice and simple to use.  However my code is throwing a socket exception when I run it from the server and a system.net.webexception - {"The remote server returned an error: (407) Proxy Authentication Required."} when I run it from within visual studio. I had a sample script which took feeds from the BBC site on my home computer which worked fine but it does not work from m...

Net:Net:Net::LDAP::FAQ
------_=_NextPart_001_01C6429F.D89AA417 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello, Net::LDAP Net::LDAPS Is there a possible to LDAP bind with an encrypted (SHA, SSHA, CRYPT, ....) password? I don't like to write the secret password to the perl file. Best regards Barbara Wilbert ------_=_NextPart_001_01C6429F.D89AA417-- Wilbert Barbara (CI/OSI) * wrote: > Hello, > > Net::LDAP > Net::LDAPS > > Is there a possible to LDAP bind with an encrypted (SHA, SSHA, CRYPT, > ......

iFolder 3.8.4.1
Hey! We have about 100 active iFolder Accounts, 5 of them have the same fault. When we install the client, it synchronizes and works for about 3 days. But then, while iFolder synchronizes, the following fault appears and it crashes: http://wwwu.uni-klu.ac.at/bemeixne/ifolder.jpg The Details shows this: http://wwwu.uni-klu.ac.at/bemeixne/debug.jpg After reinstallation the client will work for about 3 days again. Update of .Net will also not help. I hope, you can help me :), Bernhard -- bemeixne ------------------------------------------------------------------------...

System.Net.Sockets.SocketException: An established connection was aborted by the software in your host machine
Hello, I got this error today in an Application.  This app is coded in asp.net 2, using VB.  I have the Andri Code (http://makoto.madmedia.ca/2007/03/mysql-membership-and-role-provider-for.html) to connect asp.net with mysql. It has never caused errors in the past, I have the same configuration on another app that has been running for several months with no problem. This app is new (1 week) and today is the first day I see this error. Any ideas? Server Error in '/' Application.-------------------------------------------------------------------------------- An estab...

Exception Details: System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it
The following class throws an excpetion that is handled by Utilities.LogError(Ex) which in turn gives me the error with regards to send mail. However I am trying to figure out why is ExecuteSelectCommand() throwing an exception to begin with. Any help is very appreciated. I have attached the stack trace to get a better insight. Also I am a noob when it comes to oop, asp.net etc. Apologise is this is too silly a question. Thanks  :)public static DataTable ExecuteSelectCommand(DbCommand command) { //The DataTable to be returnedDataTable table; //Execute the command making sure the...

System.Net.Socket
Hi All, I'm trying to find some information on the Socket.Sockets class, or any other class that might be able to help. Background... I have a web service that is called from a client app. The web service has a class that opens an ip socket to another machine and performs the necessary functions. Once that interaction is complete the web service returns the result. I've setup the socket using an IPEndPoint object created using a IPAddress object. All works well except... The server I'm running this on has two NICs. I have one NIC that I want to use for incoming traffic ...

When runnig Web Service asynchronously
When I try to call web service asynchronousIy I am getting exception from CLR: System.Net.Sockets.SocketException: The attempted operation is not supported for the type of object referenced. (During VS.NET debugging the exception is wrapped as: Unable to connect to the remote server) When i call the service synchronously it works perfectly.  The service just convert strings to lower case. I'm using .NET Framework 2.0, here is the source code of form to call the service asynchronously:   Imports localhost Partial Class ChangeStrings Inherits System.Web.UI....

vb.net referencing the System.Net namespace
What do I need to do to reference the System.Net and System.Net.Sockets namespaces ? I can see them in a class browser nesting under the System namespace, but Imports System Imports System.Net doesn't seem to be sufficient/correct...? Do I need to do something to the GAC to make them available ? Is there a way of promoting these nested namespaces to the root level of the GAC ? (I'm guessing the namespaces will be found then...) or...... something else.....? Use Imports System.Net.Sockets as well.Bart De Smet [MVP] Visit www.msdn.be, www.bartdesmet.n...

i ve got System.Security.SecurityException: Request for the permission of type 'System.Net.Mail.SmtpPermission, System, Version=2.0.0.0, failed. exception
hi everyone i created windows form user control and i embedded it to asp.net web for , my user control sends mail using by System.Net.Mail library but when i open my web site and click to send button that on my user control  i ve got this exception System.Security.SecurityException: Request for the permission of type 'System.Net.Mail.SmtpPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.    what can i do ? my best regards ..    Couple of questions: 1) Are you running this from an IIS installati...

[PATCH lib/Net/Config.pm, MANIFEST, t/lib/Mock/Socket.pm, lib/Net/Config.t] Add Tests for Net::Config
Here's a test suite for Net::Config. In the process of writing this, I've fixed an apparent bug that prevented single values from becoming array references when necessary. I think it's right, but perhaps Graham should weigh in on this. In the process, with some advice from perl-qa, I've added a mock object so the test could control the output of Socket::inet_ntoa() and Socket::inet_aton(). t/lib/Mock/ seemed like as good a place as any. I'm happy to rework this patch if it personally offends anyone whose opinion matters. :) -- c --- lib/Net/~Config.pm S...

System.Security.SecurityException: Request for the permission of type 'System.Net.WebPermission
hi every body        i am havaing a  proccess in my asp.net project ,        process  is going to get a file from ftp and put it in my server , am using asp.net 1.1          it should be schedule to work every day in [articular time when i accessing the file from ftp i getting following error how can i solve this problem    Server Error in '/' Application. Security Exception Description: The application attempted to perform an operation not allowed b...

Value of type 'System.Net.Mail.MailMessage' cannot be converted to 'System.Net.Mail.AlternateView'
Trying to create an alternateview to send a txt email with the html formatted email.  I've used string builder to create the whole email, but I get this error.  Any ideas why?  i've bolded the line that throws the error... Dim EmailBodyTxt As New StringBuilder EmailBodyTxt.Append("<html><style type='text/css'>.table{border:solid; border-color:#006666; width:600;} ")EmailBodyTxt.Append("<body><table class='table'><tr><td colspan='2'><h1>Test<br />RESPONSE SYSTEM</h1></td>...

system.net.socket question
I have the following code Public Sub StartListening() ' Data buffer for incoming data. Dim bytes() As Byte = New [Byte](128000) {} ' Establish the local endpoint for the socket. Dim ipHostInfo As IPHostEntry = Dns.Resolve(Dns.GetHostName()) Dim ipAddress As IPAddress = ipHostInfo.AddressList(0) Dim localEndPoint As New IPEndPoint(ipAddress, XXXXX) ' Intializes a TCP/IP socket. Dim listener As New Socket(AddressFamily.InterNetwork, _ SocketType.Stream, ProtocolType.Tcp) ...

System.Net.Mail is giving error CS0029: Cannot implicitly convert type 'string' to 'System.Net.Mail.MailAddress'
I'm getting an error while trying to use the wizard to create a form and than pass it the vaibles to Mail. Any help would be much appreciated. SmtpClient smtpClient = new SmtpClient(); MailMessage message = new MailMessage(); try {   message.From = txtEmail.Text; message.To.Add("admin1@yoursite.com"); message.Subject = "Feedback"; message.CC.Add("admin1@yoursite.com"); message.CC.Add("admin2@yoursite.com"); message.IsBodyHtml = false; message.Body = txtMessage.Text; smtpClient.Send(message); lblStatus.Text = "Email successfully sent."; } catch (Exception ex) { lbl...

To .NET or not .NET, that is the question
I'm running WinXP pro 32-bit, meaning I've got the version 1-dot-something of .NET that XP came with. I've been looking for various softwares, and more and more often come across .NET version 2 being prerequisite. No urgency for me re. my questions to this group - so far I have just decided to hit the red X on those download pages - but the desire for this newer version of .NET seems to be growing for me. Firstly, according to my (limited) research, newer .NET versions are inclusive of the previous ones, and the current version seems to be 3.5. So if I go for i...

Web resources about - System.Net.Sockets.SocketException - asp.net.security

Singularity RDK - Source Code
Experimental verified OS

magento配置指南
we make your business better PLANS & PRICING JOIN SIGN IN RESOURCES ALL CONTENT DOCUMENTS CERTIFIED DOCSTOC CUSTOMIZABLE PACKAGES USER GENERATED ...

Issues - gdata-java-client - Google Data Java Client Library - Google Project Hosting
My favorites ▼ - Sign in gdata-java-client Google Data Java Client Library Project Home Downloads Wiki Issues Source New issue Search Search ...

MINECON Videos!
Some of the incredible MINECON panels didn’t make it on the livestream due to time constraints. As of right now, they have all been uploaded ...

Java™ SE Development Kit 7 Update 40 Bug Fixes
Java™ SE Development Kit 7 Update 40 Bug Fixes

Syncplicity Installation fails with error code 0x80004005 – Support Home
Symptoms : 1. The Syncplicity installation never starts. 2. The Syncplicity.log file should have the matching error code: Unregistered, Syncplicity ...

Understanding and resolving app crashes and failures in Windows Store apps, part 2: JSON and tiles
... Exception type: System.Net.WebException Message: Unable to connect to the remote server InnerException: System.Net.Sockets.SocketException, ...

The Mono-list 2003-October Archive by Subject
2003-October Archives by Subject Messages sorted by: [ thread ] [ author ] [ date ] More info on this list... Starting: Wed Oct 1 00:04:11 2003 ...

jdk6/jdk6/jdk: log
log graph tags bookmarks branches changeset browse bz2 zip gz help OpenJDK / jdk6 / jdk6 / jdk log Find changesets by keywords (author, files, ...

RSA private key import from PEM format in C#
First of all, I want to apologies for not writing. From one hand, this is not a good think for me to disappeared from development community horizons, ...

Resources last updated: 2/23/2016 7:41:06 PM