Change webview2 default error page

jarno beerten 61 Reputation points
2021-08-12T11:57:11.233+00:00

C#
.net framework 4.8
Webview 2

When i change the default error page it doesn't load the full content of the html file

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Timon Yang-MSFT 9,606 Reputation points
    2021-08-13T06:07:52.72+00:00

    Did you set IsBuiltInErrorPageEnabled Property to false, and then navigate to your custom error page in the NavigationCompleted event handler?

    Can your error page be opened normally in the browser?

    Try to select Inspect in the right-click menu to see if some resources are not loaded successfully.

    122950-capture.png


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


1 additional answer

Sort by: Most helpful
  1. jarno beerten 61 Reputation points
    2021-08-13T07:02:02.517+00:00

    Yes isbuildinpage = false

    Is set but when i navigate to the file it doesn't show correct

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.