Solved

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

Posted on 2007-11-29
9
329 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_
  • 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:
Desp earned 500 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
 

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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

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:Desp
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:Desp
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

705 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now