We are facing issues with .net Web browser control (.Net v 4.0) Web app fails with status 0 when it makes a call (options) to Web API which is protected with SSL. If we remove SSL it is working fine. Below is the code which is fail RRS feed

  • Question

  • $.ajaxSetup({
        headers: {
            "authorization": 'bearer ' + sessionStorage.token

        cache: false,
        type: type,
        url: url,
        data: data,
        async: true,
        contentType: 'application/json',
        error: function (err) {
            if (err.status != 404) {
        success: success
    • Moved by KareninstructorMVP Wednesday, November 29, 2017 5:58 PM Moved from VB.NET forum
    Wednesday, November 29, 2017 6:00 AM

All replies

  • Hello,

    I left this question go for several hours even thou it's not in the proper forum but now moving this question to an off-topic forum as this forum is for VB.NET no JavaScript/ajax calls.

    Note that the web browser control does have limitations as you learned. Best to keep usage of WebBrowser control to simple operations and not with WebAPI operatoins.

    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.
    VB Forums - moderator
    profile for Karen Payne on Stack Exchange, a network of free, community-driven Q&A sites

    Wednesday, November 29, 2017 5:57 PM