locked
Could not find file errors when publishing in Visual Studio RRS feed

  • Question

  • User1361340671 posted

    I am getting lots of errors when trying to publish my site to Amazon Elasticbeanstalk.

    I removes references and uninstall via nuget DotNetOpenAuto and Entity Framework but I still get the following errors:

    Commencing deployment for project Test
    ...building deployment package obj\Debug\Package\Test.zip...
    ...package build 'CopyPipelineFiles': error in 'C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web\Microsoft.Web.Publishing.targets' at (2660,5): Copying file bin\DotNetOpenAuth.AspNet.xml to obj\Debug\Package\PackageTmp\bin\DotNetOpenAuth.AspNet.xml failed. Could not find file 'bin\DotNetOpenAuth.AspNet.xml'.
    ...build of project archive failed, abandoning deployment
    Commencing deployment for project Test
    ...building deployment package obj\Debug\Package\Archive...
    ...package build 'CopyPipelineFiles': error in 'C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web\Microsoft.Web.Publishing.targets' at (2660,5): Copying file bin\DotNetOpenAuth.AspNet.xml to obj\Debug\Package\PackageTmp\bin\DotNetOpenAuth.AspNet.xml failed. Could not find file 'bin\DotNetOpenAuth.AspNet.xml'.
    


    I have no idea how to solve this. I tried removing the references, exclude the .xml files (They are missing in the folder), but nothing helps. Can you please help me out, I spent hours trying to solve this without success.

    Thanks in advance.

    Thursday, December 5, 2013 8:46 AM

Answers

  • User-484054684 posted

    I've found another reference where clearing all the files from bin folder and Publish again works for a few!

    Caution: Make sure to take backup of Bin folder before trying it out.

    Reference:

    http://forums.asp.net/t/1875376.aspx

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, December 5, 2013 10:14 AM

All replies

  • User-484054684 posted

    Just a thought:

    If DotNetOpenAuth.AspNet.xml is a physical file in your solution - then select this file in Visual Studio, Right Click, Click Properties, In the properties window, try changing the BuildAction as Content,  
    Copy to output directory as Copy always.

    You can read more about these properties and try changing the values based on your need: http://msdn.microsoft.com/en-us/library/vstudio/0c6xyb66(v=vs.100).aspx

    Thursday, December 5, 2013 10:07 AM
  • User-484054684 posted

    I've found another reference where clearing all the files from bin folder and Publish again works for a few!

    Caution: Make sure to take backup of Bin folder before trying it out.

    Reference:

    http://forums.asp.net/t/1875376.aspx

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, December 5, 2013 10:14 AM