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 9157815
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T13:06:38+00:00 2026-06-17T13:06:38+00:00

I cannot re-create the file if it is controlled by TFS. Steps to reproduce:

  • 0

I cannot re-create the file if it is controlled by TFS.

Steps to reproduce:

  • Create a new console app.
  • Add a new file: Class1.cs
  • Check-in entire solution to TFS.
  • Remove Class1.cs.
  • Create a Class1.cs again.

I get a message box with an error:

Check Out. The item <…> could not be found in your workspace, or you
do not have permission to access it.

File will be created, but there will be no TFS icon near it in the “Solution explorer”. And the file will still be marked as deleted in the “Pending changes”, not as updated.

So if I want to recreate the file, I have to

  • Remove the file
  • Check-in the changeset (which leads to broken CI-build)
  • Create the file.

The question is:
Is that by-design for local workspaces? Or is that just a bug, that will be fixed later? Or it’s just my local bug, and nobody can reproduce it on their machines?

P.S. I need to re-create some files, for example because there are some convenient VS-tools for creating WCF RIA Domain service classes (with all related metadata), but there are no tools to update them. And I don’t want to change the name of the domain service, otherwise I’ll have to update clients.

UPDATE:
I just tried to reproduce the bug on another PC.
File Class1.cs was successfully recreated and it was marked as “updated”.
There was no messagebox window, but there was the same message in the Output window:

The item <…> could not be found in your workspace, or you do not have permission to access it.

If I try to recreate EDMX-model then I still get a messagebox with that error, but files are successfully recognized as edited.
I don’t understand, what is the difference between these two PCs.

  • 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-06-17T13:06:39+00:00Added an answer on June 17, 2026 at 1:06 pm

    To Mr.Radwan.

    1. Thanks for your answer.
    2. Sorry for my English.
    3. I had the same settings in the Source Control options.
    4. I removed Update 1, repaired VS and reinstalled Update 1.
      Now everything works as expected.

      When I recreate a file, now I have a message in the output window instead of the dialog window. The file is marked as edited.
    5. Updating Edmx is different then recreating it from scratch. As far as I know, when you update it, EF keeps the changes you have made to the conceptual part.
      In some cases it’s easier to recreate the file, then cleaning it.
    6. We never stored *.generated.cs in TFS and other code that is generated automatically on each build. Anyway, thanks for your advice.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I cannot create Mongo varibale in JSP file: <%@ page language=java contentType=text/html; charset=ISO-8859-1 pageEncoding=ISO-8859-1%>
I cannot seem to write to a file. I create the file and directory
This post is incorrectly tagged 'send' since I cannot create new tags. I have
I'm developing an iPhone app which uses Facebook sharing. I cannot create the Facebook
Drupal cannot create the files folder. I tried to upload a php script with
How can I solve this problem Cannot Create Forms. No MDI forms are currently
I just want to understand why I cannot create a protected enum on C#?
I just upgraded from SnowLeapord to Lion and now cannot create virtualenvs. I understand
I am creating a database in SQL Server 2005 and cannot remember the CREATE
I cannot figure out why the following simple program doesn't (create) and then write

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.