|
-
Aug 27th, 2006, 07:01 PM
#1
Thread Starter
Hyperactive Member
[2005] Operation could not be completed (remote storage problem)
I'm working on a project where I need file IO. I'm using streamreaders and streamwriters to access the files. All the operations I need to do work perfectly fine when I have the file stored locally (ie on the computer I'm using). However, when the project is stored on the network drive (a requirement for backups etc), I get security exceptions.
So the solution I explored was the clickonce security settings (Project properties -> security tab), and I made the application partial trust. I left most of the settings unchanged, only changing "FileIOPermission" to "Include". Now, occasionally when I compile it generates this error:
The operation could not be completed
After this, any further compiling efforts result in this error:
Visual Studio could not copy a support file to this location:
'[network drive]\[program directory path]\bin\debug\PurlinDesigner.vshost.exe'. Please verify the path exists and is writeable.
I know that I could make a local copy of the project, and this would completely circumvent the error, but I would strongly prefer to have an alternate solution, as I need to keep the project on the network drive throughout the development (for backups etc).
At this point, every time I get the error, I shut down and restart visual studio and it continues fine, but this is painful and slow (read: painfully slow).
Has anyone encountered this problem before, and can anyone offer any advice on solutions?
-
Aug 27th, 2006, 09:00 PM
#2
Thread Starter
Hyperactive Member
Re: [2005] Operation could not be completed (remote storage problem)
I googled for a while and found a lot of questions about the same problem, but not many solutions. Eventually I stumbled onto this page and tried what was suggested there (quoted here to save time):
> The only way around this is to explicitly close the file on the file
> server and as this happens all of the time it's a royal pain in the
> behind! I have full rights to the folder in question.
I had the same problem. There is an option in the debug tab of the
project settings "Enable the Visual Studio hosting process". If you
disable the option, the IDE will no longer use the vshost process to
run your app...and no longer give you the lock problem.
Sounded like a great idea, so I tried it and recieved this delightful message:
The security debugging option is set but it requires the Visual Studio hosting process which is unavailable in this debugging configuration. The security debugging option will be disabled. This option may be re-enabled in the Security property page. The debugging session will continue without security debugging.
On a related note, does anyone know a quicker way to copy these error messages? Took me a while to copy that last one...
Anyway, as I expected from that message, I was no longer able to do File IO within the project. So now my question becomes more specific: Is there a way to get rid of the error message but still have the security access needed to perform File IO operations?
That's all I've got so far, but I intend to keep looking.
-
Aug 27th, 2006, 09:19 PM
#3
Thread Starter
Hyperactive Member
Re: [2005] Operation could not be completed (remote storage problem)
Okay... Now this is getting seriously problematic. I disabled the hosting process as I described above, then followed up by re-enabling it... However the security settings did not work.
What I mean is, now I cannot do File IO operations at all!
At this point, I don't even need a solution, just a recovery option... I'm guessing that nobody has encoutered this problem (thus the uncanny silence), so I will continue to look myself and hope (read: pray) I find something that will at least solve the serious problem of no File IO... Things are looking grim fellow vbforum'ers...
Edit: Note that I did disable and re-enable all the security settings (as one should in any problem like this). I also tried setting the application to full trust settings, and have closed and reopened the compiler to make sure that's not the problem. None of these worked (though I did get some more "The operation could not be completed" messages along the way).
Edit2: Alright... I've accepted that this is a problem I'm not going to solve now... I'm leaving all the File IO for later, and I'll just hope something is figured out before then (otherwise, I guess I'll just make a local copy of the project...). Just to let y'all know in case you were out looking up solutions for me
Last edited by ZaNi; Aug 27th, 2006 at 10:08 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|