When I added the "old libraries" to the new ASP.NET, I get Internal Server 500. With some errors in IISExpress. In particular, with System.Reflection.ReflectionTypeLoadException: it is not possible to load one or more of the requested types. Get the LoaderExceptions property for more information.
After researching and some internal debugging with DNX, we finally found the source of the failure.
The node with the display name "System.Web.Mvc" did not load in the "Anonymous" context of the AppDomain binding with identifier 1. The reason for the failure was: System.IO.FileNotFoundException: Failed to load the file or assembly System.Web.Mvc, Version = 5.2. 3.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35 'or one of its dependencies. The system cannot find the specified file.
As the "old" libraries used and older than MVC. I updated my libraries after sending the following command:
Installation Package Microsoft.AspNet.WebApi.Core -version 5.2.3
With the following conclusion:
If the libraries you are trying to use in ASP.NET vNext are dependent on MVC version 5.2.3 or later, you cannot use it in the new structure.
source share