C# Docusign API 启动器错误 ArgumentException:必须提供 'ClientId' 选项。 (参数'ClientId')

C# Docusign API Launcher error ArgumentException: The 'ClientId' option must be provided. (Parameter 'ClientId')

我在 appsettings.example.json 文件中填写配置详细信息(例如集成密钥和客户端密码)后收到此错误。我从 Docusign Github 下载了 Code-Examples-CSharp,并且能够 运行 VS2019 中的 ISSExpresss,它会将我带到 http://localhost:8080/ 然后我在下面收到此错误。我认为我没有遗漏任何其他配置区域,但我是 Docusign API 的新手,所以如果我是新手请告诉我。

An unhandled exception occurred while processing the request.

ArgumentException: The 'ClientId' option must be provided. (Parameter 'ClientId')

Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions.Validate()

ArgumentException: The 'ClientId' option must be provided. (Parameter 'ClientId')

Microsoft.AspNetCore.Authentication.OAuth.OAuthOptions.Validate()
Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions.Validate(string scheme)
Microsoft.AspNetCore.Authentication.AuthenticationBuilder+<>c__DisplayClass4_0<TOptions, THandler>.b__1(TOptions o)
Microsoft.Extensions.Options.ValidateOptions.Validate(string name, TOptions options)
Microsoft.Extensions.Options.OptionsFactory.Create(string name)
Microsoft.Extensions.Options.OptionsMonitor+<>c__DisplayClass11_0.b__0()
System.Lazy.ViaFactory(LazyThreadSafetyMode mode)
System.Lazy.ExecutionAndPublication(LazyHelper executionAndPublication, bool useDefaultConstructor)
System.Lazy.CreateValue()
System.Lazy.get_Value()
Microsoft.Extensions.Options.OptionsCache.GetOrAdd(string name, Func createOptions)
Microsoft.Extensions.Options.OptionsMonitor.Get(string name)
Microsoft.AspNetCore.Authentication.AuthenticationHandler.InitializeAsync(AuthenticationScheme scheme, HttpContext context)
Microsoft.AspNetCore.Authentication.AuthenticationHandlerProvider.GetHandlerAsync(HttpContext context, string authenticationScheme) Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)

您需要将 appsettings.example.json 复制到 appsettings.json,然后在 运行 之前更新其中的所有字段。您必须从您可以免费创建的 DocuSign 开发者帐户获取集成密钥。