小编Rya*_*oza的帖子

TFS 2013在构建/部署期间引发Lib2GitSharp错误(间歇性)

有一段时间了,我一直遇到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)

.net c# tfs tfs2013

28
推荐指数
1
解决办法
7061
查看次数

参数对于 netsh http 中的主机名端口无效,删除 sslcert

我正在尝试在 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 功能中启用某些功能来使这个论点起作用吗?

windows powershell netsh

8
推荐指数
1
解决办法
4978
查看次数

Visual Studio 2017不使用IIS Express运行核心应用程序

我遇到Visual Studio 2017 RC的问题,当我使用IIS Express运行MVC和/或WebAPI应用程序时,应用程序从未实际运行过.相反,我在浏览器中遇到了一个页面,表明它正在尝试附加,并且从那里开始不再进一步.如果我在浏览器中打开另一个选项卡/窗口并尝试直接导航到启动URL,它就会永远旋转.同样,当我使用dot net run命令运行时,应用程序启动并运行正常.

似乎没有任何错误我可以看到,只是浏览器无限期地旋转而实际上没有加载页面/端点.

注意:这适用于大多数情况.VS中新创建的项目没有任何更改,以前版本的已知工作项目等.

iis-express .net-core visual-studio-2017

7
推荐指数
1
解决办法
1万
查看次数

IdentityServer4与外部提供程序的关联失败错误

我正在尝试将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)

pingfederate openid-connect identityserver4

7
推荐指数
1
解决办法
1853
查看次数

JS格式的Visual Studio代码JSX在保存时很差

在Visual Studio Code中我试图在.js文件中编写JSX,这很好.但是,当我去保存文件时,VSC很难格式化文件中的代码,因为它似乎并不理解文件中有JSX.有想法该怎么解决这个吗?

预存

后保存

visual-studio-code

2
推荐指数
1
解决办法
617
查看次数