?
Solved

i can not compile my prog anymore, i  receive as error : "could not write to output file"

Posted on 2007-11-29
9
Medium Priority
?
347 Views
Last Modified: 2013-11-26
i have an error while compiling my soft,

Could not write to output file 'C:/Documents and Setting/.../myProg/DomainLayer/obj/Debug/DomainLayer.dll'
-- the process cannot access the file because it is being used by another process"

is there a software like "lsof" on windows?

i've browse the experts-exchange website, and try some solutions as:
- delete the webclient and reinstall it.
- change the .net account to administrator.
- recreate the Temp folder in  %Systemroot%
but without success.



my soft is composed as follow:

myProg                           ->  ASP.NET Web Application
    ref: ApplicationConfiguration
    ref: ApplicationLayer
    ref: DomainLayer
    ref:
ApplicationLayer             ->  Windows Application
    ref: ApplicationConfiguration
    ref: DomainLayer
ApplicationConfiguration ->  Windows Application
   ref: DomainLayer
   ref:PersistenceLayer
DomainLayer                   ->  Windows Application
PersistenceLayer            ->  Windows Application
   ref: DomainLyer


i have tried to play with the Copy Local = (True || False) but nothing change my problem,
yesterday i could delete a few .dll and recompile.

please i need info on how to recover my solution, by recover i mean recover the possibility of work.
0
Comment
Question by:toshi_
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
9 Comments
 
LVL 19

Expert Comment

by:arif_eqbal
ID: 20372550
Just Delete the Obj folder and try again
0
 
LVL 19

Accepted Solution

by:
Fahad Mukhtar earned 1500 total points
ID: 20372592
Perform these steps:
1) Find all the projects that reference the project whose assembly is causing the problem.
2) Remove all references to said project.
3) Build just that project.  If it works, you're good to go.
4) Re-add Project References to the project (for the ones you deleted).

Refernce:
http://aspadvice.com/blogs/ssmith/archive/2005/03/21/1849.aspx
0
 

Author Comment

by:toshi_
ID: 20372626
i've control that all my AssemblyInfo.cs files (one per assembly : 5 in my project)  have the assembly value as folloow:
[assembly: AssemblyVersion("1.0.0.0")].

i did the change after i found as a tip to people having the error i'm having now that i've deleted the obj folder. myProg/DomainLayer/obj

my error is
Error : The dependency "domainLayer Version 1.0.0.0, ....in project ApplicationLayer cannot be copied to the run directory because it wold conflict with dependency DomainLayer, version 1.0.2888.35461    

i cannot find the DomainLayer version 1.0.2888.35461 to deleteit.
0
Tutorials alone can't teach real engineering

So we built better training tools.

-Hands-on Labs
-Instructor Mentoring
-Scenario-Based Tests
-Dedicated Cloud Servers

All at your fingertips. What are you waiting for?

 

Author Comment

by:toshi_
ID: 20372650
ok, desp,
i take time to write my questions, you were faster than me. ;o)
so i did not read your answer before my post.
i give a try  to your 4 points
thanks.

0
 

Author Comment

by:toshi_
ID: 20372686
Desp,

on point nbr 4, what do i add?

DomainLayer->bin->Debug->DomainLayer.dll?    or
DomainLayer->obj->Debug->DomainLayer.dll

what's  the differences?
0
 
LVL 19

Expert Comment

by:Fahad Mukhtar
ID: 20373005
use
DomainLayer->bin->Debug->DomainLayer.dll

"Bin" folder is where the final compiled code is stored. "Obj" folder is where the compiler stores intermediate files...these are used for incremental builds.
0
 
LVL 19

Expert Comment

by:Fahad Mukhtar
ID: 20373015
you have to add the refernces dlls from other folders... ??? from where did u add these dlls initially
0
 

Author Comment

by:toshi_
ID: 20373105
heu.....is it wrong doctor?

initially i've created a web project, then i 've add to the folder of my project other project, one for every layer.

i've added the .dll from the project folders.


now i'm separating every thing, i'm creating a brand new solution in order to restart again.

0
 

Author Comment

by:toshi_
ID: 20374224
i'm in more troubles than in the  begining.

i've copied my folders, one per application, to Inetput/wwwroot/myProg/01_...
(before, my folders were in my Documents.)  but never mind, it has been such of mixture of different things to succeed having them not in  www, than i restart now by copiing all to www.
so my folders are in myProg folder and they are as follow:
01_View - which should be the web application.
02_...
03_...
...
06_PersistenceLayer.

i can create a new solution and add the projects except the 01 which should be a web project.
i've try several things, but nothing works,

i'm looking for a procedure on how to do this, a link that can explain me, as the more i try the more lost i get.

help

   
0

Featured Post

Cloud Training Guides

FREE GUIDES: In-depth and hand-crafted Linux, AWS, OpenStack, DevOps, Azure, and Cloud training guides created by Linux Academy instructors and the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question