Solved

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

Posted on 2007-11-29
9
331 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

943 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

10 Experts available now in Live!

Get 1:1 Help Now