Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
nbaua opened this issue May 16, 2016 · 5 comments
Closed

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

nbaua opened this issue May 16, 2016 · 5 comments

Comments

@nbaua
Copy link

nbaua commented May 16, 2016

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.

@dougbu
Copy link
Contributor

dougbu commented May 16, 2016

Sounds like the server is returning a non-2xx status. Please check the F12 console in your browser. I think some browsers also have right-click Properties that should show the HTTP status code.

@MaximRouiller
Copy link

"Microsoft.AspNet.Mvc.TagHelpers": "6.0.0-beta8"

Are you trying to run a beta8 package on an rc1-update2 runtime? That can't end well.

@muratg
Copy link
Contributor

muratg commented May 17, 2016

@nbaua RC2 was released today, so I recommend moving to it as soon as you can. If you can't, @MaximRouiller's right, just use RC1 version of the packages with your app, otherwise who knows what can go wrong.

@nbaua
Copy link
Author

nbaua commented May 17, 2016

@MaximRouiller and @muratg The VS2015 suggests everything to the latest and I also ran in to it, Thanks for pointing out, I'll switch to the RC1.

@dougbu , I already checked via developer tools in chrome, there is no error on console, and that's why I dared to post this as an issue, thanks anyways for pointing out that :).

Thank you guys, I don't know yet if I'll be able to test it today, however I'll check it soon and try to close the issue if your kind suggestions works. Thanks again.

@nbaua
Copy link
Author

nbaua commented May 17, 2016

I switched back to the RC1 and also updated my project.json file accordingly.
Also restored "Microsoft.AspNet.Tooling.Razor" to "1.0.0-rc1-final"

And it worked like charm.
Thank you guys for pointing out correctly.

N Baua

@nbaua nbaua closed this as completed May 17, 2016
@ghost ghost locked as resolved and limited conversation to collaborators Dec 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants