473,405 Members | 2,282 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,405 software developers and data experts.

Windows Service Error

Hi,

I have a windows service to do a "task" on my local box (move files) from
C:\Test to D:\Test
Now I want to change the "task" to move from C:\Test to my user space on the
network
I tried 2 things and it gave me 2 different errors
1. from C:\Test to \\(Network)\Stephen\Test
it gave me an "ExceptionMessage:Access to the path
"\\(Network)\Stephen\Test\temp.txt" is denied."

2. from \\(Network)\Stephen\Test to C:\Test
it gave me an "ExceptionMessage: path "\\(Network)\Stephen\Test\" in
invalid.

Can someone please tell me whats wrong?

Stephen
Jan 11 '06 #1
2 891
Most likley the windows service does not have write permissions on that
computer.
I suggest you have it run under a user account that does have the necessary
permissions. For initial testing purposes, I suggest having it run under
your personal user account since you know you have the necessary
permissions.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Stephen" <st********@hotmail.com> wrote in message
news:OO**************@TK2MSFTNGP12.phx.gbl...
Hi,

I have a windows service to do a "task" on my local box (move files) from
C:\Test to D:\Test
Now I want to change the "task" to move from C:\Test to my user space on
the
network
I tried 2 things and it gave me 2 different errors
1. from C:\Test to \\(Network)\Stephen\Test
it gave me an "ExceptionMessage:Access to the path
"\\(Network)\Stephen\Test\temp.txt" is denied."

2. from \\(Network)\Stephen\Test to C:\Test
it gave me an "ExceptionMessage: path "\\(Network)\Stephen\Test\" in
invalid.

Can someone please tell me whats wrong?

Stephen

Jan 11 '06 #2
Thanks Steve,
Will try that
Stephen

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Most likley the windows service does not have write permissions on that
computer.
I suggest you have it run under a user account that does have the necessary permissions. For initial testing purposes, I suggest having it run under
your personal user account since you know you have the necessary
permissions.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Stephen" <st********@hotmail.com> wrote in message
news:OO**************@TK2MSFTNGP12.phx.gbl...
Hi,

I have a windows service to do a "task" on my local box (move files) from C:\Test to D:\Test
Now I want to change the "task" to move from C:\Test to my user space on
the
network
I tried 2 things and it gave me 2 different errors
1. from C:\Test to \\(Network)\Stephen\Test
it gave me an "ExceptionMessage:Access to the path
"\\(Network)\Stephen\Test\temp.txt" is denied."

2. from \\(Network)\Stephen\Test to C:\Test
it gave me an "ExceptionMessage: path "\\(Network)\Stephen\Test\" in
invalid.

Can someone please tell me whats wrong?

Stephen


Jan 11 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: MatthewRoberts | last post by:
Howdy All, I have a Windows Service that often stops in its tracks with no exception and no explanation on our QA system. During testing on the development machine, it can handle any workload,...
0
by: Martijn Remmen | last post by:
I have developed a service which exposes a COM object. This service is running perfect on Windows 2000 Server and Windows 2000 Professional under the SYSTEM account. When the service is...
9
by: Hardy Wang | last post by:
Hi all: I read an article from http://www.c-sharpcorner.com/Code/2003/Sept/InstallingWinServiceProgrammatically.asp about how to install a windows service programmatically. Based ont the code...
4
by: Keith | last post by:
I'm in the same boat as the fellow who posted this message back in August: Title : Windows Service, How does one make a service "fail" properly? Author : Ross Bennett Group :...
5
by: Richard Steele | last post by:
I have created a WinForm application that needs to be run as a windows service (the PC is inaccesible by any user) i have successfully installed the application as a windows service. When i start...
5
by: R. Ian Lee | last post by:
I'm using the System.Web.Mail.SmtpMail object (.NET 1.1) to send email from an ASP.NET application. Everything works fine when I run it from Windows 2000 Server, but not from WinXP Pro. Is it...
6
by: Dean R. Henderson | last post by:
I have a DTS Package I am able to execute successfully from a Windows Form application, but I cannot get this to work from an ASP.NET Web Service, although the Web Service impersonates the same...
10
by: Ger | last post by:
I am having problems using VB.Net's Management base object on a machine hosting Windows Server 2003. I am trying to set file permissions from a Windows Service. These files may be loacted on a...
7
by: shai | last post by:
I am working at .net 1.1, writing in c#. I have windows service with a COM object. Every unexpected time The COM object throw an error that make my service get stuck (do not respond). I can catch...
1
by: TJ | last post by:
I created a windows service using VS2005. I created/adjusted the install class using the designer controls. I set the user to be 'local system'. I installed the service using the VS2005 cmd...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.