Skip to content

When using MVC HTML Tag Helpers blank white page gets rendered #1446

@nbaua

Description

@nbaua

I am using VS 2015 CE.
Created a new MVC project with blank template and started adding the components one after another.
Created a single controller with only 3 views 'Home', 'About' and 'Contact'
It worked fine with normal HTML links mapped to the above views, however as a best practice when I tried adding Tag Helpers ( "Microsoft.AspNet.Mvc.TagHelpers": "6.0.0-beta8") and used them via _ViewImports.cshtml problem starts.

It does not render any of my views and simply shown a white blank page for all the actions.

I tried
<li><a controller="App" action="Index">Home</a></li>
as well as
<li><a asp-controller="App" asp-action="Index">Home</a></li>

but no luck. The following is my DNVM Listing

Active Version Runtime Architecture Location Alias

   1.0.0-beta5       clr     x64          C:\Users\Admin\.dnx\runtimes
   1.0.0-beta5       clr     x86          C:\Users\Admin\.dnx\runtimes
   1.0.0-beta5       coreclr x64          C:\Users\Admin\.dnx\runtimes
   1.0.0-beta5       coreclr x86          C:\Users\Admin\.dnx\runtimes
   1.0.0-beta8       clr     x86          C:\Users\Admin\.dnx\runtimes
   1.0.0-beta8       coreclr x86          C:\Users\Admin\.dnx\runtimes
   1.0.0-rc1-final   clr     x64          C:\Users\Admin\.dnx\runtimes
   1.0.0-rc1-final   clr     x86          C:\Users\Admin\.dnx\runtimes
   1.0.0-rc1-final   coreclr x64          C:\Users\Admin\.dnx\runtimes
   1.0.0-rc1-final   coreclr x86          C:\Users\Admin\.dnx\runtimes
   1.0.0-rc1-update1 clr     x86          C:\Users\Admin\.dnx\runtimes
  *1.0.0-rc1-update2 clr     x86          C:\Users\Admin\.dnx\runtimes default, latest, list
   1.0.0-rc1-update2 coreclr x86          C:\Users\Admin\.dnx\runtimes

Please suggest a fix ASAP.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions