我不熟悉Microsoft Dynamics,每次在录制的脚本上运行性能测试时,都会出现以下错误:
Generate_Collection_Request_Performance Scenario1 <none> Test Error TestError Test method MS.Dynamics.Performance.Application.TaskRecorder.Generate_Collection_RequestPerf.Generate_Collection_Request_Performance threw exception:
System.ServiceModel.Security.MessageSecurityException: The HTTP request was forbidden with client authentication scheme 'Anonymous'. ---> System.Net.WebException: The remote server returned an error: (403) Forbidden".
我尝试了以下代码
<AuthenticatorConfiguration Id="SelfMintingAdminUser" Class="MS.Dynamics.TestTools.CloudCommonTestUtilities.Authentication.SelfMintedTokenAuthenticator"> <!-- NOTE: admin username needs to be specified --> <Credentials Username="xxxx@xxx.com" /> </AuthenticatorConfiguration>
在CloudEnvironment.config中,但是错误没有解决。您能告诉我如何授权吗?
有人知道如何解决或导致错误的原因吗?