Link to home
Start Free TrialLog in
Avatar of Erwin Pombett
Erwin PombettFlag for Switzerland

asked on

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

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.
Avatar of arif_eqbal
arif_eqbal

Just Delete the Obj folder and try again
ASKER CERTIFIED SOLUTION
Avatar of Fahad Mukhtar
Fahad Mukhtar
Flag of Pakistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Erwin Pombett

ASKER

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.
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.

Desp,

on point nbr 4, what do i add?

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

what's  the differences?
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.
you have to add the refernces dlls from other folders... ??? from where did u add these dlls initially
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.

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