p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > .NET > .NET 1.0 and Visual Studio.NET > .NET Framework 1.x
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
.NET Framework 1.x For discussing versions 1.0 and 1.1 of the Microsoft .NET Framework.

Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 1.x section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 8th, 2007, 04:29 PM
Authorized User
Points: 194, Level: 3
Points: 194, Level: 3 Points: 194, Level: 3 Points: 194, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2007
Location: windsor, toronto, Canada.
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default Exception from HRESULT : 0x800A2740.

i'm using Vb.net application. where i'm trying to Start programs from remote machine. and i'm using winsock for send and receive. and Before it works fine. but now while i try to start programs from remote machine one of the program is not starting in remote machine and its showing some error. and all other programs were opening in remote machine. and the program that not opening also use winSock. i just quote that below.

Quote:
quote:
An unhandled exception has occured in your application. if you click Continue, the application will ignore this error and attempt to continue. if you click Quit, the application will be shut down immediately.

Exception from HRESULT : 0x800A2740.
Quote:
quote:
System.Runtime.InteropServices.COMException (0x800A2740): Exception from HRESULT: 0x800A2740.
   at MSWinsockLib.IMSWinsockControl.Bind(Object LocalPort, Object LocalIP)
   at AxMSWinsockLib.AxWinsock.Bind(Object localPort, Object localIP)
This is the code i'm receiving to Start program in remote machine. (Code used in program that's not opening)
Code:
wsReceive.Close()
wsReceive.LocalPort = 1223
wsReceive.Bind()

Private Sub wsReceive_DataArrival(ByVal sender As Object, ByVal e As AxMSWinsockLib.DMSWinsockControlEvents_DataArrivalEvent) Handles wsReceive.DataArrival
        Dim str As String
        wsReceive.GetData(str, vbString)
        FormatMessage(str)

        If MessageType = "StartPgm" Then       'Start Program in local machine
            Shell(Chr(34) & ProgramPath & Chr(34), AppWinStyle.NormalFocus)
        End If
End Sub
This is code used to send to remote machine to open program...
Code:
wsSend.Close()
wsSend.Connect(strTerminalName, 1223)
If wStartPath <> "" Then
     sendstring(wStartPath)
End If

Public Sub sendstring(ByVal sdata As String)
        wsSend.SendData(sdata)
    End Sub
if you have any idea please let me know. please help me. before it worked fine... now once one program its not able to start.

thanks in advance.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

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
Needhelp Error- Exception from HRESULT: 0x800A0057 remya1000 General .NET 1 November 6th, 2008 11:45 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: 0x80131524. kschori Crystal Reports 0 May 7th, 2004 04:27 PM



All times are GMT -4. The time now is 04:45 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc