romanm Posted September 27, 2005 Posted September 27, 2005 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 Quote
Administrators PlausiblyDamp Posted September 27, 2005 Administrators Posted September 27, 2005 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. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
romanm Posted September 27, 2005 Author Posted September 27, 2005 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.