You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Webview2 not able to upload stream more than 65MB stream in "CoreWebView2.Environment.CreateWebResourceResponse(stream, 200, "OK", string.Empty);"
#4816
Open
mdCllang opened this issue
Sep 17, 2024
Discussed in
#4525
· 0 comments
I am using webview2 , i want to send file using "CoreWebView2.Environment.CreateWebResourceResponse(stream, 200, "OK", string.Empty);" file size is more than 70MB it was cause error
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at System.Windows.Application.Run()
at WinProjectE.App.Main()
System.Runtime.InteropServices.SEHException
HResult=0x80004005
Message=External component has thrown an exception.
Source=
StackTrace:
Some additional Infos:
We use WPF, NetFramework 4.8,
Nuget: Microsoft.Web.WebView2: Versions tested: 1.0.1823.32 and 1.0.2151.40 (latest at moment of posting)
TestPC runs on Windows 11:
WebView2 Runtime: 128.0.2739.79 (latest at moment of posting)
Any suggestions or ideas how to fix it would be nice.
The text was updated successfully, but these errors were encountered:
Discussed in #4525
Originally posted by SajidMemon44 May 3, 2024
Hi,
I am using webview2 , i want to send file using "CoreWebView2.Environment.CreateWebResourceResponse(stream, 200, "OK", string.Empty);" file size is more than 70MB it was cause error
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at System.Windows.Application.Run()
at WinProjectE.App.Main()
System.Runtime.InteropServices.SEHException
HResult=0x80004005
Message=External component has thrown an exception.
Source=
StackTrace:
Method used :
private void CoreWebView2_WebResourceRequested(object sender, CoreWebView2WebResourceRequestedEventArgs e)
{
if (e.Request.Uri.Contains("/XXX/XXX/XXX/XXX/", StringComparison.OrdinalIgnoreCase))
{
string filename = Path.GetFileName(e.Request.Uri);
string filePath = Path.Combine(App.oGlobalInput.TempDirectory, filename);
}
We try this approach as well but still same error : https://learn.microsoft.com/en-us/microsoft-edge/webview2/concepts/working-with-local-content?tabs=dotnetcsharp
Some additional Infos:
We use WPF, NetFramework 4.8,
Nuget: Microsoft.Web.WebView2: Versions tested: 1.0.1823.32 and 1.0.2151.40 (latest at moment of posting)
TestPC runs on Windows 11:
WebView2 Runtime: 128.0.2739.79 (latest at moment of posting)
Any suggestions or ideas how to fix it would be nice.
The text was updated successfully, but these errors were encountered: