C
Claire
I'm testing my first service and I'm receiving the above exception whenever
I attempt to open some files for writing. Reading is fine.
The files are on the same directory as my service application and hold
application configuration settings.
On the other hand, a log file that I write to the c:\temp directory causes
no problems and opens every time.
The account the serviceinstaller was set up to use was "LocalService".
I have just changed the account to "LocalSystem" and I've stopped getting
the problems.
I need to be able to do the following from my service :
1) Read/write configuration files in the same directory as the application
2) Read/write a log file in a directory selected by the user.
3) Talk to a remote SOAP server
4) I think interop services create cs files at runtime to create objects to
talk to a dynamically loaded unmanaged dll. I noticed some errors regarding
this in one of my log files on a single occasion.
Will LocalSystem be ample to do this task without errors please?
Why would writing to my log file work ok and yet not the other ones when I
was using the LocalSystem account?
thanks
I attempt to open some files for writing. Reading is fine.
The files are on the same directory as my service application and hold
application configuration settings.
On the other hand, a log file that I write to the c:\temp directory causes
no problems and opens every time.
The account the serviceinstaller was set up to use was "LocalService".
I have just changed the account to "LocalSystem" and I've stopped getting
the problems.
I need to be able to do the following from my service :
1) Read/write configuration files in the same directory as the application
2) Read/write a log file in a directory selected by the user.
3) Talk to a remote SOAP server
4) I think interop services create cs files at runtime to create objects to
talk to a dynamically loaded unmanaged dll. I noticed some errors regarding
this in one of my log files on a single occasion.
Will LocalSystem be ample to do this task without errors please?
Why would writing to my log file work ok and yet not the other ones when I
was using the LocalSystem account?
thanks