【问题标题】:What is the worker process account in machine.config if <processmodel autoConfig="true">?如果 <processmodel autoConfig="true">,machine.config 中的工作进程帐户是什么?
【发布时间】:2016-05-11 01:35:48
【问题描述】:

我正在尝试在 Windows 10 中使用 IIS 在 localhost 上运行网站。 我希望能够通过局域网中的另一台电脑使用本地 IP 地址和端口访问该网站。我刚开始在 Visual Studio 2015 中调试应用程序,我可以运行

<binding protocol="http" bindingInformation="*:51258:localhost" />

但使用

<binding protocol="http" bindingInformation="*:51258:192.168.1.213" />

在 Visual Studio 中导致“拒绝访问”弹出窗口

我已按照 https://support.microsoft.com/en-sg/kb/894433 但与第7步混淆,即 7。添加在 Machine.config 文件的 processModel 元素中配置的工作进程帐户 我能够找到 machine.config 文件,但进程模型设置为 autoconfig=true 即

我是否必须设置自定义帐户,或者是否有我没有看到的默认工作进程帐户?

这样我就可以执行以下步骤来解决访问被拒绝问题... 5. 在策略窗格中,右键单击身份验证后模拟客户端,然后单击属性。 6. 单击添加用户或组。 7. 添加在 Machine.config 文件的 processModel 元素中配置的工作进程帐户。

请注意,我已经添加了对我运行网站的目录具有权限的 IUSR。

【问题讨论】:

    标签: asp.net visual-studio iis iis-7 processmodel


    【解决方案1】:

    好吧,经过更多的挖掘,我终于让它工作了。我不必在 applicationhost.config

    的进程模型块中添加任何工作人员帐户

    我只需要从高级服务安装 HTTP 激活,如答案之一所述 what to do when accessing http://192.168.1.213:51258/Default.aspx doesnt work

    然后我跟着 netsh http 添加 urlacl url=http://192.168.1.213:51258/user=everyone

    但这并没有解决它,所以我按照 Visual Studio Web 服务器中的配置更改使用自定义服务器最终解决了这个问题,在下面的链接中找到 how to setup custom web server in visual studio

    【讨论】:

      猜你喜欢
      • 2016-09-11
      • 2011-06-13
      • 2012-03-21
      • 2011-08-18
      • 1970-01-01
      • 1970-01-01
      • 2014-03-19
      • 1970-01-01
      相关资源
      最近更新 更多