Access denied writing to WLP folder from Visual Studio
Author: bobydesi123
Creation Date: 4/5/2010 8:46 AM
profile picture

bobydesi123

#1
Hi,
I am using VS2008 to debug my strategy and outputting the compiled DLL/strategy to the fidelity\WLP folder. While WLP is running and i build DLL/strategy i get following access denied error:

Error 1 Unable to copy file "obj\Debug\MyWLUtilities.dll" to "..\..\..\..\..\..\..\..\Program Files (x86)\Fidelity Investments\Wealth-Lab Pro 5\MyWLUtilities.dll". The process cannot access the file '..\..\..\..\..\..\..\..\Program Files (x86)\Fidelity Investments\Wealth-Lab Pro 5\MyWLUtilities.dll' because it is being used by another process. MyWLUtilities

The WLP is running with a default blank workspace, i.e. no strategy is running.
I have vista home premium 64 bits.
I am logged in as admin.
I run VS2008 as Admin.
I changed the ..\Program Files (x86)\.. folder permission so that i have FULL access!
Strange thing is it was working a few days before. Now it does NOT.
Has anybody had similar problem? Any help will be appreciated.
profile picture

Eugene

#2
This should be obvious, but you must shut down WLP. It is using your assembly and no other process can overwrite it. Set VS2008 to auto start WLP on build event.
profile picture

bobydesi123

#3
Eugene,
Thxs for ur reply. I cant even manually copy a strategy build by VS to the WLP folder..access denied..dont have permission. I have to shut down WLP to do it. A few days ago i was developing/debugging strategy in VS with WLP running all the time. On every buid VS was able to overwrite a new compiled version while WLP was running.

"...This should be obvious, but you must shut down WLP. It is using your assembly and no other process can overwrite it. Set VS2008 to auto start WLP on build event."

I am afraid i am not an IT professional..i am confused..can u please explain what is going on?
I have WLP running with a blank screen...there isnt any strategy running. Does WLP lock the whole ..\Wealth-Lab Pro 5\ directory? How is it using my assembly? The myWLutility is a class library not a strategy.
profile picture

Eugene

#4
WLP does not lock the whole main folder, as well as it doesn't lock all DLLs. Most likely, you are not running VS2008 with admin privileges. Double check that you're actually doing it.
profile picture

bobydesi123

#5
Eugene,
Thxs for quick response.
I looked in the Task Manager and it displays MS VS2008 as being run as "Administrator".
Sorry to keep bothering u on non WLP related issues, but as i had mentioned in one of my earlier thread "WLP takes long time to load/shut down". It is really annoying to shut WLP and Restart..takes more than minute+.. everytime i make changes and recompile. Thxs.
profile picture

Eugene

#6
Then, it's being used by WLP and you can't overwrite that DLL unless it's unloaded by the process that locked it.
QUOTE:
Sorry to keep bothering u on non WLP related issues,

Please re-use the original thread, although I probably have already went through all the options that I could think of. I've just replied there.
profile picture

bobydesi123

#7
Eugene,
I think i wasnt clear in my post. U did help me all u can on original thread, i did not want to revisit that thread. I was just showing my frustration with VS2008 problem and keep closing/openning the WLP.
Cheers!.