RE: Unable to copy file. ... Access to the path ... is denied.



Steven,

I found the problem.

The Debug Directory was included in the project. I don't know how it got
included but it was. I use sourcesafe. I think sourcesafe was checking in the
files as the build put them in the Debug dir. I exculuded the Debug dir and
now I can build.

I get a warning when I build:
WARNING: Two or more objects have the same target location
this may have something to do with it. Any ideas on this warning?


Thank you
--
Jerry


"Steven Cheng[MSFT]" wrote:

Hi Jerry,

From your description, you're encountering "unable to copy file ... .access
denied..." error when try building a windows service project, correct?

Yes, there does existing many such issues on the web. So far I've found a
certain public bug entry related to this issue. Before you take look at
that, I'd like to confirm some further things of your project:

** it the service app used(configured in windows Service manager) when you
developing it or any other application may lock the exe
** is the service project referencing any other reference assemblies(in the
same solution or external ones) which may get locked?

if the problem is the solution/project self specific, you should be able to
get rid of it by close and reopen the solution.

here is the public bug entry which mentioend a issue when the project has
some certain resx file that has referenced an external assembly's
type(which get locked). You may have a look to see whether it helps.

#MSB3021: Unable to copy file" bug still not fixed in final version
http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?Feedbac
kID=114694

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.



Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================


This posting is provided "AS IS" with no warranties, and confers no rights.




--------------------
Thread-Topic: Unable to copy file. ... Access to the path ... is denied.
thread-index: AchSKn3zVVpRPzKtT7yz85Xovga8Cg==
X-WBNR-Posting-Host: 70.147.65.236
From: =?Utf-8?B?SmVycnkgQw==?= <jerryed@xxxxxxxxxxxxx>
Subject: Unable to copy file. ... Access to the path ... is denied.
Date: Tue, 8 Jan 2008 11:13:03 -0800

I am getting the message above when I try to build a Windows Services
project
in debug configuration . The path is the debug dir placed in the project
by
VS.

The project will build in the release configuration. Is there any
information on this.
I found lots of posts about but none of the "Fixes" worked.



Jerry



.



Relevant Pages

  • RE: Problem with Process.GetCurrentProcess() when starting a servi
    ... Then I used the VS.net2003 debugger to attach the Windows Service process ... By breaking the process while hang several times, ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.general)
  • Re: debug build crashes when calling managed code
    ... enable debug info you *should* be able to still debug. ... Look forward to your response. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.vc.language)
  • Re: .NET Remoting and COM Interop Component
    ... issue in windows service environment rather than .net remoting specific. ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.general)
  • Re: attach to process not started in debug mode?
    ... Jeffrey - I've got a box at a remote ISP where I may need to debug the app from ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework)
  • Re: VS2005 conditional directive
    ... I still see "Debug" displayed. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ... project analysis and dump analysis issues. ...
    (microsoft.public.vsnet.general)