MicrosoftEdge / MicrosoftEdge/WebView2Feedback
[WPF] Content does not load if WPF app is started from debugger
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
Description
The application works when started from explorer but Edge does not open the page if started from Visual Studio 2019 Preview 3. It is possible to interact with the edge (right click, inspect, etc.) but nothing is loaded.
Version
SDK: WebView2.1.0.721-prerelease
Runtime: Version 90.0.779.0 (Official build) canary (64-bit)
Framework: WPF, .Net Framework 4.8 and 4.7.2
OS: Windows 10 10.0.19041
Repro Steps
- Follow the guide at https://docs.microsoft.com/en-us/microsoft-edge/webview2/gettingstarted/wpf
- Start with Debugger in Visual Studio
- Source page does not load
It also seems that crashdumps are created
DbgView log
[11412] JsonRpc Error: 10 :
[11412] Exception thrown from request "0" for method GetResult: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Microsoft.DiagnosticsHub.DataWarehouse.DataWarehouseServiceModuleException: Unknown result ID: 0
[11412] at Microsoft.DiagnosticsHub.DataWarehouse.ServiceModule.Controllers.DataWarehouseController.GetResult(GetResultPayload requestData, Guid taskId, CancellationToken cancellationToken)
[11412] --- End of inner exception stack trace ---
[11412] at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
[11412] at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
[11412] at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
[11412] at StreamJsonRpc.TargetMethod.d__19.MoveNext()
[11412] --- End of stack trace from previous location where exception was thrown ---
[11412] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[11412] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[11412] at StreamJsonRpc.JsonRpc.d__152.MoveNext()
[11412] JsonRpc Error: 10 :
[11412] System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Microsoft.DiagnosticsHub.DataWarehouse.DataWarehouseServiceModuleException: Unknown result ID: 0
[11412] at Microsoft.DiagnosticsHub.DataWarehouse.ServiceModule.Controllers.DataWarehouseController.GetResult(GetResultPayload requestData, Guid taskId, CancellationToken cancellationToken)
[11412] --- End of inner exception stack trace ---
[11412] at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
[11412] at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
[11412] at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
[11412] at StreamJsonRpc.TargetMethod.d__19.MoveNext()
[11412] --- End of stack trace from previous location where exception was thrown ---
[11412] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[11412] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[11412] at StreamJsonRpc.JsonRpc.d__152.MoveNext(), GetResult, 0, Newtonsoft.Json.Linq.JToken[]
[11412] JsonRpc Error: 10 :
[11412] Exception thrown from request "0" for method GetResult: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Microsoft.DiagnosticsHub.DataWarehouse.DataWarehouseServiceModuleException: Unknown result ID: 0
[11412] at Microsoft.DiagnosticsHub.DataWarehouse.ServiceModule.Controllers.DataWarehouseController.GetResult(GetResultPayload requestData, Guid taskId, CancellationToken cancellationToken)
[11412] --- End of inner exception stack trace ---
[11412] at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
[11412] at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
[11412] at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
[11412] at StreamJsonRpc.TargetMethod.d__19.MoveNext()
[11412] --- End of stack trace from previous location where exception was thrown ---
[11412] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[11412] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[11412] at StreamJsonRpc.JsonRpc.d__152.MoveNext()
[11412] JsonRpc Error: 10 :
[11412] System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Microsoft.DiagnosticsHub.DataWarehouse.DataWarehouseServiceModuleException: Unknown result ID: 0
[11412] at Microsoft.DiagnosticsHub.DataWarehouse.ServiceModule.Controllers.DataWarehouseController.GetResult(GetResultPayload requestData, Guid taskId, CancellationToken cancellationToken)
[11412] --- End of inner exception stack trace ---
[11412] at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
[11412] at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
[11412] at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
[11412] at StreamJsonRpc.TargetMethod.d__19.MoveNext()
[11412] --- End of stack trace from previous location where exception was thrown ---
[11412] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[11412] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[11412] at StreamJsonRpc.JsonRpc.d__152.MoveNext(), GetResult, 0, Newtonsoft.Json.Linq.JToken[]
[42200] RecursiveDirectoryCreate( C:\prj\Atum\Atum\bin\Debug\Atum.exe.WebView2\EBWebView directory exists )
[42252] [0127/085102.214:ERROR:filesystem_win.cc(129)] GetFileAttributes C:\prj\Atum\Atum\bin\Debug\Atum.exe.WebView2\EBWebView\Crashpad\attachments\e2c974a9-f832-4ad3-9787-e1b9c19ec63c: The system cannot find the path specified. (0x3)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the WPF getting-started guide and reproduce the issue by launching the sample from Visual Studio 2019 Preview 3 and Explorer. Compare the DbgView output and crash-dump behavior; done means the source page loads when started under the debugger without the reported failures.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100