当我尝试在Auto-desk Forge中查看模型时出现身份验证错误

时间:2019-07-17 06:31:32

标签: asp.net autodesk-forge

我已经翻译了3D模型并尝试使用Autodesk Forge查看模型,然后出现Token 500错误

当我在调试模式下运行代码时,得到的错误消息为Autodesk.Forge.Client.ApiException:“调用身份验证时出错:无法连接到远程服务器””

 TwoLeggedApi oauthApi = new TwoLeggedApi();
            dynamic bearer = await oauthApi.AuthenticateAsync(
                WebConfigurationManager.AppSettings["FORGE_CLIENT_ID"],
                WebConfigurationManager.AppSettings["FORGE_CLIENT_SECRET"],
                "client_credentials",
                new Scope[] { Scope.BucketCreate, Scope.DataCreate, Scope.DataWrite, Scope.DataRead });

enter image description here

0 个答案:

没有答案