我整个晚上都在研究一种新的解决方案.没有问题的建设,但突然间,我在构建时开始出现以下错误:
操作无法完成.参数不正确.
现在,我已经搜索了许多线程,但我还没有找到一个像样的解决方案.我还要提一下.我重新启动,试图修复我的VS 2015 Express安装,没有运气.
这种情况发生在每个解决方案上,而不仅仅是我的新解决方案,即使我关闭所有内容,启动一个全新的项目并尝试构建.
欢迎大家提出意见!
我刚刚开始通过stackify使用Retrace来监控我的应用程序,并且看到了数以千计的错误:
System.FormatException: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
at System.Guid.TryParseGuidWithNoStyle
at System.Guid.TryParseGuid
at System.Guid..ctor
at System.DirectoryServices.AccountManagement.ADStoreCtx.IdentityClaimToFilter
Run Code Online (Sandbox Code Playgroud)
这些错误每天发生数千次,我无法理解为什么?我很乐意发布更多代码,如果它有助于确定问题,但是现在我将发布我认为相关的内容,请不要在没有给我机会在被要求时提供更多必要信息的情况下投票.
首先,我的应用程序如下工作:
MVC前端 - 使用Windows身份验证(使用RestSharp来调用后端)
Web API后端,使用从RestSharp NTLM身份验证传递的Windows身份验证.
RestSharp包装器
public object WebRequest<T>(string controller, Dictionary<string, string> parameters, Method apiMethod, string action)
{
RestClient client = new RestClient(Url + controller + "/");
client.Authenticator = new NtlmAuthenticator();
RestRequest request = new RestRequest(action, apiMethod);
if (parameters != null && parameters.Count > 0)
{
foreach (var parameter in parameters)
{
request.AddParameter(parameter.Key, parameter.Value);
}
}
object result …
Run Code Online (Sandbox Code Playgroud)