Jump to content
Xtreme .Net Talk

Permission problem when start UI application using Process class


Recommended Posts

Posted

Hi All,

 

I got permission issue when accesing network files from the application

that was started using Process component.

 

Actually I have my .NET windows service running. From this service I

start MFC application using .NET Process class setting working

directory and all necessary info. This app uses OpenFileDialog to

access some files over network. When I try to access some computer on

network from the same workgroup I get message that this computer is not

accessible, you might not have permission to use this network resource.

 

If I start the same MFC app not from service but just double clicking

on it I can access all computers on my network without problem. Seems

there is some security setting I am missing to set when start app using

Process class.

 

I would greatly appreciate any suggestions,

 

Thank you

Roman

Posted
What user account is the service running under? The MFC app will run under the security context of the user that launched it - the service's account in this case.

In services window I set my service in Log On tab as a Local System Account

and allowed service to interact with desktop.

Following your question I set service to This Account ( myUser which is member of administrators group and has access to the computers that I tried to rich). After that I managed to start service, but when I create process from service I do not see application window, but process was definetly started( I see it in process list). Looks like I do not allow my service to interact with desktop. So my question is : is there a way to not using Local System Account but still allow service to interact with desktop.

 

I will appreciate your help

Roman

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...