Workaround for “Visual Studio Web Request handler could not be found” when using github?

蹲街弑〆低调 提交于 2019-12-01 15:08:10

问题


When I choose "Open in Visual Studio" on github, I get the following error:

"Visual Studio Web Request handler could not be found"

I believe this is due to the git-client protocol handler not being registered properly.

There's a closed bug for VS2015 listed here but no workaround: https://github.com/github/VisualStudio/issues/140

I've tried to repair Visual Studio 2017 but that didn't fix it. Is there a workaround, perhaps by editing HKEY_CLASSES_ROOT\git-client entries?


回答1:


The solution is easy: just reassign the default handler for the git-client protocol. To do that, press the Windows-Key, enter "default apps" and select the settings page. Go down, select "Choose default apps by protocol" and look for "git-client". Click and select the Microsoft Visual Studio Web Protocol Handler Selector for VS2017.

When you click the "Open in Visual Studio" - button in Github, Visual Studio 2017 should open and you can clone the repo in Team Explorer.



来源:https://stackoverflow.com/questions/44106007/workaround-for-visual-studio-web-request-handler-could-not-be-found-when-using

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!