英文:
Profile under C:\Users\ "websitename" after IIS website when opened from localhost\websitename
问题
I have a website under C:\inetpub\wwwroot\websitename. If I open it (any browser), Windows creates a user called "websitename" under C:\Users, C:\Users\websitename.
That becomes the actual ACTIVE profile, breaking, well, basically everything.
The user is created in the registry as well here:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-82-1552494301-1869227342-3327666674-1719597003-3231809566
with a path added: C:\Users\websitename
I have never encountered this before.
Anyone seen this and have a resolution? IIS 10 on Windows 10 Pro.
英文:
I have a website under C:\inetpub\wwwroot\websitename. If I open it (any browser), Windows creates a user called "websitename" under C:\Users, C:\Users\websitename.
That becomes the actual ACTIVE profile, breaking, well, basically everything.
The user is created in the registry as well here:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-82-1552494301-1869227342-3327666674-1719597003-3231809566
with a path added: C:\Users\websitename
I have never encountered this before.
Anyone seen this and have a resolution? IIS 10 on Windows 10 Pro.
答案1
得分: 1
这主要是因为在添加站点时,您没有指定一个已存在的应用程序池(如DefaultAppPool)。在这种情况下,当您添加一个站点时,它将默认自动添加一个新的应用程序池(与您的站点名称相同),并且它包含属性LoadUserProfile=true。
因此,这是在这种情况下发生此问题的主要原因。
如果您想避免这种现象,您可以首先创建一个应用程序池,并在添加站点之前将其属性LoadUserProfile=false
设置为false,或者使用现有的应用程序池。
您可以在官方文档中找到相应的描述:Application Pool Identities - User profile。
英文:
Most likely, this is because you did not specify an existing application pool (such as DefaultAppPool) when adding the site. At this time, when you add a site, it will automatically add a new application pool by default(with the same name as your sitename), and it contains the property LoadUserProfile=true.
So this is the main reason why this problem occurs in this case.
If you want to avoid this phenomenon, you can create an application pool first, and set its property LoadUserProfile=false
before adding the site, or use an existing application pool.
And you can find the corresponding description in the official documentation: Application Pool Identities - User profile
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论