I just got the Visual Studio 2012 RC Ultimate and I'm trying to connect to a database using EntityFramework Database First. I've created the EDMX file like I've done a thousand times and when I build my project I get 2 errors. I'm not sure if they are related or not.
Encountered an error hydrating the EDMX file 'Model.edmx'.
Could not load file or assembly 'Microsoft.Data.Tools.Schema.Sql, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
I've spent several hours on Google trying to see if anyone else has had this issue and I'm not finding anything at all.
Any help would be great. Thanks
close all instances of Visual Studio
delete the file C:\Program Files
(x86)\MSBuild\4.0\Microsoft.Common.targets\ImportAfterMicrosoft.Data.Tools.Integration.targets
restart Visual Studio & rebuild solution
i hope this saves someone a lot of trouble like it could have for me -ck
update:
apparently this is only an issue if you installed VS2012RC over the top of VS2012 Developer Preview, as something was removed / renamed and that file remains from the old install and wreaks havoc...
Big thanks to divega about pointing me in the right direction with his answer on this post
EntityHydrate task failed
Look for his answer there, just simply remove this file and everything works perfectly
C:\Program Files (x86)\MSbuild\4.0\Microsoft.Common.Targets\ImportAfter\Microsoft.Data.Tools.Integration.targets
FIY
Renaming the file does not work.
Deleting it solved my problem.
One more thing: The problem occured on my 32bit W7 box only. On my 64bit W7 box everything works fine
Big thanks for the quick answer, I can continue working again.
We are trying to identify an exact repro for this issue in case this helps us getting a fix in the setup of Visual Studio 2012 RTM. I need information about the exact configurations and sequence of installation of preview and beta software previous to RC from someone that was able to repro this.
Related
When I try to create a new Windows Forms project, I get the " ....csproj cannot be opened because its project type (.csproj) is not supported by this version of the application" error. The .csproj file it is referring to is in AppData\Local\temp\randomname\Applicationname.csproj but that file does not actually get created.
I know that when this error crops up with opening projects created in previous versions, it's usually a missing library that is used by that particular project but for the life of me, I cannot figure out what library I could be missing here as it is a new project.
I have VS 2013 Ultimate installed with all components.
Running on Windows 8.1.
First confirm it is not a add-on or a problem with Visual Studio itself.
Try and start Visual Studio from the command line with devenv.exe /resetskippkgs and also try disable any IDE extensions temporarily to see if one of them might be stepping on something. Do these two things first to see if the problem lies with VS IDE. Of course try creating a project after you have done these two things and see if you get the same results.
I never figured out what the actual problem was but I've installed Update 5 which was only released less than two weeks ago and it's working fine now.
I have really tried to find an answer to this.
All of sudden one of my projects are acting really strange. All references to local stuff in the same project are not resolved bu Visual Studio. All other references to .Net Framework and to my other assemblies works fine.
ps. I know platform is spelled with one t :D
And as i said it the title. I do not get any errors or anything when i build the project.
I think this has happened before. Not 100% sure how i fixed it then thou.
I shall also mention that it seems to work on my second machine with the exact same code.
I can't remember anything in particular that i did when i noticed it.
What i've tried
Restart both computer and VS.
Removed /obj and /bin folders
Tried to fix all warnings and stuff that Visual Studio.
So how does this "design time" resolving works? What files does it use? Is there any log or anything? Anyone have any good ideas on how to solve it?
I just unloaded, edited the .csproj file and it worked right away. Thanks Carcigenicate!
I am new to web development, and have been having a considerable amount of trouble trying to get my asp.net project running using Visual Studio 2010. Please help.
I am working on a web development project that references a database using SQL 2008 R2. I was having problems with turning on/off features on my computer, the asp.net and .net features, etc. I would get an error that read "An error has occurred. Not all of the features were successfully changed." I tried several solutions to fix this, and none worked. I ended up using a cleanup tool I found online, it said use as a last resort, which is where I was at.
Here is the link:
http://cid-27e6a35d1a492af7.skydrive.live.com/self.aspx/Blog_Tools/dotnetfx_cleanup_tool.zip
This ended up fixing my problems with the features, but then I was not able to use Visual Studio 2010. I got an error "Cannot create the window". To fix this I ended up reinstalling Visual Studio 2010. Now I am again running into the problem where I cannot turn on the asp.net and .net features with the same error as before.
Now that is not my only problem, I cannot open my project solution file. It is giving me 2 errors when i open the .sln file "The selected file is a solution file, but was created by a newer version of the application and cannot be opened." and "The system cannot find the file specified." in that order. The .sln file says it is an unrecognized version.
I have previously worked on this project using Visual Studio 2010, before I tried to fix the problems with the features. I can still open other .sln files that I worked on before, but they do not reference outside sources. I have tried opening the .sln file in notepad and changing the version from 12.00 to 11.00 (on line 1) and changing #Visual Studio 2012 to #Visual Studio 2010 (on line 2). I need to work on this project as soon as possible. Any help would be great.
Will someone help me identify the problem?
How can this problem be fixed?
You don't necessarily have to use an existing solution. A solution file just references a bunch of projects and groups them together.
I would suggest you create a new blank solution and then add all of your existing projects into that one, assuming you don't have a similar issue with adding in the projects as well.
I am getting the notorious "Error C1902: Program database manager mismatch; please check your installation" in my VC++ builds in Visual Studio 2010. My VS will not even build hello world, there is no pdb file even in existence in the folder.
Steps I have tried:
cleaning and rebuilding (3 different projects including hello world, about 15 times)
removing every single instance of Visual Studio before version 2010 from the computer including all redistributables. There is no copy of mspdb*.dll on my computer anywhere except the latest version (100) in my 2010 directory.
Reinstalling 2010. I completely reinstalled VS 2010. No effect.
Rebooting my computer. I have spent the afternoon deleting anything that might be remotely related to this bug and rebooting over and over again.
I solved the problem by finding an obscure post to a similar thread created a couple of years ago on a different forum. Here is the solution:
Copy the file mspdbsrv.exe from the VisualStudio/Common7/IDE directory to the /VC/bin directory.
cyglas-config solved the problem on my build system. Is seems that Vs2010+ needs this but vs2008 didnt.
I have seen this caused by two projects sharing an intermediate directory.
Make your your VS2010 is running under administrator and have the right permission.
Our IT deployed a tool for blocking access to several "ports", it turned out all my VC project cannot build in VS2010. He then re-deployed the tool with "allow elevated program access blocked 'ports'" checked and everything is back to normal.
Verify local user account if ran under automation is not locked. this turned out to be a resolution for issue I had seen with "fatal error C1902: Program database manager mismatch; please check your installation" message.
I had the same error, and the problem was that the "mspdbcore.dll" file was deleted from my \Microsoft Visual Studio 12.0\Common7\IDE\ folder. This post helped me solving my issue.
PS:The deletion was made by a "duplicate files cleaner" utility.
We've just recently switched to VS 2010 and i had a solution that was working fine. This moring when i try to load the solution i get the error:
"An item with the same key has already been added."
This occurs when it is trying to load one of our main projects and it is not loaded.
I assumed the problem was with my solution so i created a brand new empty solution and tried to load the same vcxproj and got exactly the same error.
When i revert the project file to a previous version it works, so apparently it's something in the vcxproj file. However it also appears that i'm the only one in the office that is affected. So some combination of the vcxproj file and my computer seems to be the issue.
Has anyone seen anything like this before? Any ideas on a solution?
Thanks
Still not sure what caused the issue however deleting all temporary files:
<proj>.vcxproj.user
<proj>.vcxproj.filters
<proj>.vcproj.<domainname???>.<username>.user
<proj>.suo
has fixed the problem.
I suspect it was just
<proj>.vcxproj.user
<proj>.vcxproj.filters
or both that actually fixed it but I did delete all 4 so it could have been any of them.
The change to the vcxproj file that casued the break was renaming some files and adding some files, so my guess is that one of the generated files had a stale reference that was blocking the load.
If you figure out how to get the message again, maybe you could open a bug at https://connect.microsoft.com/ and attach the zipped up .vcxproj and *.sln files so we can fix it.
Dan [msbuild]
i had same probleb do the following thing in windows explorer
Based on my understanding, you will get the same error even when you create every simple Visual C++ windows phone project from VS2012. In this case, I doubt that the issue is related to your VS.
And according to Konrad’s reply in this thread with similar issues: http://social.msdn.microsoft.com/Forums/en-US/cba01040-067e-4ac3-ba4c-a8a14ba3c45d/unable-to-read-the-project-file, I feel that you can check if this file: C:\Program Files(x86)\MSBuild\Microsoft\WindowsPhone\v7.0\Microsoft.Cpp.Windows Phone.7.0.targets is on your system. If it is not there, I doubt that your VS installation is wrong.
If you are not using VS Express, you could locate to the IDE folder then run these commands to check if it can help:
Please open Windows Explorer, and navigate to <Visual Studio Installation Path>\Common7\IDE
Devenv.exe /SafeMode: Launches the IDE in safe mode loading minimal windows.
Devenv.exe /ResetSettings: Restores the IDE's default settings, optionally resets to the specified VSSettings file.
Devenv.exe /ResetAddin: Removes commands and command UI associated with the specified Add-in.
Devenv.exe /ResetSkipPkgs: Clears all SkipLoading tags added to VSPackages.
If no help, I suggest you try repairing your VS or uninstall it and then reinstall it.