I have an ASP.Net 5 MVC 6 project that uses several non-DNX class libraries. These libs are wrapped via dnu wrap, and all works find on IIS Express or self-hosted app. However on IIS 8 it shows error
Failed to resolve the following dependencies for target framework 'DNX,Version=v4.5.1': list of my projects
Current runtime target framework: 'DNX,Version=v4.5.1 (dnx451)' Version: 1.0.0-beta7-15532 Type: CLR Architecture: x64 OS Name: Windows OS Version: 6.3.9600.0
The same error if I use dnx 4.6 (I just downgraded to see if it works with 4.5.1).
However the libs can be found in the following location: approot\packages\ with correct nuget package structure (dnu publish packed them)
So how do I help IIS find my libs?
Steps to reproduce:
Create solution with 2 projects: New ASP.Net MVC application and usual class library (not package)
Wrap class library via dnu wrap
Reference class library from MVC
Publish web application (if publish from Visual Studio does not work, use dnu publish --runtime active)
Create web site in IIS and point it to the wwwroot folder of published web app
UPDATE: Turned out that the problem is not in IIS itself, but in DNX. I get the same error if I publish web site and then run it via Microsoft.AspNet.Server.WebListener. Looks like dnu publish is not working properly with wrapped projects.
However this is not the case when running Windows Service. I have a console app (package) that references the same libraries, I publish it with --no-source and then install it as windows service via sc.exe and it all works as expected.
DNX
Version 4.5.1? – Luke