473,775 Members | 2,434 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 7887
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.settin gs 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.settin gs
any modification in either of these areas causes the problem

JR

"[MSFT]" <lu******@onlin e.microsoft.com > wrote in message
news:mS******** ******@TK2MSFTN GXA02.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.settin gs value

Thanks again
JR

"[MSFT]" <lu******@onlin e.microsoft.com > wrote in message
news:FR******** *****@TK2MSFTNG XA02.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******@onlin e.microsoft.com > wrote in message
news:IS******** ********@TK2MSF TNGXA02.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
3758
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 and add the files to it. I can add my .aspx and .cs (code-behind) files, but VWD doesn't know which .cs file si the code-behind for any particular .aspx file. When you create a new aspx page in VWD, it automatically puts the code-behind file with...
5
2584
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 solution: 1) web service website. 2) SOAP Extension Class Lib that compiles to a dll 3) WinForm application with a proxy to test the web service.
2
1611
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 I select Start Without Debugging then every thing is OK. I have tried disabling my firewall and virus protection but the IDE still crashes. I also find that the project files are locked ater the IDE crashes
2
1717
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 Solution.sln includes a standard WindowsForms application for testing pourposes. What I need is an efficient and reliable way to edit and test the DLL assembly in both environments, since the library will be distributed for Framework 1.1 and 2.0.
6
5348
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. I'm in charge of evaluating whether we want to migrate it to VS2005 (the previous migration from 6.0 to 7.1 was a pain). So far, things do not look good. I installed VS2005 on a VM, copied the sources over and tried to build the solution.
3
2395
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 using the file system. I am not trying to do any server side programming, for now simple HTML is sufficient. My site seems to be working fine locally and now I want to publish it to my Comcast directory. Comcast claims that they support FrontPage...
4
6254
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 version to build successfully. Unfortunately, it crashes right away when I start it. So now I need to build the debug version. Unfortunately, the compiler gives innumerable error messages of the sort shown below. The #include file referenced...
1
22090
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 2005\Projects\Client01\Debug/Client01.exe not found or not built by the last incremental link; performing full link This warning occurs when building/rebuilding the project after cleaning the intermediate and output files. If the project is once...
2
1305
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 debug/release drop down menu stil half visible, and not even the close buton or taskbar menu works - has to be clsoed from taskmanager. It seemed to start after I did 2 things,
0
9621
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10267
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9915
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7463
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5358
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4014
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3611
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2852
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.