Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6963967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:51:49+00:00 2026-05-27T15:51:49+00:00

I keep getting this insane error which makes me think VS has gone stupid

  • 0

I keep getting this insane error which makes me think VS has gone stupid rather than wiser.

Error 1 Copying file Content\Images\Brands\Lenovo.png to obj\Debug\Package\PackageTmp\Content\Images\Brands\Lenovo.png failed. Could not find file ‘Content\Images\Brands\Lenovo.png’. 0 0 PriceCompare

The error is produced when i try to publish to file system. It’s stupid that VS is looking for a file which i deleted myself and it doesn’t reside in the solution now.

Earlier too i was deleting and adding files but suddenly today the publish command has started giving errors.

In many of the other posts, i have seen people asking to open the .csproj file with notepad and remove the references to the deleted files manually. This seems very daunting as i have deleted a long list of files and added a lot of new ones.

Is there an easier way to get rid of this problem or i need to manually remove the references to deleted file. Can’t i just delete the obj folder or empty the bin directory or clean solution or something.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T15:51:49+00:00Added an answer on May 27, 2026 at 3:51 pm

    You need to tell Visual Studio that you deleted the files.

    Go to the project/solution folder where the files existed and remove them there.

    Visual Studio assumes that since you added the file originally, it should be published. It can’t assume that you don’t want it just because it isn’t in the filesystem. Think about using source control in a team – the file may only exist in one persons’s machine, but still be needed.

    This is not a difficult as you think – the files that can not be found have a semi-transparent look to them, easy enough to select these and bulk delete in Visual Studio. You can also set the project properties to display all files then select all the ones that need to be part of the project and add them in a single operation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I keep getting this error when I try and run this script. It has
I keep getting this error after my code has run between 5-10 min CallbackOnCollectedDelegate
I keep getting this error: Result consisted of more than one row I have
Keep getting this error after inserting a subdatasheet into a query and trying to
I keep getting this error System.Web.HttpException was unhandled by user code Message=Validation of viewstate
I keep getting this error when I try to commit a group of executed
I keep getting this error when I try to call Find() public void findTxt(string
I keep getting this error all over the place where I only have jquery
I keep getting this error whenever I call gethostbyname() in my C code. ==7983==
I keep getting this error, although the file still gets moved into the correct

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.