Error 407 Azure notification hubs

I am trying to configure ios push notifications on Azure Notification hubs. I know I have everything done right because I have done this before and I have a checklist. But for some reason it's failing without any logical explanation. The error I get is
The remote server returned an error: (407) Proxy Authentication Required..TrackingId:b12dc955-b24f-42f9-acc4-3440c4d60ab4,TimeStamp:03/04/2014 10:48
And StackTrace
Exception rethrown at [0]:
at Microsoft.ServiceBus.Common.ExceptionDispatcher.Throw(Exception exception)
at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
at Microsoft.ServiceBus.Common.AsyncResult`1.End(IAsyncResult asyncResult)
at Microsoft.ServiceBus.Messaging.ServiceBusResourceOperations.EndGetAll(IAsyncResult asyncResult, String& continuationToken)
at Microsoft.ServiceBus.NamespaceManager.EndGetRegistrationsByTag(IAsyncResult result)
at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at RD8MobileApp.Api.Services.PushNotificationService.<RegisterForNotifications>d__1.MoveNext() in c:\Development\TFS\RD8\MobileApp.Api\Services\PushNotificationService.cs:line 29
Can anyone help?

Hi,
Form error message, you may need pay attention 2 points:
1.Please check your firewall.
2.Add below code into your config file. You have to configure the proxy authenctication if your pc performs HTTP requests through a proxy. Stick the following config section in your app.config\web.config and you should be ok to move on:
<system.net>
<defaultProxy useDefaultCredentials="true"></defaultProxy>
</system.net>
For this issue, you could see those same threads(http://stackoverflow.com/questions/2581609/the-remote-server-returned-an-error-407-proxy-authentication-required
& http://spikesoftware.azurewebsites.net/?p=841)
Please try it. Any update info, please let me know.
Regards,
Will
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Azure Notification Hub Package Missing for Windows Phone 8.1

    The WindowsAzure.Messaging.Managed nuget package version 0.1.7.6 does not support Windows Phone 8.1. Is there a package available to support Azure Notification Hub to push notifications to Windows Phone 8.1?

    8.1 is not publically available.  You can check with the Azure folks and ask them when there will be an update
    Jeff Sanders (MSFT)
    @jsandersrocks - Windows Store Developer Solutions
    @WSDevSol
    Getting Started With Windows Azure Mobile Services development?
    Click here
    Getting Started With Windows Phone or Store app development?
    Click here
    My Team Blog: Windows Store & Phone Developer Solutions
    My Blog: Http Client Protocol Issues (and other fun stuff I support)

  • Anyone ever tried Azure Notification hubs service with Adobe DPS?

    Anyone ever tried Azure Notification hubs service with Adobe DPS?
    Any information will be much appreciated.

    Not that I'm aware of, sorry.
    Neil

  • Azure Notification Hub for mobile push notification vs. others...

    Hi,
    I am trying to figure out the differences between Azure Notification Service and other options like Urban Airship, Xtify, etc. Amazon SNS looks very much similar to Azure, but how do they compare with other options? This link shows some of those alternate
    options: http://goo.gl/sRskA6
    Thanks in advance,
    Arijit.

    hi Arijit,
    Comparison with other providers:
    http://stackoverflow.com/questions/21581664/does-azure-push-notification-support-a-user-id-or-alias
    Also, you could see this similar threads:
    http://mobileappcoach.com/push-notification-service-providers-urban-airship-alternatives-to-help-your-mobile-app/
    This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore,
    Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you
    completely understand the risk before retrieving any software from the Internet.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Windows 8 HTML5/JavaScript Notification Hubs using Visual Studio 2012

    Hi,
    I'm not able to implement Microsoft Azure Notification Hubs using HTML5/JavaScript. Please help
    Thanks

    That is a Windows issue. Perhaps you should contact Microsoft about Windows issue not Visual Studio issue.
    You say it fails to work. So I would imagine it downloaded and installed then you attempt to launch it and it fails to work. Or is it the download that fails to work?
    Windows Compatibility Mode you can search for on the internet also.
    Below is an image of an executables properties. One of the tabs (the one displayed) is for Compatibility. The issue with your system is not an issue for this forum. It's possible a setting displayed below for your executable or possibly your executables
    shortcuts could be altered to correct the issue. Or not.
    La vida loca

  • Adobe DPS with notification hubs?

    Anyone ever tried Azure Notification hubs service with Adobe DPS?
    Any information will be much appreciated.

    Not that I'm aware of, sorry.
    Neil

  • Location Based Push Notifications in notification hub in wp8

    I'm basically trying to replicate what's being demonstrated at http://channel9.msdn.com/Shows/Cloud+Cover/Episode-118-Location-based-Push-Notifications-with-Windows-Azure-Notification-Hubs.
    It's a good demo by Elio Damaggio, but it doesn't cover all of the code that he's used. I'd really like the sample code for this demonstration but it doesn't appear to be available, and I can't find any tutorials or code examples for using location
    based push notifications. Just wondering if anyone can knows where I can find a tutorial or code sample?

    Hi Rob,
    Thanks for posing!
    Sorry to said, the code sample didn't publish for us currently. However, I suggest you could follow Elio's ideas to code. Firstly ,he create Notification Hubs on azure and implement it in his windows phone 8 application ( http://www.windowsazure.com/en-us/documentation/articles/notification-hubs-windows-phone-get-started/)
    . Secondly, he used the geolocator class (
    http://msdn.microsoft.com/en-us/library/windows/apps/windows.devices.geolocation.geolocator )  in his project to get current location.
    And then he register Notification Hubs and convey the current location variables to Bing API. I think you could pay attention to how to use Notification Hubs tags and geolocator class in this code sample.
    Please try it.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Notification Hub - 401 Unauthorized exception

    I followed the lesson
    http://azure.microsoft.com/en-us/documentation/articles/notification-hubs-windows-store-dotnet-get-started/. But in result got 401 Unauthorized
    exception after var result = await hub.RegisterNativeAsync(channel.Uri). I have checked settings (hub name, connection string) twice. After that I even created a new application and new hub. But got the same error.
    I found it works on emulator, but does not on real device. Nokia Lumia 630, OS version 8.10.12397.895
    Could you give me any ideas how to fix this error?

    This could happen if there is a clock synchronization issue on the phone. Can you ensure
    that clock on the phone is correct and if not can you manually set the clock
    and try again? <o:p></o:p>
    Previously we
    use to see this kind of issue with Window phone emulator (not with the real
    device). Please see below article on this.<o:p></o:p>
    http://blogs.msdn.com/b/msftgeek/archive/2013/11/01/notification-hubs-and-the-dreaded-registrationauthorizationexception.aspx<o:p></o:p>
    Thanks,
    Sateesh<o:p></o:p>
    Mark Post as helpful if it provides any help.Otherwise,leave it as it is.

  • Using REST Update Notification Hub to add APNS certs fails with 409

    Hi - I'm trying to use the Update Notification Hub REST call (https://msdn.microsoft.com/en-us/library/azure/dn223260.aspx) to add a valid APNS cert to an existing hub. When I do this, the update fails with a response code of 409 - which is not mentioned
    in the possible codes on that documentation page... Seems to be complaining that hub already exists.
    When I use the Create Notification Hub REST Call (https://msdn.microsoft.com/en-us/library/azure/dn223269.aspx) and include the proper <ApnsCredential> element it succeeds.
    I see no difference in the docs between the two calls.  The request body is described slightly differently. It appears to me that create and update are the same call? What causes a 409 when calling the Update method?
    How am I supposed to update the push certs of an existing hub?
    Thanks!

    The answer is that the HTTP spec implies that for REST style calls for updating a resource at the same URI - you need to include the "If-Match" header set to '*'
    see: https://msdn.microsoft.com/en-us/library/dd541480.aspx
    and section 14.24 of RFC2616 ( http://www.rfc-editor.org/rfc/rfc2616.txt )
    In my opinion this is a documentation bug - the Request Headers section of Update Hub ( https://msdn.microsoft.com/en-us/library/azure/dn223260.aspx ) should mention it requires the "If-Match" header.  It is required because without it
    - this becomes a Create Hub call 

  • Send both Toast and Tile Notification simultaneously using Template feature of Notification Hub

    Hi, I am using WNS(Windows Notification Service) With Notification Hub to send Push Notifications to my WP 8.1 Application. I am basically sending localized notification using Template feature of Notification Hub. I have used Localized
    News example  reference for sending localized used.
    Here are my templates and how I am registering them, also How my Dictionary payloads look like :-
    Toast Template Method :- 
    public static string GetToastText01Template(string param,string line1)
    return string.Format(@"<toast launch=""$({0})"">
    <visual>
    <binding template=""ToastText01"">
    <text id=""1"">$({1})</text>
    </binding>
    </visual>
    </toast>", param, line1);
    Tile Template Method :-
    public static string CreateSquare150_150BackgroundTextTemplateWns(string backText)
    return string.Format(@"<tile>
    <visual >
    <binding template=""TileSquarePeekImageAndText01"">
    <image id=""1"" src=""ms-appx:///ApplicationIcon_173_173.png"" alt=""alt text"" />
    <text id=""1"">$({0})</text>
    </binding>
    </visual>
    </tile>", backText);
    Registration With Notificaiton Hub (Part of Register Method basically) :-
    var toasttemplate = GetToastText01Template("NavigateToPageUri" ,GetToastCultureKey(culture));
    await _hubClient.CreateWindowsTemplateRegistrationAsync(ChannelUri, toasttemplate, tags);
    var tileTemplate = ToastFactory.CreateSquare150_150BackgroundTextTemplateWns(GetTileBackTextCultureKey(culture));
    await _hubClient.CreateWindowsTemplateRegistrationAsync(ChannelUri, tileTemplate, tags)
    Toast payload In terms of Dictionary :- 
    Tile Payload Dictionary :-
    Note :- I have ensured that Keys for both the templates must be different during registering the templates so that both templates doesn't mix with each other. 
    Problem :- When I am registering only one Template, doesn't matter Whether it is Toast or Tile, I am able to get the notification on my app successfully(Both of Toast and Tile ,individually, working fine). But When I register both of the
    Templates simultaneously or Individually, then none on them is working.
    Questions :- 
    1) Can you let me know how basically Notification Hub select the Template from Payload Dictionary ? Like in case of two different registered templates.
    2) How can we send Two localized Notifications simultaneously using Template feature of Notification Hub?

    Hi Tanuj,
    Selection of template/registration always based on tags not based on payload keys.
    Just to explain, you have following two devices.
    device A - toast template,  tags: {"en-us", "toast"}
    device A - tile template , tags : {"en-us", "tile"}
    device B - toast template,  tags: {"en-fr", "toast"}
    device B - tile template , tags : {"en-fr", "tile"}
    If you call a method  SendTemplateNotificationAsync({“properties of template”}, “en-us”)) like this,  That will target the toast and tile both notifications to the device A.
    But if you just want to send the toast notification to device A, you have to call something like this,
    SendTemplateNotificationAsync({“properties of template”}, “en-us && toast”)). FYI Second parameter is a tag expression: Please refer following link to know more about tag expressions:
    https://msdn.microsoft.com/en-us/library/azure/dn530749.aspx
    To answer your second question, register template with language tag along with other tags (just like above example). Then when you are sending notification, include that tag in your tag expression.
    Example: SendTemplateNotificationAsync({“properties of template”}, “en-us && toast”)), this one send toast notifications to all “en-us” local devices.
    Thanks,
    Sateesh
    Mark Post as helpful if it provides any help.Otherwise,leave it as it is.

  • Image Upload fails with Error 407: Proxy Authentication Required

    Hello,
      I am trying to upload Custom Template Image, however it fails with error :(407) Proxy Authentication Required message. i would have to admit that i am trying this behind a Proxy Firewall. So i do really need to know how to make this work and
    what is that i need to request from the Proxy team to make this working.
    Thanks
    TSANA

    Hello TP,
     Your Suggestion really helped and the upload is working. However because of the bandwidth being low, its showing 2 days. Is there any other approach to get around with this? I have also observed that, if we leave the upload over night , then it will
    show that the Image upload failed with exception. I have managed to rerun the script(same script) in same window, and luckily it continues from where it had failed. This is somehow not a good thing that Microsoft did not provide an option of using Azure VM
    as a template. 
    Thanks
    Sundesh

  • Powershell Error for SharePoint Online -"The remote server returned an error: (407) Proxy Authentication Required."

    I am trying to call sharepoint online from powershell. Below is the code. I get 
    Exception calling "ExecuteQuery" with "0" argument(s): "The remote server returned an error: (407) Proxy Authentication Required."
    $loadInfo1 = [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Client")
    $loadInfo2 = [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Client.Runtime")
    $webUrl = "ZZZZ"
    $username = "XXX"
    $password = "YYYY"
    $ctx = New-Object Microsoft.SharePoint.Client.ClientContext($webUrl) 
    $ctx.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($username, $password)
    $web = $ctx.Web
    $lists = $web.Lists 
    $ctx.Load($lists)
    $ctx.ExecuteQuery()
    $lists| select -Property Title
    Raj-Shpt

    Hi,
    About how to access SharePoint online site using PowerShell, the blog below would be helpful:
    http://social.technet.microsoft.com/wiki/contents/articles/29518.csom-sharepoint-powershell-reference-and-example-codes.aspx
    Another two demos for your reference:
    http://www.hartsteve.com/2013/06/sharepoint-online-powershell/
    http://www.sharepointnutsandbolts.com/2013/12/Using-CSOM-in-PowerShell-scripts-with-Office365.html
    Thanks
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Content Server Error: 407 Proxy Authorization Required

    Hi Experts,
    I am new to Content Server and have recently installed Content Server 6.40 with MaxDB 7.8 database on a Windows 2008 server.
    The installation completed successfully and IIS server was configured as per guide. The Content server is running when checked through URL on server.
    Next, we created a new repository with following details, but are facing "HTTP error: 407 Proxy Authorization Required" while testing the connection.
    Settings in OAC0
    Content Rep.    A1
    Document Area: ArchiveLink
    Storage type: HTTP Content Server
    Version no.: 0046
    HTTP server: <IP of Windows server where CS is intalled>
    Port Number     1090
    HTTP Script     ContentServer/ContentServer
    Transfer drctry C:\temp
    HTTP Port 1090 is open from SAP system(HP-UX) to Content Server(windows) and there is no firewall between the 2 servers, but we still see the error in OAC0 and CSADMIN. I also tried setting the security parameter to 0 in contentserver.ini file, but that didn't help either.
    The content server was installed using administrator user.
    Would appreciate your inputs on what am I missing?
    Thanks.
    Regards,
    Varun

    Hi Varun,
    Please change Document Area: ArchiveLink .
    Remove Archive link and change it to Document Management system ( DMS)
    Check the results and post the output.
    Regards,
    Deepak Kori

  • Seeburger AS2: Proxy Error 407

    Hi All,
    I am facing the following error while sending message to receiver through AS2 
    Could not deliver as2 message to partner: 407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. ) # null
    Kindly suggest the solution to resolve the error.
    Hoping for a good reply
    Regards
    Prakash

    May not be an authentication issue. Please go through this link:
    http://www.isaserver.org/tutorials/Troubleshooting_ISA_authentication_issues.html
    Confusing Authentication problems.
    In many instances most people have confused authentication with a service that is explicitly denying them access to the resource.  Please note that if you are denied access to a resource it has nothing to do with authentication but with permissions to the resource.  An authentication issue normally identifies itself with prompt for user credential or with an error message stating that authentication has failed with the server.
    A typical error that you will encounter is error 407 Proxy Authentication Required this means that the authentication has been denied because the user has no valid user account in the domain or that the password has been entered incorrectly.  The 401 error however displays an unauthorized error message this mean the user permissions to that resource are denied.  This error message tells you to look at the ISA server rules not at the way the authentication is handled
    Authenticate: username.passwords should be right
    Authorization: not allowed to access a resource
    "The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied." You might have to look at this authorization issue.

  • Error opening the notification Center. I can't open the notification Center

    Error opening the notification Center. I can't open the notification Center

    Hey amabnn,
    Thanks for the question. I understand you are experiencing issues with the latest iTunes update. Let’s troubleshoot the iTunes installation by completely removing and reinstalling iTunes and all related components (it is important to remove all components in the order listed):
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    http://support.apple.com/kb/HT1923
    Additional Information:
    Issues installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/HT1926
    How to restart the Apple Mobile Device Service (AMDS) on Windows
    http://support.apple.com/kb/TS1567
    Thanks,
    Matt M.

Maybe you are looking for