简体   繁体   English

Azure 通知中心 - Windows (WNS) 错误 - WNS 凭据无效

[英]Azure notification hubs - Windows (WNS) error - Invalid WNS credentials

I am trying to setup Windows (WNS) notifications based on following Microsoft tutorial: Send notifications to Universal Windows Platform apps using Azure Notification Hubs我正在尝试根据以下 Microsoft 教程设置Windows (WNS)通知: 使用 Azure 通知中心向通用 Windows 平台应用程序发送通知

System returns error at step 3 in chapter Configure WNS settings for the hub .系统在为集线器配置 WNS 设置一章的步骤 3处返回错误。 Relevant screenshots below.相关截图如下。 I used fresh Package SID created yesterday.我使用了昨天创建的新包 SID Also, security key was properly created;此外,安全密钥已正确创建; as defined in tutorial.如教程中所定义。

Error message: Error updating notification hub. Error. BadRequest. Message: **Invalid WNS credentials**.错误消息: Error updating notification hub. Error. BadRequest. Message: **Invalid WNS credentials**. Error updating notification hub. Error. BadRequest. Message: **Invalid WNS credentials**.

App registration in Azure is visible under - Applications from personal account . Azure 中的应用注册在 - Applications from personal account下可见。

On Partner Center portal I have active individual developer account that was used to register application (MSIX or PWA app) and get Package SID .合作伙伴中心门户上,我有用于注册应用程序(MSIX 或 PWA 应用程序)并获取Package SID的活动个人开发者帐户。

Followed all steps in tutorial.遵循教程中的所有步骤。 Triple checked everything.三重检查了一切。 No other errors received.没有收到其他错误。 Account that I used to go through the tutorial has OWNER permissions on Azure subscription where Notification Hub is located.我用来完成本教程的帐户对通知中心所在的 Azure 订阅具有OWNER 权限 Security and access rights shouldn't be the problem.安全和访问权限不应该是问题。

Any thoughts where is the problem?任何想法问题出在哪里? And where can I find more details about actual error?我在哪里可以找到有关实际错误的更多详细信息?

screenshot-ErrorMessage截图-ErrorMessage

screenshot-App registration截图-应用注册

screenshot-IntegrationAssistantSuggestions截图-IntegrationAssistantSuggestions

Found solution.找到解决方案。

Package SID should be in the format: ms-app://Sx-xx-x-xxxxxxxxxxxxxx....包 SID 的格式应为:ms-app://Sx-xx-x-xxxxxxxxxxxxxx....

And not in the format Sx-xx-x-xxxxxxxxxxxxxx.... (this is how it looks in partner center portal)而不是 Sx-xx-x-xxxxxxxxxxxxxx.... 格式(这是合作伙伴中心门户中的样子)

Resolved.解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM