c# - Getting Error 500 after adding taghelper -
i studying mvc 6. going ok, after adding taghelper in _viewimports.cshtml app stopped.
these dependencies:
"dependencies": { "microsoft.aspnetcore.mvc": "1.0.0-rc2-final", "microsoft.aspnetcore.server.iisintegration": "1.0.0-rc2-final", "microsoft.aspnetcore.server.kestrel": "1.0.0-rc2-final", "microsoft.aspnetcore.staticfiles": "1.0.0-rc2-final", "microsoft.aspnet.mvc.taghelpers": "6.0.0-rc1-final", "microsoft.aspnetcore.diagnostics": "1.0.0-rc2-final" },
i added line:
@addtaghelper "*, microsoft.aspnet.mvc.taghelpers"
and getting error:
cannot resolve taghelper containing assembly 'microsoft.aspnet.mvc.taghelpers'. error: not load type 'microsoft.extensions.logging.ilogvalues' assembly 'microsoft.extensions.logging.abstractions, version=1.0.0.0, culture=neutral, publickeytoken=adb9793829ddae60'. @addtaghelper "*, microsoft.aspnet.mvc.taghelpers"
any suggestions ? not find related same message.
i having same issue. looks assembly part has changed in rc2. fixed changing from:
@addtaghelper "*, microsoft.aspnet.mvc.taghelpers"
to:
@addtaghelper *, microsoft.aspnetcore.mvc.taghelpers
Comments
Post a Comment