-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Problem/Bug]: Opening a connection to an Access database breaks the WebView2
#4583
Comments
It works fine for me. No matter Click "break" first or not. And "connection to an Access database" is irrelative. |
Try changing the button handler from this private void cmdBreak_Click(object sender, EventArgs e)
{
var path = $"{Application.StartupPath}/TestOleDb.accdb";
using var connection = new OleDbConnection($"Provider=Microsoft.ACE.OLEDB.12.0;Data Source={path}"); // The database doesn't even need to exist
try { connection.Open(); }
catch { }
} to this private void cmdBreak_Click(object sender, EventArgs e)
{
var path = $"{Application.StartupPath}/TestOleDb.accdb";
using var connection = new OleDbConnection($"Provider=Microsoft.ACE.OLEDB.12.0;Data Source={path}"); // The database doesn't even need to exist
try { connection.Open(); }
catch (OleDbException) { }
} The handler had a |
Tried catch the exception. Click Break -> click Continue to ignore the error -> Click Popup -> New form with google page loaded. |
I started the trace, clicked "Break", clicked "Popup" and then stopped the trace.
This would be preferred |
You can send the trace to [email protected] |
@AFatNiBBa From your traces, the |
More Info from the trace: |
We managed to fix the issue in an unforgivable manner by just forcing a connection BEFORE the first try
{
using (var conn = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0"))
conn.Open();
}
catch { } |
What happened?
I'm trying to make a custom window for popups, but if I open a connection to an Access database and THEN open a popup window,
WebView2.EnsureCoreWebView2Async()
throws aCOMException
saying:Importance
Important. My app's user experience is significantly compromised.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
124.0.2478.97
SDK Version
1.0.2478.35
Framework
Winforms
Operating System
Windows 11
OS Version
22631.3593
Repro steps
If you click only the "Popup" button it will work
Repros in Edge Browser
No, issue does not reproduce in the corresponding Edge version
Regression
Don't know
Last working version (if regression)
No response
The text was updated successfully, but these errors were encountered: