Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Unable to resolve service for type 'Microsoft.Extensions.PlatformAbstractions.ApplicationEnvironment'

$
0
0

In RC1, i'm using the following link action to display the corresponding source file content.

<a href="/Employee?file=Views\Accounts\default.cshtml" class="e-link">Default</a><a href="/Employee?file=Views\Accounts\Banking.cshtml" class="e-link">Accounts</a>

In recent RC2 update, when i'm click the same link will throws the error like as below

InvalidOperationException: Unable to resolve service for type 'Microsoft.Extensions.PlatformAbstractions.ApplicationEnvironment' while attempting to activate 'EDataCom.Controllers.EmployeeController'.
Microsoft.Extensions.Internal.ActivatorUtilities.GetService(IServiceProvider sp, Type type, Type requiredBy, Boolean isDefaultParameterRequired)

If there is any steps i need to resolve this one?

Greetings... 
Manikandan


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>