Blazor Application stuck "Loading..." in UWP WebView - xamarin.forms

I am trying to display a Blazor application (The default Blazor template, hosted on a server) in a Xamarin Forms UWP WebView however it gets stuck "Loading...".
If I debug the UWP application (attaching to Script) I get the following exceptions thorwn:
JavaScript critical error at line 1, column 716 in https://localhost:7131/_framework/blazor.webassembly.js\n\nSCRIPT1002: Syntax error.
JavaScript critical error at line 99, column 13 in https://localhost:7131/_framework/aspnetcore-browser-refresh.js\n\nSCRIPT1005: Expected '('
Exception was thrown at line 38, column 60610 in https://localhost:44399/c9828a2102ba4dafa1d62c9962b407b5/browserLink
0x800a139e - JavaScript runtime error: SyntaxError

Related

Service worker error in Blazor Web Assembly

I have used Service-worker in Blazor web assembly to make as "PWA" .It works fine as per requirement but I am getting "Uncaught (in promise) ReferenceError: isHtmlRequest is not defined" in browser console.Please check this screenshot and advise where it is problem.
Note:-
I am using .Net 6.0

IIS Blazor JS Error CircuitOptions.DetailedError

I have a problem with deployment of my project on IIS.
In visual studio 2019 everything work properly but when i send it to server, blazor part stop working.
I received Error from web browers:
Error: There was an unhandled exception on the current circuit, so this circuit will be terminated. For more details turn on detailed exceptions by setting 'DetailedErrors: true' in 'appSettings.Development.json' or set 'CircuitOptions.DetailedErrors'.
blazor.server.js:1 DELETE http://webserver/_blazor?id=fR_6PmknQXUvrw2NAbvt2g 405 (Method Not Allowed)
Error: HttpConnection.transport.stop() threw error 'Error: Method Not Allowed'.
I am little confused.
Project is asp.net MVC .net Core 3.
OK, I finded solution.
I instaled Http Activation for .net Framework 3.5.

How to prevent Winform popup box CefSharp.BrowserSubprocess.exe Breakpoint A has been reached?

I include CEFSharp 73 using nuget in my Winforms C# 4.5.2 application. Occasionally a message box pops up with the title CefSharp.BrowserSubprocess.exe and the content Breakpoint A breakpoint has been reached. What should I do to prevent this message from popping?
I'm updating my winforms app from CEF 55 to CEF 73. I tried to get CEFSHarp crash dumps by adding crash_reporter.cfg file to the working folder of my executable, but I didn't get any dump files. Also, there are no error messages in debug.log.

How prevent CefSharp crash from killing my main Application on Winforms

I have a simple Winforms application.
I've added a ChromiumWebBrowser control on my Form and I'm navigating on various pages.
For unknown reasons, an exception is thrown from Chromium which causes my app to crash
CefSharp.BrowserSubprocess.exe Description: The process was terminated
due to an unhandled exception.)
Is there a way for me to somehow handle that error so my app doesn't crash?
(and maybe reload the current page)

IL Rewrite to mscorlib crashing w3wp.exe

I have built the IL Rewriter to monitor any file is being opened in ASP.Net WebApp. To do so, I am rewriting IL for a private method called 'Init' in FileStream class in mscorlib. Here, I inject the epilogue/prologue to register a custom callback.
Injection is working fine. Custom callbacks are also getting called whenever a file is getting opened in Windows Application.
But, when I do the same for ASP.Net web application, it keeps crashing with the following error -
System.ExecutionEngineException was unhandled
Message: An unhandled exception of type 'System.ExecutionEngineException' occurred in System.Web.dll
I don't understand if it is working fine with .Net-based Desktop Application, then why it does not work with .Net-based web application i.e. ASP.Net. What is the difference between Web and desktop application?
Googled for above error does not yield any solution :(

Resources