I was working on a project when .NET Framework 3.5 SP1 was released. I installed the SP on the machine I was using to develop the project. Since then any new builds that I have created give an error when I try to install/run the application:
Unable to install or run the application. The application requires that assembly System.data.entity version 126.96.36.199 be installed in the Global Assembly Cache (GAC) first. Please contact your administrator.
I have tried requiring both .NET Framework 3.5 and .NET Framework 3.5 SP1 in the publishing options, recently I added the reference to System.Data.Entity to the project and specified it as...Copy Local True. I still cannot install the project. I am getting this error on multiple computers runing Windows XP (SP2 and SP3). I have not had a chance to install it on Windows Vista.
Most likely this is happening because you inadvertently added a dependency to the 3.5 SP1 ClickOnce feature set to your application. There was a thread about this recently on these forums: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=3803893&SiteID=1
Also, you might want to see a blog entry about what to look for and avoid: http://blogs.msdn.com/mwade/archive/2008/08/29/what-s-new-in-visuall-studio-2008-sp1-clickonce-tooling.aspx
You will need to remove the reference to System.Data.Entity.dll to have any chance of this working.