Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 5th, 2008, 03:55 PM
Authorized User
 
Join Date: Sep 2007
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
Default Needhelp Error- Exception from HRESULT: 0x800A0057

i'm using VB.NET 2003 application program.

i'm using WinSock in this program. on Page_Load, i used this code

Code:
        winsock1.Close()
        winsock1.LocalPort = 1223
        winsock1.Bind()
when i run this program i'm getting .net error. error i'm getting is

Quote:
quote:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException (0x800A0057): Exception from HRESULT: 0x800A0057
   at MSWinsockLib.IMSWinsockControl.Bind(Object LocalPort, Object LocalIP)
   --- End of inner exception stack trace ---
if anyone have anyidea what this error means, then please help me... i search this error, but couldn't find any help. can you please help me to figure out what this error means...

thank in advance.
 
Old November 6th, 2008, 11:45 AM
Authorized User
 
Join Date: Sep 2007
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
Default

this program is used by couple of our clients. for everyone it works fine, only 1 client getting this .NET error. and for the client who gets this error, this program works fine for long time and they said all of the sudden now this .net error start pop up.

Quote:
quote:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException (0x800A0057): Exception from HRESULT: 0x800A0057
at MSWinsockLib.IMSWinsockControl.Bind(Object LocalPort, Object LocalIP)
--- End of inner exception stack trace ---
to double check which line makes this error, i added some logs
Code:
          gLog.Write("1")
        winsock1.Close()
         gLog.Write("2")
        winsock1.LocalPort = 1223
         gLog.Write("3")
        winsock1.Bind()
         gLog.Write("4")
and when i checked the log after running the program. the log contain
Quote:
quote:
1
2
3
after that .net error is showing.

so i try changing the port number and tried
Code:
         gLog.Write("1")
        winsock1.Close()
         gLog.Write("2")
        winsock1.LocalPort = 1227
         gLog.Write("3")
        winsock1.Bind()
        gLog.Write("4")
no change.. same error at same line.

so i changed winsock1.Close() at the beginning and tried
Code:
         gLog.Write("1")
        winsock1.LocalPort = 1227
        gLog.Write("2")
        winsock1.Bind()
        gLog.Write("3")
no change.. same error at same line.

if anyone have anyidea what this error means, then please help me... i search this error, but couldn't find any help. can you please help me to figure out what this error means...

thank in advance.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Error 'Exception from HRESULT: 0x800A03EC' vipin_pc ASP.NET 2.0 Professional 3 November 6th, 2009 09:17 AM
Exception from HRESULT: 0x800A03EC adorable.ashish General .NET 0 February 18th, 2008 06:33 AM
access denied. [exception from HRESULT: 0x80070005 p2ptolu Internet Information Services 0 December 18th, 2007 02:58 PM
Exception from HRESULT : 0x800A2740. remya1000 .NET Framework 1.x 0 November 8th, 2007 04:29 PM
Exception from HRESULT: 0x80131524. kschori Crystal Reports 0 May 7th, 2004 03:27 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.