Invalid WNS credentials error when setting up new notification hub

Perpetua Technologies LLC 21 Reputation points
2025-02-12T18:16:31.33+00:00

I am running into problems while configuring the WNS settings for my new Notification hub. On step #3 of "Configure WNS settings for the hub" I'm getting an error:

{"error":{"code":"BadRequest","message":"Invalid WNS credentials."}}

I'm attempting to follow the instructions at this site:

https://learn.microsoft.com/en-us/azure/notification-hubs/notification-hubs-windows-store-dotnet-get-started-wns-push-notification

Other posted resolutions for this problem didn't resolve my issue.

Here are screenshots of the process so far:

Step 3 of "Create an app in Windows Store":

Step 3 of Create an app in Windows Store Step 5 of "Create an app in Windows Store":

Step 5 of Create an app in Windows Store

Step 6 of "Create an app in Windows Store":

Step 6 of Create an app in Windows Store

Step 5d of "Create a Notification Hub":

Step 5d of Create a Notification Hub

Step 3 of "Configure WNS settings for the hub":Step 3 of Configure WNS settings for the hub

Copilot suggestions didn't help.

Azure Notification Hubs
Azure Notification Hubs
An Azure service that is used to send push notifications to all major platforms from the cloud or on-premises environments.
348 questions
{count} votes

Accepted answer
  1. SnehaAgrawal-MSFT 22,261 Reputation points
    2025-02-13T10:37:11.06+00:00

    @Perpetua Technologies LLC

    Could you please Confirm Package SID should be in the format: ms-app://S-x-xx-x-xxxxxxxx..

    And not in the format S-x-xx-x-xxxxxxxxxxxxxx.... (this is how it looks in partner center portal)

    As mentioned in the doc- https://learn.microsoft.com/en-us/azure/notification-hubs/notification-hubs-windows-store-dotnet-get-started-wns-push-notification#configure-wns-settings-for-the-hub

    User's image

    Let me know.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Perpetua Technologies LLC 21 Reputation points
    2025-02-13T16:05:36.0166667+00:00

    Laxman Reddy Revuri,The "ms-app://" portion of the Package SID was indeed the issue I was seeing. Thank you for catching that! I was able to save the properties of the new hub with no errors.

    Thanks.

    0 comments No comments

Your answer

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