小编Eiv*_*eth的帖子

如何在Windows 10/IIS 10上附加到IIS进程(w3wp.exe)?

在Windows 8.1中使用Visual Studio 2013,我已经习惯通过附加到运行应用程序池的w3wp.exe进程来调试IIS中托管的应用程序.

从8.1升级到10后,即使选中了"显示所有用户的进程"复选框,我也无法在"附加到进程"对话框中看到任何w3wp.exe进程.

IIS 10中应用程序池的进程名称是什么?也许在Windows 10中有另一种调试IIS应用程序的方法?

更新: 问题是所有w3wp.exe进程都已停止.只需通过浏览器点击URL再次启动w3wp.exe进程,我就可以像往常一样进行调试.

asp.net iis visual-studio-2013 windows-10

24
推荐指数
3
解决办法
3万
查看次数

Visual Studio 2017解决方案资源管理器为空

当我在VS2017中打开现有的VS2015解决方案文件时,解决方案资源管理器为空.我试图关闭并重新打开Visual Studio几次,但每次都会发生同样的事情.如何解决这个问题?

visual-studio-2017

9
推荐指数
1
解决办法
6992
查看次数

无法使用Github for Windows在Windows 8 RC中克隆此存储库

尝试使用GitHub for Windows克隆Windows 8 RC中的一个GitHub存储库时,我收到以下错误消息:

无法克隆此存储库.请检查您的互联网连接.

  • 当我尝试使用GitHub for Windows在Windows 7中克隆相同的存储库时,它会成功.
  • 在出现错误消息之前,Windows 8中的克隆进展到大约9%.

我检查了日志文件TheLog.txt,它说错误设置证书验证位置:

2012-06-02 20:28:12.5876|INFO|GitHub.Extensions.ReactiveScreen|Activating GitHub.ViewModels.AboutViewModel.
2012-06-02 20:28:57.4916|INFO|GitHub.Extensions.ReactiveScreen|Deactivating GitHub.ViewModels.AboutViewModel.
2012-06-02 20:28:57.4916|INFO|GitHub.Extensions.ReactiveScreen|Closed GitHub.ViewModels.AboutViewModel.
2012-06-02 20:28:59.0532|INFO|GitHub.Models.RepositoryModel|Cloning [repository-url].git
2012-06-02 20:28:59.0532|INFO|GitHub.Helpers.GitRemote|Cloning '[repository-url].git' to 'Spotify-Metro-Style-App' in directory 'C:\GitHub
2012-06-02 20:28:59.0562|INFO|GitHub.PortableGit.Helpers.GitEnvSetupExtensions|Configuring SSH Agent: :
2012-06-02 20:28:59.0562|INFO|GitHub.PortableGit.Helpers.GitEnvSetupExtensions|PATH is C:\Users\EivindGussiås\AppData\Local\GitHub\PortableGit_0812189c12ccff4584523d6efce294a33dd2332a\cmd;C:\Users\EivindGussiås\AppData\Local\GitHub\PortableGit_0812189c12ccff4584523d6efce294a33dd2332a\bin;C:\Users\EivindGussiås\AppData\Local\GitHub\PortableGit_0812189c12ccff4584523d6efce294a33dd2332a\mingw\bin;C:\Users\EivindGussiås\AppData\Local\Apps\2.0\7VOQ2HDO.HJX\5506OVG3.2LE\gith..tion_8f45a2159c87c850_0001.0000_70cd4637d2963700;C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319;C:\WINDOWS\System32
2012-06-02 20:28:59.0782|INFO|GitHub.IO.ObservableProcess|git.exe clone --progress --recursive [repository-url].git "Spotify-Metro-Style-App" 
2012-06-02 20:29:02.2949|WARN|GitHub.Extensions.StandardUserErrors|Showing user and error Please check your internet connection.
GitHub.IO.ProcessException: Cloning into 'Spotify-Metro-Style-App'...
error: error setting certificate verify locations:
  CAfile: C:\Users\EivindGussiås\AppData\Local\GitHub\PortableGit_0812189c12ccff4584523d6efce294a33dd2332a/bin/curl-ca-bundle.crt
  CApath: none
 while accessing [repository-url].git/info/refs
