I have an ASP.Net MVC3 Project which references System.Web.Helpers v2.0 and System.Web.WebPages v2.0 These both come with MVC4 and is part of razor2. However, my colleague doesn't have MVC4 installed, and doesn't have VS2012 installed, just vs2010 like myself. And his project compiles without the reference issue.
Visual Studio 2010 SP1 installed: Version 10.0.40219.1. SP1Rel
I recently installed Windows 8 on a new PC but our project requires vs2010 and can't run on vs2012.
This project was working fine on another PC which had vs2012 installed.
The new PC has:
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0 but not:
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v2.0
but my colleague has the latter folder and the v2.0 assemblies - without MVC4, and without vs2012 installed. How is this possible?
Download it from here, use nuget console :
https://www.nuget.org/packages/Microsoft.AspNet.WebPages/2.0.30506.0
How is this possible? --
After a lot of hit and miss, I found out that my colleague has Microsoft WebMatrix. This product when installed happens to implement razor v2 and installs the mentioned assemblies in the directory:
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v2.0
Related
While working on an ASP.NET MVC based application I bumped into this question that if the following assemblies be distributed freely with the ASP.NET MVC based application:
Microsoft.Web.Infrastructure.dll
System.Net.Http.Formatting.dll
System.Web.Helpers.dll
System.Web.Http.dll
System.Web.Http.WebHost.dll
System.Web.Mvc.dll
System.Web.Razor.dll
System.Web.WebPages.Deployment.dll
System.Web.WebPages.dll
System.Web.WebPages.Razor.dll
These assemblies are in my \bin folder.
The dlls mentioned above are licensed under Microsoft distribution policy.
http://www.microsoft.com/web/webpi/eula/aspnetmvc3update-eula.htm
The eula file you can find on the machine where you installed Visual Studio 2012. It’s for licensing of MVC4 assemblies:
C:\Program Files\Microsoft ASP.NET\ASP.NET MVC 4\eula.rtf
Hi all I installed vs 2010 and it should have asp.net mvc 2.0 but it didnt install it. I tried installing it manually but it still does not show under the new projects tab..but it shows installed in control panel. I had vs2010 rc1 before and uninstalled it and it had mvc 2.0 but now for some reason i dont have it! ..Can anyone please help me out...
MVC is published standalone. ASP.NET 4.0 is bundled with VStudio 2010, but you'll need to either download MVC 2.0 or install it using the Web Platform Installer
You're right. Sorry, I had a small brain-fart there. If the projects aren't showing up in the New->Project Dialog, that doesn't neccesarily mean MVC isn't installed, It may just be installed Incorrectly.
Are the assemblies registered in the GAC, you should check this. Also check your VS2010 configuration to see where it's pointing for it's project templates, and verify the files aren't there.
Check that the AddIn DLL is where it should be:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Microsoft.VisualStudio.Web.Mvc.2.0.dll
I just installed visual studio 2010 and upgraded my MVC project (which was running on MVC RC2 in visual studio 2008).
visual studio 2010 updated every project file to target the framework 4.0.
But the system.web.dll is pointing to
C:\Program Files (x86)\Microsoft
ASP.NET\ASP.NET MVC
2\Assemblies\System.Web.Mvc.dll
in VS2010 object browser, I have every dll showing up in multiple versions as expected (3.5.0.0 and 4.0.0.0) except for the System.Web.Mvc dll which doesn't show any version and points to the path I mentioned above.
Isn't this namespace point to the Framework folder like the System.Web namespace?
C:\Program Files (x86)\Reference
Assemblies\Microsoft\Framework.NETFramework\v4.0\System.Web.dll
MVC 2 uses the same binary for .NET 3.5 and .NET 4.0.
I installed MVC 1.0. Where's the System.Web.MVC dll so that I can use reflector to see how the helper methods are coded? I've looked in the bin folder of my ASP.NET MVC web app but it's not there. I am not quite sure where the MVC 1.0 installer installs the dll and how that wires up to the web.config of your MVC apps. Is System.Web.MVC installed in the GAC or something? If so, how the heck can I reflect over the assembly?
Mine was in C:\Program Files\Microsoft ASP.NET\ASP.NET MVC 1.0\Assemblies\System.Web.Mvc.dll.
Mine is at: C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 1.0\Assemblies
You can view the actual source code on-line at http://aspnetwebstack.codeplex.com/. Sometimes the version there lags the release, but it's usually pretty up-to-date. When I use Reflector, I just add the assembly from C:\Program Files\Microsoft ASP.NET\ASP.NET MVC 1.0\Assemblies.
If you're looking to reflect any DLL referenced by your project, just right click on the DLL under References in Project Explorer, click Properties, and it will tell you the exact path.
Looks like this has changed for VS2015/Windows10. Mine is under:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\Web\Razor\v3.0\MVC5.1
OR
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Stack 5\Packages\Microsoft.AspNet.Mvc.5.2.3\lib\net45
Scott says we need these 3 DLLs in our BIN folder:
1 - System.Web.Abstractions.dll,
2 - System.Web.Mvc.dll, and
3 - System.Web.Routing.dll
I installed the AspNetMVC1.msi on Windows 2008 x64 and found this file but the others seem to be missing in action. Any ideas?
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 1.0\Assemblies\System.Web.Mvc.dll and xml but the other 2 are hiding somewhere else?
The other files are part of SP1 of the .NET Framework.
They are in the directory C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\
They are also registerd with the gac when you install sp1.