Re: error CS0016: Could not write to output file - build problems - vs.net

From: Quinn Wilson (Quinn.Wilson_at_nygard.com)
Date: 05/27/04

  • Next message: Amit: "Re: could not run CSharpAddCLass wizard"
    Date: 27 May 2004 10:27:51 -0700
    
    

    anyone?

    Quinn.Wilson@nygard.com (Quinn Wilson) wrote in message news:<43724709.0405200857.7b1b086f@posting.google.com>...
    > MS please provide a solution to this.
    >
    > Windows 2000 / Visual Studio 7.0.9466 / .Net Framework v1.1.4322
    >
    > I have a solution ( based on the MS Commerce Server International
    > Retail Site Reference ) which contains 12 projects. (7 VB and 4 C#)
    >
    > If I open the IDE, click [Build / Rebuild Solution], my compile is
    > successfull. If I click [Build / Rebuild Solution] again, the compile
    > dies on one of the C# projects.
    >
    > Performing main compilation...
    > error CS0016: Could not write to output file
    > 'd:\onlinestore\Components\obj\DebugAll\Microsoft.CommerceServer.Retail2002.Components.dll'
    > -- 'The process cannot
    > access the file because it is being used by another process. '
    >
    > and no subsequent compile attempts will succeed. My only solution thus
    > far has been to exit the IDE, delete the "obj" directory of the
    > offending project, ( Depending on the build order it is not always the
    > same but it is always a C# project / never VB. ) rebuild the solution
    > from the commandline "devenv /build debugall
    > d:\onlinestore\Retail2002.sln"
    >
    > I have followed the direction in QB313512
    > I do not have projects that are compiled to the same output folder. I
    > have only project references, and none of the references to these
    > projects are marked with "Copy Local" as false. (I should note that
    > this wasn't always a problem. I suspect that I reached the 64kb limit
    > mentioned in the KB article and began experiencing these issues. )
    >
    > I have resorted to managing the build process manually using the
    > Configuration Manager to enable and disable the projects I'm working
    > on, but if I have to make a change to any of the C# projects I am
    > forced to reopen the IDE.
    >
    > If anyone has any suggestions. I am open to anything. If it means
    > reworking my solution, that's fine. I would prefer to continue my
    > builds within the IDE but this is increasingly more painfull.
    >
    > Frustrated


  • Next message: Amit: "Re: could not run CSharpAddCLass wizard"

    Relevant Pages

    • C# command line compilation
      ... I wonder what's the difference of compilation between using command line and ... using VS.NET IDE. ... the output file size, e.g. file size compiled by IDE is 45,580, by command ...
      (microsoft.public.dotnet.general)
    • Re: VarPtr and passing variables by ref
      ... or the background compilation that is an early ... simply open those files in the IDE. ... This becomes stored 'opcode' within the IDE, The 'text' portion of the code ... that you see in the editor is a 'View' to the underlying pcode. ...
      (microsoft.public.vb.general.discussion)
    • Re: Subclassing compilation crash
      ... > subclassing off, the IDE no longer crashes. ... > I do have - and always have had - such code to reset the window proc. ... > However, during compilation, the first two message boxes pop up just ...
      (microsoft.public.vb.general.discussion)
    • Re: Easier Way to Conditional Compile?
      ... currently running in the IDE or not. ... >> and off with a conditional compilation argument during IDE development. ... >> the app, then go back in and change the value back. ... > then you can test for the underscore character anytime at run time to ...
      (microsoft.public.vb.general.discussion)
    • Re: CS0016
      ... Your Network-Service account should have "Full" access to your ... > The Network-Service has acces to the Temporary ASP.NET Folder, ... An error occurred during the compilation of a resource ... > Compiler Error Message: CS0016: Could not write to output file ...
      (microsoft.public.dotnet.framework.aspnet.security)