IIS 7.5 with process idenity set to user has wrong USERPROFILE

前端 未结 2 1429
粉色の甜心
粉色の甜心 2021-01-24 11:35

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 MVC

相关标签:
2条回答
  • 2021-01-24 12:12

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

    0 讨论(0)
  • 2021-01-24 12:20

    As my machine on which this works has the same value in enviroment page of process hacker, and still

    Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) has value of my user appData, and I have SP1, I think that it should not be related to it, but to something in your configuration that could have been changed. Check if your inetmgr has properly set identity for your application. Open C:\inetpub\temp\appPools\yourAppPoolName\yourAppPoolName.config and check if this setting exists:

    <configuration>
        ....
      <system.applicationHost>
        <sites>
          <site name="Default Web Site" id="1" serverAutoStart="true">
           <application path="/yourAppPath" applicationPool="yourAppPoolName">
                    <virtualDirectory path="/" physicalPath="C:\inetpub\wwwroot\yourAppPath" userName="yourUserName" password="[enc:AesProvider:someHashHere=:enc]" />
           </application>
           ...
          </site>
        </sites>
      <system.applicationHost>
    
    <configuration>
    

    If not, you can configure it there (put password in plain text or you can configure it using inetmgr like I described in my answer to your other question).

    0 讨论(0)
提交回复
热议问题