Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Blazor (Server Side) displays blank page #1411
I've seen similar issues for older versions, but I think this is a different one since it only seems to affect the server side project, the client side project seems to work correctly.
I followed the setup instructions from https://blazor.net/docs/get-started.html
When clicking new project & selecting the server side project it shows the loading screen and then a blank page. There are no errors in the console.
I had to make just 1 change other than the File -> New Project. Once the project was created, I went into the Server project Properties -> Debug -> Enable SSL. This was to get rid of the error in chrome about the site can't provide a secure connection.
We've recently fixed some issues with VS15.8, so it's likely your issue will go away as part of the 0.6.0 release. In the meantime with 0.5.1 I'd recommend using VS15.7.
Since the first opportunity we have to make further changes is the 0.6.0 release, and since we'll certainly verify the VS15.8+.NET Core 2.1.4xx combo as part of 0.6.0 verification, I might as well close this (any action it prompts is action we're going to take anyway).
If for some reason you think your issue might be more unique in any way, please let us know so we can reopen. Thanks for reporting it!
@samuelcavendish You may be hitting the issue with the global.json file that we include in the project templates. It pins the SDK version to 2.1.3xx. If you don't have a .NET Core SDK installed with that specific version range then the project may fail to load or run. Can you try either removing the global.json file or installing .NET Core SDK version 2.1.302 and see if that helps?
Im having a similar problem trying to convert the FlightFinder example over to server-side.
I can build a server-side Blazor project starting form the templates and it runs fine. Just not sure about converting.
However, everything builds fine, but when the browser loads, i just get a blank screen, with no error messages. The dev console indicates that the websocket plumbing seems to be working ok.
Maybe I'll start with a client-side app i build myself and convert that.
VS 2017, build version 15.9.3
My .net core versions are:
Was following the same sort of steps here