将进程标识设置为用户的IIS 7.5错误USERPROFILE [英] IIS 7.5 with process idenity set to user has wrong USERPROFILE

查看:335
本文介绍了将进程标识设置为用户的IIS 7.5错误USERPROFILE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,这是我对类似主题的第三个问题..但我仍然没有答案,也许只能接近它(参见第一个

我的web应用程序(IIS 7.5下的ASP.NET MVC3)运行git来访问一些github存储库。将我的工作站升级到Windows SP1后,它停止工作。原因是,一旦git开始,它实际上运行ssh.exe与github进行通信。 ssh.exe似乎挂起,因此所有应用程序都挂起。



该应用程序使用的应用程序池使用与我自己相同的进程标识。但是使用ProcessHacker我可以看到下面的图片:



但键通常在〜/ .ssh中(在我的情况下是c:



我的问题是,为什么w3wp.exe认为它的配置文件位于/ system32 / config / systemprofile应用程序中, SYSTEM32 /配置/ systemprofile?有可能改变这一点吗?它是应用程序池的预期行为还是我的机器的问题?



等待任何线索!

编辑



加载应用程序池的用户配置文件属性设置为TRUE。

解决方案

ssh.exe 实际上是使用HOME环境变量。检查设置是否正确。


First of all, this is my third question on the similar topic.. and still I have no answer, maybe only approaching it (see first, second).

My web application (ASP.NET MVC3 under IIS 7.5) runs git to access some github repositories. After I upgraded my workstation to Windows SP1 it stopped to work. The reason was that as soon as git started, it actually runs ssh.exe to communicate with github. The ssh.exe appears to hangs up, so all application hangs.

The application pool used by that application use the same process identity as myself. But using ProcessHacker I can see following picture:

Because of USERPROFILE is pointed to /system32/config/systemprofile ssh.exe is expecting to have .ssh folder, that contains public/private keys. Since keys are not there it hangs.

But keys are typically in ~/.ssh (in my case c:\users\alexander.beletsky.ssh). As soon as I copied keys into /system32/config/systemprofile application started to work as expected.

My question is, why does w3wp.exe thinks that its profile in /system32/config/systemprofile? is it possible to change that? it is expected behaviour for application pool or just issue of my machine?

Waiting for any clues!

EDIT

Load User Profile property of Application Pool is set to TRUE.

解决方案

ssh.exe is actually using HOME environment variable. Check if it set correctly.

这篇关于将进程标识设置为用户的IIS 7.5错误USERPROFILE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