#StackBounty: #asp.net #adsense Ads doesn't appear after removing and adding again

Bounty: 100

The ads not appear after I have removed and re-added the Adsense code.
How can I fix this ? Thanks

I use the default code as,

//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js
<ins class="adsbygoogle"
 style="display:block"
 data-ad-client="ca-pub-myid"
 data-ad-slot="id2"
 data-ad-format="auto"
 data-full-width-responsive="true"></ins>

    (adsbygoogle = window.adsbygoogle || []).push({});


Get this bounty!!!

#StackBounty: #c# #asp.net #signalr #signalr-hub #asp.net-core-2.1 How to catch ASP.NET Core 2 SignalR exceptions on server-side and ha…

Bounty: 50

Context: There are differences between ASP.NET SignalR and ASP.NET Core SignalR you can read here.

As described in this stackoverflow post in ASP.NET SignalR you can catch unhandled exceptions on server side via the HubPipelineModule which not exists in ASP.NET Core SignalR.

How can we catch unhandled exceptions and pass them to the client side in ASP.NET Core SignalR?

JavaScript code (client):

var hub = null;

var initWebSocket = function () {

    hub = new signalR.HubConnectionBuilder().withUrl("/MyHub").build();

    hub.on("ReceiveMessage", function (pMessage) {

        [...]
    });

    hub.start().catch(function (err) {
        return console.error(err.toString());
    });
};

var executeWebsocketTestException = function () {

    // send to server
    hub.invoke("TestException").catch(function (exception) {

        if(exception.type)
        {
            ...
        }
    });
};

ASP.NET Core 2 Hub (server):

public class MyHub : Hub
{
    public async Task TestException()
    {
        throw new SignalRTest.Exceptions.TestException("This is a Websocket Test Exception.");
    }
}


Get this bounty!!!