VS 2010 - Get Installed Software From Remote Host. Win Vista/7?
Nov 19, 2009
I have created a Windows service that runs on one of our servers. The service lisens to incoming connections on a set socket port, runs a series of WMI queries on the requested computer in a new thread (the socket accepts a string value as input which is the hostname to scan), creates an xml file based on the collected data, and posts it back to a webserver. This works perfectly on all WMI queries, but i have one function that gets all installed software from the requested host using the RegistryKey.OpenRemoteBaseKey method to get all keys from the "SOFTWAREMicrosoftWindowsCurrentVersionUninstall" key on the target host. If the the target machine OS is Window Vista or 7, it returns no values. If i run this code on the target machine it works, but not from the service on a server. The service is installed and runs with full domain administrator rights. I guess this is a permission issue, but i have not found a good solution on how to solve it on the internet. As a workaround i use WMI to get a list of installed software from computers running Vista or 7. The problem with the WMI method is that it's very slow. It takes 10 - 15 seconds just to loop thru all ManagementObjects in the Querycollection. Maybe i could filter the WMI query better before starting the loop ?
[code]...
View 2 Replies
ADVERTISEMENT
Jan 20, 2010
Rather than use an Entry name of an existing VPN connection, is it possible to connect to a remote network by creating a temporary connection on the fly by using the remote IP/Host name, username and password?
View 6 Replies
Oct 1, 2009
I've been trying for a long time to do what seems to be the most simplest of things..I have a remote host and I need to know if certain posts on that host are open or closed.Many examples on the net that I have found arent complete, and because I havent worked with VB.net for long I dont knowhow to complete them.Here is my code:: The issue is with this it tell me the target port is always closed, when I know that it is open.Code:Dim host As String = "www.google.com" Dim port As Integer = 80 Dim addr As IPAddress =CType(Dns.GetHostAddresses(host)(0), IPAddress) Try Dim tcpList As New TcpListener(addr, port)tcpList.Start() Catch sx As SocketException MessageBox.Show("port is closed") End TryA friend of mine suggested using WinSock.. I've not dealt with it before so I don't know what he's on about.
View 2 Replies
Jul 6, 2010
Does someone know what api funtion to use for getting remote host name right now i use System.Net.Dns.GetHostName and the nbtstat -a function, but still have some computers that i dont get their host name but i do get their mac with send arp...so how cna i get their host names with an API call..
This is my code for dns.hostname ..
vb.net Dim myIPs3 As System.Net.IPHostEntry = Dns.GetHostEntry(hello)
Dim newhost3 As String = myIPs3.HostName
View 2 Replies
Sep 9, 2009
When I to connect to remote host to retrieve sql record...
it execute to few minute will get his error message... but there is already work perfectly and get connected... it loop it a few record only will occur this error...
"Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host."
View 6 Replies
May 19, 2010
I have a fat VB.NET Winform client that is using the an old asmx style web service. Very often, when I perform query that takes a while or pass a large amt of data to a web service in a dataset, I get the subject error.The error seems to occur in < 1 min, which is far less than the web service timeout value that I have set or the timeout value on the ADO Command object that is performing the query within the web server.It seems to occur whenever I am performing a large query that expects to return a lot of rows or when I am sending up a large amount of data to the web service. For example, it just occurred when I was passing a large dataset to the web server:System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the rem
View 3 Replies
Sep 19, 2011
I have an application that copies a file from a network/internet location. I am trying to catch the exception for when the network connection becomes unavailable (or internet goes down). Currently i catch the exception "Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host." which occurs on the bold, underline line below.The issue i have is i try and attempt the operation to continue doing what it was doing by resetting variables and then reassigning them to continue reading the stream but cant get past this error. The only way to go past it is to stop and start the application which is not what im after. [code]
View 1 Replies
May 24, 2012
I want to restore an simple .SQL file,
The MySQL Server is Protected with password and is an remote Host
View 1 Replies
Aug 15, 2010
What would be the most quickest way to edit a text file on a remote host?
View 3 Replies
May 19, 2012
Below error is thrown in a already opened program which connects to different database
A transport-level error has occurred when sending the request to the server.
(provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)
Program details: code done using vb.net with MSSQL 2008 as back-end
Two instance of same exe where running simultaneously in same PC but error was thrown only by one instance Program uses both sqlconnection(ADO.NET) and ADODB connection(upgraded from VB6) and the error is thrown by both types of connection. If the error is due to network problem with the server then why few programs work fine? I am not able to trace the reason for this behavior of the program. Can I know why this error occurs and why only in few programs of same instance.
View 5 Replies
Oct 23, 2009
way to retrieve list/rename hiddne files from the remote host. I need to upload the file to a server and then move it to another directory, but the file after being transfered becomes hidden. If I try to rename it any way I get the dreaded 550 in response. I would hate to move to commad line scripting which at the moment seams to be my only option.
View 4 Replies
Feb 12, 2009
Is .NET 2.0 installed natively on Windows Vista? I know this is the case for 3.0?
View 4 Replies
Jan 7, 2009
I could use Qfecheck.exe to verifies the installation of Windows 2000 and Windows XP hotfixes and read its output into vb.net.But it is not compatible with vista. How can i find the hotfixes installed in vista?
View 1 Replies
Mar 7, 2008
I am using Vista Home Premuim I have installed VB6.0. I got the message saying its not compatible and it installed... the problem is when i open vb i get this message "automation error error accessing the ole registry" and i cant use any components or OCX's not even the ones that come with vb like internet control... is there away around this?
View 6 Replies
Apr 24, 2010
I have sent out software created with VB2008 Express and everything has installed correctly on my PC which is running windows vista. But they can't get it to install, one is running XP the other Vista, they get the following errors
Windows XP
Microsoft.VisualBasic.Powerpacks.Vs Version 9.0.0.0. to be installed in the Global Assembly Cache
Windows Vista
system.windows.forms.data visualization version 3.5.0.0 be installed in the global assembley cache first
View 4 Replies
Mar 30, 2009
im trying to create a quick method to enable one of my "less" talented receptionist staff to establich a remote desktop connection to my computer. I have done some google-ing and I have found that its possible but how would you do it?
View 14 Replies
Mar 25, 2009
I have an VB.NET 2005 application installed on my Windows 2003 Server.I try to access that application for other computer on my network. Read below:I get this error when running a remote VB.NET application.
System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
I had the error on my computer running Windows XP. I am use to that, so I went in the FrameWork .NET 2.0 and set the security to FullTrust and the error disapeared. Now I have the same error on my computer that is running Windows Vista and when I go do the same security changes to FullTrust, it does not work. I still have the error showing.Is there some other configuration to do on a Vista machine to be able to run a remote VB.NET application ?
View 1 Replies
Mar 31, 2010
I need connect remote registry in xp to vista system in vb.net code.
View 2 Replies
Aug 5, 2011
I have a tcp server that uses TCPListener and the async method BeginAcceptTCPClient:
Imports System.Net.Sockets
Imports System.Threading
Imports System.Net
Public Class TCPServer
[Code]...
My problem is that infrequently, I get an exception in the HandleAsyncConnection method:"An existing connection was forcibly closed by the remote host" right at the EndAcceptTCPClient method. At this point, the TCPListener seems to stop listening. The problem is that I can't test this easily, as it only happens on a remote test VM and only once every 24 hours or so. If I knew how to recreate the error with a test client, I would be able to figure this out. Wireshark shows a reset [RST] packet being sent at around the time of the exception. So I either need to know how to handle the exception, or how to recreate the problem with a test client.
View 1 Replies
May 30, 2009
i compile my form with the below code when i run it on vista work fine without any problem but when i try to run in on XP cant run... that happened with any XP machine.[code]when i run my exe to other Vista machines work fine... but on xp NO.
View 1 Replies
Mar 27, 2012
i am trying to get access to the host file with this
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim path As String = "C:WindowsSystem32driversetchosts"
[Code].....
View 6 Replies
Jan 29, 2010
I have to access remote connection from XP os to Vista os in vb.net How to do that?
View 1 Replies
Mar 7, 2012
Is it ok to install my VS 2010 Ultimate even if I already have VB 2010 Express Edition? or should I uninstall the express edition first?
View 3 Replies
Jan 25, 2012
Is it possible to view client transaction requests and host response in a self hosted console window?
Front end client sends request to service
Service console displays requested data in console window and forwards to listening server
Server responds with data
Response is displayed in console window
I guess it would be displaying the traces in the console window.
View 1 Replies
Apr 24, 2011
I am working on an app that searches my network and retrieves ips and host names, but when using this.[code]
View 2 Replies
Aug 26, 2011
I have created an app using Visual Studio 2010. This app wont work with Win XP or earlier. So how to detect the installed OS?
View 2 Replies
Oct 11, 2009
I am been working on an a small app that has a Forms.Webbrowser control that navigates to a Adobe Flash program. I have developed the app on Vista 32bit platform and have had no problems. I have sent the app to a couple of people to test out and one is using Vista 64bit and is running into a problem. I know the webbrowser control just uses the underlying base framework of IE. The problem on the 64 bit machine is when the site is navigated to it says that it needs to have Flash installed. When the user goes to Adobe's site it says they need to use a 32bit browser.
As stated on Adobe site here:[URL] the Flash player need to be in a 32 bit browser. What options do I have to be able fix this problem? Is there another control that I can use that would be the same in a 32bit platform and 64bit platform? Besides navigating to the Flash program, the browser also goes to standard web pages.
View 4 Replies
Apr 30, 2010
I've got a vb app that writes data to a remote mysql database.
When I run the app on a client that does not have the mysql connector it crashes (obviously)
How do I programatically check if the connector is installed on the client and throw up a nice error advising to install it - instead of the unhandled exception error - could not load mysql.data etc error?
View 6 Replies
Dec 25, 2011
i have installed visual studio 2010 32 bit on my new computer which have windows 7 64 bit. Everything seems ok. But now I try to learn how to draw some spheres with movement. I have tried to install openGL2 but it does not work or said that it does not fit with 64 bit, or it works only with VC.
Could any one, please, give me a short introduction to install and use open GL in vb.net 2010 installed on windows 7 64 bits ?
View 3 Replies
Jun 6, 2012
I am having trouble with my new project. I want my program to check if the internet explorer installed on the clients computer has flash player installed.
View 2 Replies