fatal: HTTP request failed …
Run Code Online (Sandbox Code Playgroud)

github-for-windows

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

Git合并冲突与本地和原点上添加的500个文件

我在Visual Studio中使用Git,突然在所有文件上出现了这种冲突 截图

我可以点击每一个冲突并选择Take Source,但由于有534个冲突,我宁愿在命令行上进行批量解析.解决所有这些冲突的适当命令是什么?

git git-merge visual-studio

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

覆盖Webapi OData链接的主机

我正在使用WebAPI 2.2和Microsoft.AspNet.OData 5.7.0创建支持分页的OData服务。

当托管在生产环境中时,WebAPI驻留在未对外公开的服务器上,因此OData响应中返回的各种链接(例如@odata.context@odata.nextLink指向内部IP地址,例如,http://192.168.X.X/<AccountName>/api/...等等)。

Request.ODataProperties().NextLink通过在每个ODataController方法中实现一些逻辑以将内部URL替换为外部URL(例如)https://account-name.domain.com/api/...,我已经能够修改,但这非常不便,并且只能修复NextLinks。

有什么方法可以在OData服务的配置时设置外部主机名?我已经看过一个属性,Request.ODataProperties().Path并且想知道是否可以在config.MapODataServiceRoute("odata", "odata", GetModel());调用时或在GetModel()使用例如ODataConventionModelBuilder?的实现中设置基本路径?


更新:到目前为止,我想出的最好的解决方案是创建一个BaseODataController重写该Initialize方法并检查是否存在Request.RequestUri.Host.StartsWith("beginning-of-known-internal-IP-address"),然后像下面这样重写RequestUri:

var externalAddress = ConfigClient.Get().ExternalAddress;  // e.g. https://account-name.domain.com
var account = ConfigClient.Get().Id;  // e.g. AccountName
var uriToReplace = new Uri(new Uri("http://" + Request.RequestUri.Host), account);
string originalUri = Request.RequestUri.AbsoluteUri;
Request.RequestUri = new Uri(Request.RequestUri.AbsoluteUri.Replace(uriToReplace.AbsoluteUri, externalAddress));
string newUri = Request.RequestUri.AbsoluteUri;
this.GetLogger().Info($"Request URI was rewritten from {originalUri} to {newUri}");
Run Code Online (Sandbox Code Playgroud)

这可以完美地修复@odata.nextLink所有控制器的URL,但是由于某些原因, …

asp.net odata asp.net-web-api odata-v4

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

Office.context.ui.displayDialogAsync抛出5001内部错误

我正在使用Visual Studio项目模板创建一个新的Outlook Mail加载项,我在其中获取一个显示当前所选电子邮件属性的示例.

我添加了一个带有click事件处理程序的按钮,使用以下代码打开一个对话框:

  $('#clickMeButton').click(function () {
      Office.context.ui.displayDialogAsync('https://localhost/OutlookAddinTest/MessageDialog.html', {
          height: 40,
          width: 40,
          requireHTTPS: true
      }, function (result) {
          _dlg = result.value;
          _dlg.addEventHandler(Microsoft.Office.WebExtension.EventType.DialogMessageReceived, dialogMessageReceived);
      });
  });
Run Code Online (Sandbox Code Playgroud)

我正在使用Chrome中的Outlook网络客户端进行调试: Chrome中调试会话的屏幕截图

我不知道它是否与此错误相关,但在我点击clickMeButton之前,我可以在加载网站后看到以下错误: 在此输入图像描述

osfruntime.js:13 Error while parsing the 'sandbox' attribute: 'ms-allow-popups' is an invalid sandbox flag.OSF.OsfControl._createIframeAndActivateOsfControl @ osfruntime.js:13
Run Code Online (Sandbox Code Playgroud)

displayDialogAsync(...)函数不应该用于Outlook Mail加载项吗?这可能是一个问题,因为它会在主Outlook html页面的上下文中加载另一个html页面.但它不能在Outlook桌面客户端中运行.

office-addins outlook-addin office-js

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