OPENFILENAME error 'C:\Documents and Settings\LocalService\Desktop refers to a loc'
Keep getting weird error "C:\Documents and Settings\LocalService\Desktop refers to a loaction that is unavailable. It could be on a hard drive on this computer, or on a network..."
Error message screen shot attached, this happens when I click the 'Save In' folder dropdown at the top of the Save file dialog box even though the Folder c:\test is shown on startup in the dropdown.
This happens everytime!, after this I have selected a file and saved... next time I get same popup message.
Re: OPENFILENAME error 'C:\Documents and Settings\LocalService\Desktop refers to a lo
What are you trying to do in the C:\Documents and Settings\LocalService\Desktop folder?
Who, when, how and why created the Desktop subfolder in the C:\Documents and Settings\LocalService? Usually such a subfolder doesn"t exists.
Try to delete it (perhaps, your problem is similar to the one described in http://support.microsoft.com/kb/323681/EN-US/#appliesto)
Re: OPENFILENAME error 'C:\Documents and Settings\LocalService\Desktop refers to a lo
will look at that but I'm not selecting that, note the folder is last saved as c:\test as in the screen shot, as soon as a click the dropdown arrow I get the error.
Re: OPENFILENAME error 'C:\Documents and Settings\LocalService\Desktop refers to a lo
What happens if you type in the WIndows Explorer address field C:\Documents and Settings\LocalService\Desktop or, at least, C:\Documents and Settings\LocalService?
Re: OPENFILENAME error 'C:\Documents and Settings\LocalService\Desktop refers to a lo
C:\Documents and Settings\LocalService folder does exist but C:\Documents and Settings\LocalService\Desktop does not.
so I created a Desktop folder in there and now it's not complaining about navigating the folder to elsewhere than the default c:\test. weird... looks like it is my XP install that has that issue and not others.
Re: OPENFILENAME error 'C:\Documents and Settings\LocalService\Desktop refers to a lo
I have the same error, but creating the "desktop" folder on the LocalService profile is not an option. Here is why.
My application is running as a service and is distributed to "clients". I cannot tell all clients to create that folder for the application to work. And I cannot make the application run as another user since that application is started by another application (lets call it Launcher). That Launcher launch multiples application as LocalService, like the one I have the problem with.
Re: OPENFILENAME error 'C:\Documents and Settings\LocalService\Desktop refers to a lo
Originally Posted by simonak
I have the same error, but creating the "desktop" folder on the LocalService profile is not an option. Here is why.
My application is running as a service and is distributed to "clients". I cannot tell all clients to create that folder for the application to work. And I cannot make the application run as another user since that application is started by another application (lets call it Launcher). That Launcher launch multiples application as LocalService, like the one I have the problem with.
For me it sounds like a windows dialog error.
Thanks.
Not really. A service shouldn't interact directly with the desktop. Opening a dialog is interacting with the desktop, and the default "directory" shown is the user's desktop. The LocalService account has no desktop.
Re: OPENFILENAME error 'C:\Documents and Settings\LocalService\Desktop refers to a lo
Is there a way to deactive the "desktop" option in an OpenFileDialog ? At Least if the error was shown when choosing the desktop folder I would understand. But getting the error whenever I try to choose a different folder is not acceptable.
Re: OPENFILENAME error 'C:\Documents and Settings\LocalService\Desktop refers to a lo
Is there a way by command line to tell with wich user to launch my application ?
The application is launched by a command line, it's not specified to be launched as a service... I think it's by default.
Re: OPENFILENAME error 'C:\Documents and Settings\LocalService\Desktop refers to a lo
Excuse me, I cannot understand you:
Originally Posted by simonak
I have the same error, but creating the "desktop" folder on the LocalService profile is not an option. Here is why.
My application is running as a service and is distributed to "clients". ...
Originally Posted by simonak
Is there a way by command line to tell with wich user to launch my application ?
The application is launched by a command line, it's not specified to be launched as a service...
So, it it a service or is it NOT a service?
Last edited by VictorN; September 14th, 2011 at 02:58 PM.
Re: OPENFILENAME error 'C:\Documents and Settings\LocalService\Desktop refers to a lo
If your application is a service, the usual way to "interact" with the desktop is to write a client app that the user has to launch. That way, your client app is the one interacting with the user/desktop, and just sends/receives messages from your service app.
Having said that, I too would like to know, is this a Windows Service, or a Windows Application?
Re: OPENFILENAME error 'C:\Documents and Settings\LocalService\Desktop refers to a lo
Ok i'm sorry that's it's not clear.
It is a windows application. In that application we have a menu to load a file. When we choose that option we automatically have the error that the desktop folder does not exist and when I check the path it's looking at "C:\Documents and Settings\LocalService\Desktop". So, I was assuming then that the application was launched as a service and that it was why it was looking at that path.
Now, I think I understand that a windows application cannot be launched as a service, so why is it looking at the "LocalService" desktop ?
That is my problem, and like I said creating a desktop folder is not an option since the application is distributed to clients (and we do not want to tell them to create that folder...)
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.