SteveSandersonMS / WebWindow

.NET Core library to open native OS windows containing web UI on Windows, Mac, and Linux. Experimental.
Apache License 2.0
1.99k stars 215 forks source link

simple run Error #112

Open DavidDXY opened 4 years ago

DavidDXY commented 4 years ago

when the app load the html url ,throw this error: System.AccessViolationException:“Attempted to read or write protected memory. This is often an indication that other memory is corrupt.”

nmocruz commented 4 years ago

I have this one to.

nmocruz commented 4 years ago

@DavidDXY I solved it on the samples just changing the target to x64. I have also installed the Edge Chromium beta, not sure if any other dependency was important.

DapperDeer commented 3 years ago

I believe that this is being caused by a missing file: blazor.desktop.js which is what wwwroot/index.html is trying to call, but there is no js file associated with the sample. I'm not sure if it's supposed to be generated during build, but I do believe this is what's causing the error.

Edit: Nope, I'm incorrect. Removing the line still comes up with the memory error and its referenced throughout other Blazor pages. I just installed the new Edge and changed the target to x64, still with no luck.

igor-lukashenya commented 3 years ago

I believe that this is being caused by a missing file: blazor.desktop.js which is what wwwroot/index.html is trying to call, but there is no js file associated with the sample. I'm not sure if it's supposed to be generated during build, but I do believe this is what's causing the error.

Edit: Nope, I'm incorrect. Removing the line still comes up with the memory error and its referenced throughout other Blazor pages. I just installed the new Edge and changed the target to x64, still with no luck.

Do yo resolve this issue?

DapperDeer commented 3 years ago

Do yo resolve this issue?

Yes, actually. I fixed this issue by downloading Edge Insider .

devbf commented 3 years ago

Had the same issue, solved it by adding this SDK via NuGet. This article helped me resolving this.