Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 5th, 2008, 03:55 PM
Authorized User
Points: 386, Level: 6
Points: 386, Level: 6 Points: 386, Level: 6 Points: 386, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2007
Location: windsor, toronto, Canada.
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.
Reply With Quote
  #2 (permalink)  
Old November 6th, 2008, 11:45 AM
Authorized User
Points: 386, Level: 6
Points: 386, Level: 6 Points: 386, Level: 6 Points: 386, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2007
Location: windsor, toronto, Canada.
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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 03:21 PM.


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