473,396 Members | 2,052 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

VS2005 - Debug and Locked Files

JR
VS2005 Team Developer edition (final)
developing a Windows Application

When in debug mode if you make any changes to the application settings
or project properties, the next time I attempt to debug I get

"The operation could not be completed. The process cannot access the file
because it is being used by another process. "

If you click ok to that dialog and try to debug again I get:
"Visual Studio could not copy a support file to this location: ...blah.
Please
verify the path exists and is writeable."

The only way to start debugging again is to exit visual studio and restart.

there are no vshost.exe processes running in task manager and only one
copy of the devenv process

This is 100% repeatable.
It appears that the process that saves the settings is not releasing the
file(s) and
they remain locked. How can I prevent this because having to exit and reload
every time you modify my.settings or the project properties while in debug
mode
is a real pain.

Known bug ?

Jan 4 '06 #1
7 7865
Did the error only occur with a particular project, or even all new
project ( Windows Application)? Can you give a sample on how you change
application settings or project properties?

Luke

Jan 5 '06 #2
JR
Hi Luke
can be reproduced with any project (even a really simple one)
any time I modify the project properties, or settings.settings via the IDE
the
project vhost.exe file becomes "locked"
there is really no example it is not code causing the lock,
project properties, or edit/add an new my project settings.settings
any modification in either of these areas causes the problem

JR

"[MSFT]" <lu******@online.microsoft.com> wrote in message
news:mS**************@TK2MSFTNGXA02.phx.gbl...
Did the error only occur with a particular project, or even all new
project ( Windows Application)? Can you give a sample on how you change
application settings or project properties?

Luke

Jan 5 '06 #3
Hello,

Are you a local administator on the computer? Also, you may check following
issue in VS.NET 2005:

1. Are you still work with a beta version?
2. in Tools/Options/Debuging, did you have following options checked:

break all processes when one process breaks
Enable Edit and Continue

Luke

Jan 6 '06 #4
JR
Hi Luke
as stated in my original posting this is VS 2005 Final release
also this machine has never had a beta, it was a clean install.

answers to your new quetions
yes I am local admin (and only user of the PC)
break all processes when one process breaks is checked
Enable Edit and Continue is checked

this is pretty much an "out of the box" install
the file that is locked is always the appname.vshost.exe
I don't believe that it is permissions related as exiting the deve enviro
and restarting
allows the debug to work again, it will continue to work in the same session
until such time as I change a project property or setting.setting value
and/or add a
new settings.settings value

Thanks again
JR

"[MSFT]" <lu******@online.microsoft.com> wrote in message
news:FR*************@TK2MSFTNGXA02.phx.gbl...
Hello,

Are you a local administator on the computer? Also, you may check
following
issue in VS.NET 2005:

1. Are you still work with a beta version?
2. in Tools/Options/Debuging, did you have following options checked:

break all processes when one process breaks
Enable Edit and Continue

Luke

Jan 6 '06 #5
Hello,

Here is also a option which may help in this issue:

Right click the project in olution Explorer, select properties -> Debug ->
Enable Debuggers, and disable Enable Visual Studio hosting

More information about the vshost.exe:

http://blogs.msdn.com/dtemp/archive/...09/215764.aspx

Will this help?
Luke

Jan 9 '06 #6
JR
Hi Luke,

I have tried this setting both ways with the option this option checked,
it seems to fail every time, when unchecked it works better.
I also noticed that the debug unmanaged code is not checked
I checked this and then also checked the hosting option, because it appears
from the blog you referenced that the option has advantages when turned on

so as it stands now if both of these are checked it appears to work so far,
and if none are checked it works but if only the host is checked it fails.

I will be working with this a lot more in the next few days, so will report
back
if there is any difference. But for now at least I know how to get around it

Thanks
JR

"[MSFT]" <lu******@online.microsoft.com> wrote in message
news:IS****************@TK2MSFTNGXA02.phx.gbl...
Hello,

Here is also a option which may help in this issue:

Right click the project in olution Explorer, select properties -> Debug ->
Enable Debuggers, and disable Enable Visual Studio hosting

More information about the vshost.exe:

http://blogs.msdn.com/dtemp/archive/...09/215764.aspx

Will this help?
Luke

Jan 12 '06 #7
I am glad to hear you have had a solution here. If there is more
informations, please feel free to post here.

Regards

Luke

Jan 12 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
by: Alan Silver | last post by:
Hello, I have been developing ASP.NET with a text editor so far (better way to learn initially), and have now been trying Visual Web Developer. I want to create a project for an existing site...
5
by: NoNickname | last post by:
Basically, how do I know that the release versions of all components are being published? The Build | Configuration Manager is confusing me a little in VS2005. I have three projects in my...
2
by: Mark Phillipson | last post by:
Hi, When I run VB.Net at work while connect to our LAN then everthing works OK. But when I run VB.Net at home on a VAIO and run a project by selecting Debug>Start the whole IDE freezes up. If...
2
by: Carlo \(MCP only\) | last post by:
Hi to all I'm askyng you a suggestion about the best way to share the same source code between VS2003 and VS2005. The project I'm developing is a controls and components library, and the...
6
by: Alex | last post by:
Hello people, We have a large application (about 5000 source files) consisting of multiple executables, DLLs and COM components written in C++. We develop and build it in Visual Studio 2003. ...
3
by: Paul Lennon | last post by:
Hi, I hope I have selected the right group for this question, I am looking for assistance with using VS2005 to create a simple website on my ISP. Using VS2005 I have created a Website project...
4
by: nmrcarl | last post by:
I'm trying to upgrade a large project from VS 6.0 to VS 2005. After fixing a lot of things that changed (mostly sloppy coding in the original project that VS2005 didn't allow), I got the release...
1
yabansu
by: yabansu | last post by:
Hi all, I implemented a basic client application. It communicates with server and works properly. Building processes succeed just by giving the following warning: LINK : D:\DOC\Visual Studio...
2
by: colin | last post by:
Hi, I seem to have introduced a probem into my application wich cuases the IDE to hang when I switch from debug to reease mode. it doesnt even consume any cpu %, just sits there, with the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.