Last post Jun 02, 2016 07:43 PM by Manikandan_05
Jun 02, 2016 06:52 PM|Manikandan_05|LINK
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?
Jun 02, 2016 06:59 PM|mithunvp|LINK
Can you post your project.json? It will help in fixing it.
Jun 02, 2016 07:43 PM|Manikandan_05|LINK
Hi @Mithunvp, Thanks for your valuable suggestion.
I got the solution from the following link.
I made mistake in, unavailable injecting way followed in RC2. After read this above post rectify my issues,