Click here to Skip to main content
15,888,264 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello,

I am having to small Applications, a server and a client application.

They are communicating using MSMQ Queues.

Both are working with files, the server uses a filewatcher to find files,
sending the complete filename to the client which does a conversion to a new format.

Both are in the same network but not domain. they can ping each other with the ip.

The Problem:

Now I have to make a windows service of each application.
Communication with MSQM is still working well, but now the network access is not working anymore, neither with ip or a network-mapped drive.
It is a local service at the moment, and it uses private queues.

Any idea? Can I get a local service running with network file access somehow?
It was working as application, since it is a service it does not...

Thanks a lot,
Eric
Posted

1 solution

Run your service as a user (change from local service user) that has access to the private queues you need.
 
Share this answer
 
Comments
EriBeh 16-Sep-11 6:41am    
Hello Mehdi,

I changed the service to a local user.
I didn't have access to the queue, changed the queues owner and the permissions now it works with the queue.

But when I try to access my mapped network-drive it says it does not find it, and when I use \\computer\directory it says wrong user or password.

I can open the target computer with windows explorer that works fine and does not ask for a username or password...

Any idea? Thanks a lot!
Mehdi Gholam 16-Sep-11 8:13am    
Windows requires you to connect to the computer first before connecting to the directory.
Also add the service username to the destination computer share access list with full permissions.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900