I'm getting a strange error from my VisualStudio 2008 installation in Windows 7 and I wonder whether anyone knows how to fix that:
Unable to read the project file
"cs.proj". Could not load file or
assembly Microsoft.Build.Engine,
Version=3.5.0.0, Culture=neutral,
[...] System cannot find the file
specified.
`
I checked: .Net 3.5 is installed. So does anyone know what that means?
Thanks ;)
Try running gacutil -l to check if the MSBuild assemblies are installed
I found a thread on social.msdn.microsoft.com, http://social.msdn.microsoft.com/Forums/en/vssetup/thread/59fa45ee-ac51-4325-83fa-26389a33c22f
Iе offers that the .NET install might be corrupted and suggests uninstall .NET and do a full 3.5 SP1 install.
My IT department did a windows update and it interrupted my VS install with the "MSBuild assembly not found", and I have to wait for them to fix it because I don't have install rights.
Let me know if this works.
Related
I am trying to install IIS on my Windows 10 machine, but keep getting this error:
Windows couldn't complete the requested changes.
The system could not find the file specified.
Error code 0x80070002
Any help would be greatly appreciated.
I think this error may be caused by the .net framework, you can try to run the following command:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -r
Or you can run one of the repair utilities supplied by Microsoft:
Microsoft .NET Framework Repair Tool
If you do not have the correct framework, you can download version at the following links:
Download .NET Framework
Once installed, try to install the IIS features again.
Microsoft Visual Studio
Could not load file or assembly 'Microsoft.WindowsAzure.Storage.Emulator.Controller, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
OK
http://social.msdn.microsoft.com/Forums/en-US/2644640f-f473-4d63-aa6a-4077714d0461/caquietexec-error-cannot-create-database?forum=windowsazuredata
sqllocaldb stop v11.0
sqllocaldb delete v11.0
delete C:\Users\MyAccount\WAStorageEmulatorDb30*.*
sqllocaldb create v11.0
I have found that this is due to the Windows Azure Storage Emulator not being properly installed. Normally this is installed as a dependency when you are installing the Windows Azure SDK for .NET.
Try reinstalling the SDK (which can be obtained from here). In my case, the install for the Storage Emulator failed because it was already running. A reboot may be necessary before reinstalling.
I formatted my system recently and installed windows 7. so i installed all software again. when after i installed VS it is working fine only. but when i am build / publish it is showing an error. how to resolve this issue?
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360,9):
Warning MSB3245: Could not resolve this reference. Could not locate
the assembly "System.Web.WebPages, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL". Check to
make sure the assembly exists on disk. If this reference is required
by your code, you may get compilation errors.
Is i have to install something ah? please instruct me?
Check if the "System.Web.WebPages" dll is available in the solution/project references. If not add it (the required version). clean solution, build again. Publish.
Hope this helps.
Visual Studio 2012 question:
Recently installed 2012 (2010 was on here already) ... downloaded project from TFS ... went to run the project and it needed EntityFramework ... Installed EntityFramework from NuGet ...
Here's the problem: now it is throwing an error:
Could not load file or assembly 'EntityFramework, Version=4.1.0.0,
Culture=neutral, PublicKeyToken=...' or one of its dependencies. The
located assembly's manifest definition does not match the assembly
reference. (Exception from HRESULT: 0x80131040)
With this error, we searched and found that a way to get this resolved would be to clear the instance from the GAC. I went to clear the GAC from the Visual Studio Command Prompt (which, BTW, it only came up with the 2010 command prompt) using the command:
gacutil /u "EntityFramework ..."
Which returned:
No assemblies found matching: EntityFramework
Number of assemblies uninstalled = 0
Number of failures = 0
So I was wondering if anyone may have encountered this issue and found a solution -or- if someone may have a solution to the overall problem. Thanks!
It looks like something has hard-coded a reference to EntityFramework version 4.1.
EntityFramework (according to nuget) is currently on version 5 (although I believe that the assembly version number is 4.4.0.0).
To get round this you can either install a specific version of the package (see here) or use assembly binding redirection to force it to use a later version (an example of which is shown here).
I followed this:
http://msdn.microsoft.com/en-us/library/aa559881.aspx
But the dll I was trying to uninstall was "stuck".
Which led me to this:
http://support.microsoft.com/kb/873195
I removed the registry entry.
The gacutil /u now worked.
And the error went away.
After I did the registry tweak, my full uninstall looked like this:
"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\gacutil.exe" /u "EntityFramework,Version=4.1.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
From the docs it should be possible. I built it on VS 2008 myself - so the source (Sep 8 Master) is okay.
I'm trying to build it now with VS Express Edition on this machine. Installed 4.0 Framework Beta 1. Open the Ruby.sln file ; the IDE won't open any of the .csproj files in the solution
Unable to read project file '<something>.csproj
Path to Framework\v4.0..\Microsoft.Common.Targets(2893,9): The attribute "Keep Duplicate Outputs" in element <Target> is unrecognized.
I tried to remove the offending attribute from the above file. The csproj files then load but result in build errors of the form
Error 54 The "Microsoft.Build.Tasks.Message" task could not be loaded from the assembly Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. Could not load file or assembly 'Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, and that the assembly and all its dependencies are available. IronRuby.Tests
You can't build 4.0 projects with 2008
For that you need 2010 beta1 (it's a free download)
Or you need to install .NET 3.5 on your machine and try again with 2008. That does work for me but I don't have an express edition.
Also I generally tend to build using Rake (i don't have to open a visual studio session for that).
to do that (build with rake) do the following
download the ruby 1.8 installer from ruby-lang.org
install ruby 1.8
gem install pathname2
make sure you have .NET 3.5 and the windows SDK (resgen.exe and csc.exe) must both exist on your system and their paths have to be added to the %PATH% variable.
set %MERLIN_ROOT% = C:\path\to\ironruby_clone\Merlin\Main
build a debug version
rake compile
build a release version
rake compile configuration=release
to include the ironpython binaries in your release build too.
rake compile:all configuration=release