我已经使用 SSO 通过 ASP.NET Web 服务器开发了一个 Excel 加载项 Web 应用程序,如下面的文章。
https://docs.microsoft.com/en-us/office/dev/add-ins/develop/create-sso-office-add-ins-aspnet
我的一切都在本地工作,但是当部署到 Azure 时,我收到 13004 错误“提供的应用程序资源 URL 无效”。我已经按照文章的说明创建了一个应用程序注册,但我不确定我是否所有参数都正确。在本地,我有以下网站托管在https://localhost:44355 Manifest resource is api://localhost:44355/[guid for app id] Azure app id is api://localhost:44355/[guid for app ID]
当部署到 Azure 时,我的网站托管在 [websitename].azurewebsites.net 我尝试了多次更改 Manifest 资源和 Azure 应用程序 Id URI 的迭代,并且都返回相同的错误。
我尝试将原始参数保留为 localhost:44355 我尝试更改为我的本地域(即 api:///[guid for app id])