473,323 Members | 1,551 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,323 software developers and data experts.

Error Occurs while starting a Vb.net windows service from SQL

1
Hi,

I have a vb.net windows service to rename a file placed in some folder of a windows server 2008.

I want this service to rename the file as different a user as it does not allow for the nomal user. Since the windows service runs in different context as local user which allows to rename the file, i am starting the service from a stored procedure using Net Start along with parameters.
When i execute the stored procedure, the following error occurs:
The service is starting.
The service could not be started.
The service did not report an error.
More help is available by typing NET HELPMSG 3534.

When i open the evenlog, the following error is logged:

"Service cannot be started. System.IO.IOException: The process cannot access the file because it is being used by another process."

I am using windows server 2008 and SQL server 2008

Please help me in this
Aug 29 '12 #1
1 2038
Rabbit
12,516 Expert Mod 8TB
Make sure the file isn't locked/open by another process before you run yours.
Aug 29 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Evgeny Cherny | last post by:
Hi, I need to start some Windows Service from ASP.NET. I use Process class of Framework. /***************************************************/ System.Diagnostics.Process p=new...
0
by: mgonzales3 | last post by:
Hey guys I keep getting this error when i try running my vb.net windows service. -------------------------- The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot be found. The...
0
by: Neal | last post by:
Hi All A scheduling .Net win service I wrote and tested + working on XP SP2 with ..NET Runtime version 1.1.4322 gets the following error on Win2003 + SP1 with .NET Runtime version...
1
by: amirmira | last post by:
I have developed a service in VB.NET that accepts startup parameters. Everything works fine on my machine, but when I deploy the service on another machine, I get the following error when I try to...
0
by: Adam Coulter via DotNetMonster.com | last post by:
Hi, I have created a program with two windows services using c#. The services install ok but when I try to start the services I get an error: "Could not start the Threashold service on Local...
5
by: OpticTygre | last post by:
What is the best way that anyone has found to capture errors inside a windows service? It's pointless to use compilation constants, as you can't "debug" a service very easily, and you can't pass...
0
by: Roger Twomey | last post by:
I am writing a Windows service which is run (and tested) at a remote location so I cannot debug issues at the actual deployment site. I know that the application is having some sort of trouble as...
0
by: PhilHip | last post by:
I've written a Windows service in VB.Net that accesses the global address list to obtain all the entries to store them in a local database. The GAL is accessed using the MS Exchange profile on the...
0
by: neha modi | last post by:
i get an error when i try to start the windows service. The error is: Service cannot be started. The service process could not connect to the service controller.
1
by: DotNation | last post by:
Hi, I m getting following error while starting windows service,and service stops working. "The Visual Basic Development Environment can't provide multiple instances of a single use ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.