有一段时间了,我一直遇到Team Foundation Server构建/部署过程的问题,间歇性地抛出以下错误:
Unhandled Exception: System.TypeInitializationException: The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception. ---> System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
at LibGit2Sharp.Core.NativeMethods.git_threads_init()
at LibGit2Sharp.Core.NativeMethods.LibraryLifetimeObject..ctor()
at LibGit2Sharp.Core.NativeMethods..cctor()
--- End of inner exception stack trace ---
at LibGit2Sharp.Core.NativeMethods.RemoveHandle()
at LibGit2Sharp.Core.NativeMethods.LibraryLifetimeObject.Finalize()
Exception Message: MSBuild error 255 has ended this build. You can find more specific information about the cause of this error in above messages. (type BuildProcessTerminateException) Exception Stack Trace: at …Run Code Online (Sandbox Code Playgroud) 我正在尝试在 PowerShell 中运行以下命令:
命令-
netsh http delete sslcert hostnameport="services.localtest.me:443"
Run Code Online (Sandbox Code Playgroud)
结果-
'hostnameport' is not a valid argument for this command.
The syntax supplied for this command is not valid. Check help for the correct syntax.
Run Code Online (Sandbox Code Playgroud)
我收到一条错误消息,指出 hostnameport 不是有效参数,但它在此站点上记录为社区添加。另外,如果您查看 Microsoft 的一些 GitHub 存储库,您会发现它正在被使用,例如在此 PowerShell 脚本中。
这个论点仅在特定版本的 Windows 上有效吗?只能在 Windows Server 上使用吗?我可以在 Windows 功能中启用某些功能来使这个论点起作用吗?
我遇到Visual Studio 2017 RC的问题,当我使用IIS Express运行MVC和/或WebAPI应用程序时,应用程序从未实际运行过.相反,我在浏览器中遇到了一个页面,表明它正在尝试附加,并且从那里开始不再进一步.如果我在浏览器中打开另一个选项卡/窗口并尝试直接导航到启动URL,它就会永远旋转.同样,当我使用dot net run命令运行时,应用程序启动并运行正常.
似乎没有任何错误我可以看到,只是浏览器无限期地旋转而实际上没有加载页面/端点.
注意:这适用于大多数情况.VS中新创建的项目没有任何更改,以前版本的已知工作项目等.
我正在尝试将Ping Federate集成为我的IdentityServer4实例的外部OIDC提供程序.当我启动外部登录流程时,我收到以下错误:
System.Exception: Correlation failed.
at Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler`1.<HandleRequestAsync>d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at IdentityServer4.Hosting.FederatedSignOut.AuthenticationRequestHandlerWrapper.<HandleRequestAsync>d__6.MoveNext() in C:\local\identity\server4\IdentityServer4\src\IdentityServer4\Hosting\FederatedSignOut\AuthenticationRequestHandlerWrapper.cs:line 38
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.<Invoke>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware.<Invoke>d__7.MoveNext()
--- End of stack trace from previous location …Run Code Online (Sandbox Code Playgroud) .net ×1
.net-core ×1
c# ×1
iis-express ×1
netsh ×1
pingfederate ×1
powershell ×1
tfs ×1
tfs2013 ×1
windows ×1