Running Service On A Remote Server
hi,
I have a service written in VB which resides on a remote server.
When i am logged onto the remote machine via rdp or mstsc (to get the console) the software runs correctly.
When i am not logged on the service does not run correctly and hangs waiting for user interaction to press a button on the dialog box.
what happens is that the service prompts with a dialog box to open,save or cancel, the service should then choose save and carry on, this happens when im logged on.
I thing the problem could be that the dialog is assumed to to be runnning in the background, and we need it in the foreround to automatically detect and press save.
how can it get it in the foreground or to think it is there ?
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Running S Script On A Remote Server
If I connect to a remote NT server from a Win98 machine using Winsock, is it possible for me to run a script stored on the server? If so, how?
.
Running ActiveX Controls From Remote Server. - URGENT
Hi Here is a small querry.
I created an activeX control with two command button &OK and &Cancel with hot keys ALT+O for OK and ALT+C for Cancel. Hot keys are functioning when i run the application by pressing F5. fine,
WHen i made a package of the above project using Package and deployment wizard. it creates a .cab file and .htm file for internet package. I deployed the package into a server and i am running the application from Client using URL of the SERVER where the .htm and .cab files resides. fine,
I am able to download the control but the hot keys are not working. When i click the buttons using mouse it is functioning.
Please clarify my doubt it is urgent.
-Kiran
krallabandi@india.osius.com
Remote Data Service
My Code have "internet server error" messages,
how to do? It does work!
Code:
Dim strConn As String
Dim strSQL As String
strConn = "Provider=MS Remote;" & _
"Remote Server=http://127.0.0.1;" & _
"Remote Provider=SQLOLEDB;" & _
"Data Source=dbName;" & _
"Initial Catalog=test;" & _
"User ID=sa;Password=1234;"
Dim cnDatabase As ADODB.Connection
Set cnDatabase = New ADODB.Connection
cnDatabase.Open strConn
strSQL = "SELECT * FROM Customers"
Dim rsCustomers As ADODB.Recordset
Set rsCustomers = New ADODB.Recordset
rsCustomers.Open strSQL, cnDatabase, adOpenStatic, _
adLockBatchOptimistic, adCmdText
Remote Data Service
I am attempting to query a SQL database (Pubs) through RDS and HTTP:. I use the following code"
Set ds = CreateObject("RDS.DataSpace")
Set df = ds.CreateObject("RDSServer.DataFactory", "http://walden01")
'This query returns a recordset over HTTP.
Dim strCn As Variant, strSQL As Variant
strCn = "dsn=pubs;uid=sa;pwd="
strSQL = "select * from authors"
Set rs = df.Query(strCn, vstrSQL)
I get an error message saying that the Object/Module not found. I have installed MDAC 2.5 on the server machine.
Am I missing other required components?
Scott
Remote Data Service
When I try to connect to a database over the Internet using RDS. Connection is established quite easily but it gives an error at the time of opening a recordset.
Error Number : 4099
Error Description : Can not connect to the Server
My program goes as follows:
Private objRS As New ADOR.Recordset
Private Sub Form_Load()
Dim objConn As New ADODB.Connection
objConn.Open "Provider=MS Remote;" & _
"Remote Server=http:\server_name;" & _
"Remote Provider=SQLOLEDB;" & _
"Data Sourse=SQLServer_name;" & _
"Database=demo;" & _
"Integrated Security=SSPI"
Set objRS.ActiveConnection = objConn
objRS.Source = "select * from Companies"
objRS.CursorLocation = adUseClient
objRS.CursorType = adOpenStatic
objRS.LockType = adLockBatchOptimistic
objRS.Open
MsgBox "Connected"
Set objRS.ActiveConnection = Nothing
objConn.Close
Set objConn = Nothing
End Sub
Can you help me out.
Thanks
Iqbal Ather Shamsi
Remote Data Service
When I try to connect to a database over the Internet using RDS. Connection is established quite easily but it gives an error at the time of opening a recordset.
Error Number : 4099
Error Description : Can not connect to the Server
My program goes as follows:
Private objRS As New ADOR.Recordset
Private Sub Form_Load()
Dim objConn As New ADODB.Connection
objConn.Open "Provider=MS Remote;" & _
"Remote Server=http:\server_name;" & _
"Remote Provider=SQLOLEDB;" & _
"Data Sourse=SQLServer_name;" & _
"Database=demo;" & _
"Integrated Security=SSPI"
Set objRS.ActiveConnection = objConn
objRS.Source = "select * from Companies"
objRS.CursorLocation = adUseClient
objRS.CursorType = adOpenStatic
objRS.LockType = adLockBatchOptimistic
objRS.Open
MsgBox "Connected"
Set objRS.ActiveConnection = Nothing
objConn.Close
Set objConn = Nothing
End Sub
Can you help me out.
Thanks
Iqbal Ather Shamsi
Running As Application Vs. Running As A Service
How do I tell an existing application to run as a service over there on the taskbar next to the system time? Would I be introducing any limitations by converting a program from running as a program to a service? Thank you.
A Service Accessing A Remote Folder
Hi,
I have an application running as a service, but it can't seem to access a folder on a remote system. If I run the application as an app, i can access the remote folder. Is it possible for the service to access remote folders/file?
Thanks!
RPC Instaling A Service On A Remote Computer
Hy Guys!
Can you please tel me if you know how to do it, how to install a service on a remote computer, with using RPC, in vb?
Mabe you know how RAdmin works, It can connect directly on a remote computer without having the permission on that computer. How do I do it with my own remote administrator program.Thank you.
Run Application As Service And Log To Share In Remote PC!
2 questions:
1- How can I make my application run as service?
2- can I write to share in remote PC by write the UNC path? Like
\remotePCnamehiddenshare$
emotefolder. I also not sure how do I answer
the authentication box that will popup in the remote computer to allow me
see the share?
Thank You ladies and gentlemen
Controlling A Remote Windows Service
Hello,
I am having issues controlling a remote windows service. I am writing an all in one Windows application (Winform) that will od things to a remote system. Then only problem I am having is that the remote system is not on a domain and I have different credntials. How do I send credentials to the system to be able to control service, file access and so on. I tried using LogonUser API, but I am using Win2K and it doesn't work. It works fine on my WinXP system.
VB Application Saving Data To A Remote DB Via Web Service
I have some Tools created in VB and I would like to Save the data from a Workstation to a SQL Server DB that is located somewhere else, I don't want to make use of WAN though. Is it possible for me to transfer the data via a Web Service and the Web Service saves it to the Database? Also, is it possible for my VB Applications to query or fetch data from the DB via Web Browser? Do you have any source codes that I can use or explain to me how this works?
Thanks!
-Rick
Trouble Connecting From .NET 2.0 App On Win2000 Server Client To Remote SQL Server 2005 DB
Hi,
Has anyone experienced similar problems trying to connect under the stated configuration? Were you able to resolve?
This looks like some type of security or permissions issue on the client side but I don't know where to start looking. The login is correct and I don't have any issues when the client is XPSP2.
Additional info:
The Windows 2000 Server client is running SP4.
The 'Data Link' application used to configure the connection string from the client tests successfully.
Can't even connect as Administrator from the client.
Any guidance would be greatly appreciated.
Scott
Running As A Service
How could I make my program run as a service, make it run on startup and yeah, well you guys know what a service is. I'm running XP Home, and yes, i do know there are programs out there (firedaemon) which can set it up, but I was wondering if my program could just configure its self to run as a service.
Running VB As A Service?
Hello Again,
I am looking for input on running Visual Basic as a service. I have done some research on this and I found a microsoft page that gives a control (NTSRV.OCX) to use for this. But it basically says microsoft does not reccomend running Visual Basic as a service even with Ntsrv.ocx.
The Article is Below:
http://support.microsoft.com/directo...EN-US;Q175948&
There so many advantages to running an operations type application as a service. I am still tempted to try it anyway.
Does anyone have experience with running Visual Basic as a service? Did you use nstrv? What is your experience with running Visual Basic as a service?
Thanks,
Beth Barja
Is Service Running?
Is there any way to tell if a windows XP or NT service is running through VB?
Thanks!
VB EXE Running As A Service
Help,
I have a vb application which will run on an NT 2000 server, the app runs 24/7 and polls several directories for csv file coming in and then processes then (upload to a database). I need to run the app as a service and not just kick it off on the desktop but I have read on the microsoft site that you can not run a vb exe as a service. Does anyone know how I can run my vb app as a service.
Thanks for your help,
Chris
Running As A Service
How would it be possible to run my VB App as a Win2000/XP background service? Without using any third-party software.
Running As A Service?!?
How do I make my VB App so therefore it loads up when I boot the computer and keeps running even if the user logs on and off...?!?
For e.g. I want it to be running non-stop even when the user logs off and it stays in the "Novell Client Logon Window"?!?
App Running As Os Service?
I received one additional piece of information which may help
(doesn't help me, but maybe it will help someone help me): someone
suggested that the application, or a part of it, begins running as a
service of the operating system. If this sounds plausible, where does
the problem likely originate? Is it some part of the program code, or
some program code that is not present (the app. has nothing in it that
attempts to identify its environment), or maybe something in the
project properties?
Thanks for any info.
Here is the relevant part of my original post:
I have a vb6 application which may have been started on Windows95
using an earlier vb version, definitely updated on Windows98(inc. SP
5). It is deployed on a machine running WindowsXP, and in this
environment the user can close the program, yet it (or some remnant of
it) remains listed in the Task Manager. This doesn't happen every time
user closes the program, and without looking at Task Manager it
appears the program is completely gone--no minimized windows in the
task bar, no error or warning messages.
Running VB As A Service
Can VB be run as a service ( possibly with a tray icon )
if so would I just set it up as a module and no form
any help would be great
Thanks
To Know Whether A Service Is Running
Hai Gurus,
I want to findout whether a service "RPCSS.EXE" is running or not. I would wait till the service is running, then I want to start my application.
How do I know whether the service is running?
Pls give your suggestion
Thanking you in anticipation
Ravi
Windows Service Running
How can I verify if a Windows Service such as Telnet is up and running on a remote server using a VB Script?
Com+ Application Running As Service.
I have a DLL which is registered in COM+ on an XP machine. It has been set to run as an NT Service with a Domain user ID. The service runs fine for some hours, then the service stops. The service cannot be restarted without retyping the password. (the machine is kept without any user logged in) Does any body know the reason for this ?
Please Help - Checking If A Service Is Running...?
Hello,
Does anyone know of a Windows API function or some other mechanism that would check if a particular service is running on Windows NT?
I need to write a utility that will check if a service is running, and if not, it will need to start it... Please help!
Thanks!
Mark.
Printing While Running As A Service
I am running a VB 6.0 app as a service on a windows 2000 box. This application is supposed to print out letters. I am using the ntservice control on my form, and as far as the service goes everything seems to be fine.
The problem is, VB cannot access the printer object.
I even tried putting together a simple app that just cycles through the printer collection and logs the printer information. Works fine as an exe run from windows, but once again, when run as a service, there is no access to the printer collection; nothing at all.
Any suggestions would be helpful!
Running My Application As A Service.
Hello I want to run my application in the background as a windows service.
What I mean is I dont want it to appear in the Program list in taskmanager but only in the process list.
Running VB Application As Service
Can someone help me in running my VB application's exe as windows service. so that it can't be killed from task manager.
I want to run it on both XP and vista as a service.
Need help badly.
thanks in advance,
Ruhii
Could Be Tricky.. Running A Vb App As A Service
Hey all,
I am looking to run my vbapp as a windows service in the background. Basically I need to install it on a system and have it loaded in the startup, this is all fine and well once the user has logged in, however I need to consider the possibility of a power failure or system reboot and I need the app to run as a background service, therefore it will be running without anyone having to physically login to windows. Can this be done?
Thanx
Problem With VB App Running As Service
I have a VB app that uses a timer to run a fuinction every 60 secs.
Within that function I have some loggin code so I can see when the function is correctly processed.
I used Eltima Application As Service (cos I was lazy and needed some quick way) to get it running as a windows service on my Win2K production server.
However every week or so it stops functioning correctly and also stops writing to my error log.
Is there some issue with using an app with a timer as a service? Any ideas how I can investigate/debug this?!
I could upgrade to eltima v2 as this is upposed to restart stopped services, but not sure whether this would help as I'm not sure if my service is actually stopped, or whether its the VB exe that has the problem.
Any help in investigating this much appreciated!!
Kester
Running As System Service
Me again.
Now I am looking into making a program run as system service. IM guessing its just a ton of API?
Running As Service - Resolved
How do I run some existing applications of mine done in VB6 as a service.
Currently they run hidden with a small icon in the bottom right to show them up but I need to now run them as a service.
I cant seem to find anything that makes sense to me (I am a bit thick!)
Has anyone got any code or programs that does it?
Printing While Running As A Service
I am running a VB 6.0 app as a service on a windows 2000 box. This application is supposed to print out letters. I am using the ntservice control on my form, and as far as the service goes everything seems to be fine.
The problem is, VB cannot access the printer object.
I even tried putting together a simple app that just cycles through the printer collection and logs the printer information. Works fine as an exe run from windows, but once again, when run as a service, there is no access to the printer collection; nothing at all.
Any suggestions would be helpful!
Running A VB 6 Program As A Service.
I have a program (VB6 exe) that I need to execute daily on a Windows 2000 server with no one logged in.
I have 2 questions.
1. What do I need to do - if anything - to allow this program to run as a service?
2. Can I schedule services using, say, windows task scheduler or some other admin tool (or API) or would the program itself just have to keep running continuously and checking whether it was time to do its stuff?
Service Running As Trayicon
I've done application and put it to run as a service. I understand that services run in background, don't have GUI etc., but I really need it to run as trayicon immediately when it is activated, so that I can choose among some settings, shut it down and so on.
I know how to code that, but I don't now how to implement that to service.
Thanx for anykind of info in advance !
How To Check If A Service Is Running
I need to check if a service (specifically SQL Server) is running. I am trying to attach a databse but need to be sure the service is running. I can check the registry to make sure the server is installed but am not quite sure how to check if it is currently running. Thanks
Detecting A Running NT Service...
I need my VB app to detect whether an NT service is running or not, does anyone know of urls where I might find this information, or could anyone here point me in the right direction for doing this?
Any help would be appreciated.
Running A VBS Script From Within A Web Service
Hi, first off I'm very new to Visual Basic, I'm trying my best to figure out how I can run a Web Service using VB so that we can query our windows machines from Linux at my work.
So far I have a simple little script that receives data and is then supposed to execute a VBS script using this data for the parameters, but I can't find any good documentation on how to execute a script.
The script is adsutil.vbs and we normally use it from within a BAT script ("%WINDIR%system32iisweb.vbs /create c:Temp "Template" /d %DOMAIN% /dontstart")
Can anyone give me a pointer in the right direction as to how I would execute this script from within a VB Web Service?
Thanks in advance!
Permissions On A Service Running A VB App
Hi There all,
Some more help from you guys please. I have a system service that spawns a VB 6 exe every hour at 30 minutes past the hour on a WIndows 2000 advanced server PC.
The exe uses a system ODBC connection to communicate with an Access database on another server on the LAN. When I setup the ODBC conenction, I used the full UNC name to the server and had to connect as another user on a domain to enable me to see the Access database, on the server.
If I run this VB app from the command line, it works fine. However when the system service tries to run it, I get an Microsoft Access ODBC driver error saying that the file is not valid.
I am pretty sure that this is down to permissions. I have tried to change the system service. I have tried to get the system service to run as the user that I specified when trying to create the ODBC connection (as opposed to localsystem) but it says that the user name is unknown!!
Any guidence that you guys can give me would be much appreciated.
Thanks.
Shutting Down A VB App Running As A Service
I have a VB application that is running as a Service on Windows 2000. When the service is stopped, I don't think all the resources are being freed up properly. Is there a way to receive a notification that the service is being shut down so that the VB application can shut down gracefully? I noticed that on other posts, they talk about shutting down a form, or clicking on a button, etc, however, I don't have any forms to handle this. Any help is greatly appreciated.
Thanks.
Printing While Running As A Service
I am running a VB 6.0 app as a service on a windows 2000 box. This application is supposed to print out letters. I am using the ntservice control on my form, and as far as the service goes everything seems to be fine.
The problem is, VB cannot access the printer object.
I even tried putting together a simple app that just cycles through the printer collection and logs the printer information. Works fine as an exe run from windows, but once again, when run as a service, there is no access to the printer collection; nothing at all.
Any suggestions would be helpful!
Running Vb6 Program As A Service
is this possible in windows 2003? I need to scan a drive every hour and copy files to a location if they exist, i'd prefer to use vb but i dont think its possible, if it is, has anybody done it or got any advice?
many thanks
Connecting To A Remote Server Through A Proxy Server
Hi,
Let's say that I have two Cient and Server application
running on two separate machines on the internet. If the port that the Server is listening on port 8123, how can I use the Client and connect to the Server if the client is behind a proxy server. If you have or you can direct me to
a good example please contact me.
|