Improve company productivity with a Business Account.Sign Up

x
?
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
?
372 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:Erwin Pombett
  • 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:Erwin Pombett
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
What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

 

Author Comment

by:Erwin Pombett
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:Erwin Pombett
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:Erwin Pombett
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:Erwin Pombett
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

What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
Watch the video to learn how one can deal with PST file corruption issue with an outstanding Kernel for Outlook PST Repair Tool easily. Using this tool, non-technical users can swiftly perform the repair process to restore their essential data witho…
Watch the video to know the process of migration of Exchange or Office 365 mailboxes in absence of MS Outlook. It is an eminent tool which can easily migrate Public, Archive user mailboxes from one another Exchange server and Office 365. Kernel Migr…

589 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