{"issue":{"created_at":"2011-12-07T17:39:26Z","state":"open","updated_at":"2011-12-08T15:02:25Z","comments":2,"user":{"gravatar_id":"b6c19897ab95701e01900a9a9a256c9b","id":1177953,"url":"https://api.github.com/users/mcannistra","avatar_url":"https://secure.gravatar.com/avatar/b6c19897ab95701e01900a9a9a256c9b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"mcannistra"},"body":"connection.Stop() gives exception (System.Net.WebException was unhandled by user code Message=The request was aborted: The request was canceled.) when testing from Azure Worker Role.\r\nNo exception if testing from console application.\r\nThis always happens and I cannot trap the exception from code (caught by VisualStudio/local azure fabric).","assignee":null,"id":2477464,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":93,"title":"connection.Stop() exception when running in Azure Worker Role","html_url":"https://github.com/SignalR/SignalR/issues/93","closed_at":null,"url":"https://api.github.com/repos/SignalR/SignalR/issues/93","milestone":null},"action":"created","comment":{"created_at":"2011-12-08T15:02:25Z","updated_at":"2011-12-08T15:02:25Z","user":{"gravatar_id":"b6c19897ab95701e01900a9a9a256c9b","id":1177953,"url":"https://api.github.com/users/mcannistra","avatar_url":"https://secure.gravatar.com/avatar/b6c19897ab95701e01900a9a9a256c9b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"mcannistra"},"body":"Something around exception trapping is working in a weird way:\r\n- if I close all connections inside a console application, everything works fine\r\n- if I do exactly the same inside an Azure Worker Role, I get the exception directly in Visual Studio despite all additional exception trapping code I added.\r\n\r\nWhen Visual Studio gets the exception, it shows up in HttpHelper.cs  - line 15 (method GetResponseAsync() at the  request.EndGetResponse  statement.\r\n\r\nPlease, see these two scenarios in   https://github.com/mcannistra/Burst   and   https://github.com/mcannistra/AzureBasedLoadTest\r\n\r\nSteps to reproduce behavior with the Azure solution:\r\n- run the \"testHarness\" website and take note of the entrypoint url\r\n- run \"AzureBasedLoadTest\" on the local Azure fabric just hitting F5\r\n- specify the url in the first textbox of the \"AzureBasedLoadTest\" opened webpage\r\n- hit the \"START\" button to have connections opened by the configured worker role instances\r\n- wait about 15 seconds to see them opened in the Azure compute emulator\r\n- hit the \"Close all conenctions...\" button in the opened web page\r\n- the exception should be raised now","id":3063400,"url":"https://api.github.com/repos/SignalR/SignalR/issues/comments/3063400"}}