Share via

VS 2008 Permissionbs Issue

Jeff Gaines 371 Reputation points
2022-12-24T15:30:57.517+00:00

I am using VS2008 on Windows 8.1 Pro and have recently moved all my data to a Win 10 Pro machine, as I use it from several machines of different types in the house. All my apps so far seem to work except VS2008 which was fine at first but now has major permissions problems, VS was unable to delete files then unable to write files so I had to close VS and delete files manually then restart VS.

Then I accidentally clicked somewhere that unloaded the project. I managed to re-load it and it has lost all references to the various dll's (see screenshot).

I changed the Target Framework from Net 3.5 to Net 2 and all the references came back except a couple (which I deleted) and it builds so they can't have been important. However, if I change the the Target Framework back to 3.5 it loses all the references again.

If I try to build under 3.5 I get:

Error 2 The "EntityClean" task could not be instantiated from the assembly "C:\Windows\Microsoft.NET\Framework\v3.5\Microsoft.Data.Entity.Build.Tasks.dll". Please verify the task assembly has been built using the same version of the Microsoft.Build.Framework assembly as the one installed on your computer and that your host application is not missing a binding redirect for Microsoft.Build.Framework. Unable to cast object of type 'Microsoft.Data.Entity.Build.Tasks.EntityClean' to type 'Microsoft.Build.Framework.ITask'.

Error 3 The "EntityClean" task has been declared or used incorrectly, or failed during construction. Check the spelling of the task name and the assembly name.

Is what I am trying to do feasible, i.e.data centrally with VS installed on a different machine? It seems to me this must be a fairly common arrangement in a business environment.

I there a way out of the 3.5 issue? I tried to repair VS2008 but it wants the original CDs and won't use the directory where they were copied to (it is legitimate, it's from when I was a MSDN subscriber). I have them in a cupboard but if it won't work with data on a separate machine it's not worth doing.

Suggestions appreciated!

273804-lost-dll.png

Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other

A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.

{count} votes

2 answers

Sort by: Most helpful
  1. Jeff Gaines 371 Reputation points
    2023-01-01T14:00:08.987+00:00

    Success!!!

    It was a permissions issue, running the following has fixed it:

    ICACLS * /T /Q /C /RESET


  2. Jeff Gaines 371 Reputation points
    2023-01-01T12:31:36.04+00:00

    To add to the confusion I have tried to rename the directory so I can copy my backup over to see if it resolves the permissions issue, I got:

    1) You need administrator permission to rename the directory - press OK.

    then

    2) You need permission from Z620\jeff to rename the directory - I am Z620\jeff

    This is in Win 10 and I am beginning to think that is the cause of the problem, I have never had an issue like this on Win 8.1.

    The permissions on the directory are that everybody has full control.

    I have no idea what to try next.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.