-
Notifications
You must be signed in to change notification settings - Fork 55
[Bug] Blazor is trying to connect to WS blazor server error gets fired in console. #182
Comments
I didn't had this error with my tests. Otherwise, can you send a repro project ? |
I will try your suggestion above right now! |
hmm doesn't seems to work I will take a deeper look to se if I can see whats wrong if no succeed I share a solution with the error. |
Otherwise send me a repro project |
I had made some extensive test with a template project from scratch i don't had any issue. My test:
I wanted to do a remote debug session with UWP for the test, so:
To me there is no problem with the default template. What was your configuration while testing ? What were you debugging ? |
Also it's weird, you neither have css or else, and the WebSocket URI that should be present by default seems to return nothing in your case. Does your Program.cs file look like this ? using BlazorMobile.Common;
using BlazorMobile.Common.Services;
using myapp.Blazor.Helpers;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Threading.Tasks;
namespace myapp.Blazor
{
public class Program
{
public static async Task Main(string[] args)
{
var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.Services.AddBaseAddressHttpClient();
#region Services registration
ServicesHelper.ConfigureCommonServices(builder.Services);
#endregion
#region DEBUG
//Only if you want to test WebAssembly with remote debugging from a dev machine
BlazorMobileService.EnableClientToDeviceRemoteDebugging("127.0.0.1", 8888);
#endregion
BlazorMobileService.Init((bool success) =>
{
Console.WriteLine($"Initialization success: {success}");
Console.WriteLine("Device is: " + BlazorDevice.RuntimePlatform);
});
builder.RootComponents.Add<MobileApp>("app");
await builder.Build().RunAsync();
}
}
} |
This comment has been minimized.
This comment has been minimized.
Answered in #193 |
I run myapp.blazor and this error gets fired in the console
I run myapp.blazor.server and css aren't getting loaded as well the same errors are being fired.
The text was updated successfully, but these errors were encountered: