A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/aspnet/Mvc/issues/6021 below:

Views embedded in class libraries raise missing compilation library exceptions on Azure · Issue #6021 · aspnet/Mvc · GitHub

Title

Loading a view embedded within a class library on Azure causes an exception about missing compilation libraries packages in the System.* or Microsoft.* namespace.

Functional impact

Exception.

Minimal repro steps

I've created a bare repo to reproduce the problem. I created an application and library through VS and did the minimum possible to get an embedded view into the library and display it in a partial on the home page. It should work fine if cloned and run within VS, but fail if deployed to Azure.

https://github.com/svallis/ClassViews

Expected result

Partial rendered correctly.

Actual result

Deployed to azure the test repo throws the following exception on the home page:

InvalidOperationException: Can not find compilation library location for package 'microsoft.codeanalysis.common'
Microsoft.Extensions.DependencyModel.CompilationLibrary.ResolveReferencePaths()

Navigating to the /Home/About page without an embedded partial works correctly.

On my full project I was receiving the same error but with a different package:

Can not find compilation library location for package 'system.data.sqlclient'

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4