IIS防爆preSS不似乎是捡了更改的applicationHo

IIS防爆preSS不似乎是捡了更改的applicationHo

本文介绍了IIS防爆preSS不似乎是捡了更改的applicationHost.config的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我跟着接受的答案为<一个href="http://stackoverflow.com/questions/5331206/how-to-run-iisex$p$pss-app-pool-under-a-different-identity">this问题,以试图让我的.NET Web应用程序在某些特定的凭据运行时,通过我的机器上运行IIS防爆preSS本地服务器调试,不过,我似乎无法得到改变捡起。诚然,我不知道如何验证实际发生的事情,但我看到的行为使我相信Web应用程序只是继续在我自己的Windows凭据运行。我已经停止通过系统管理器中的IIS防爆preSS的过程,也是重新启动我的电脑,但没有骰子。下面是我在我的ApplicationHost.config文件...

 &LT; applicationPoolDefaults managedRuntimeLoader =4.0版&GT;
    &LT;中processModel的userName =用户名密码=a_strong_pwd/&GT;
&LT; / applicationPoolDefaults&GT;
 

解决方案

根据这个答案它实际上是不可能的使用对ApplicationHost.config的中processModel部分指定下IISEx preSS将运行用户当Visual Studio启动一个.NET Web应用程序。

我打字很多的单词和多个段落,使我平凡的答案不会被转换为一个注释。

I followed the accepted answer to this question to try to get my .Net web application to run under a specific set of credentials when debugging locally via the IIS Express server running on my machine, however, I can't seem to get the changes to pick up. Admittedly, I have no idea how to verify what is actually happening, but the behavior I'm seeing leads me to believe that the web app just continues to run under my own Windows credentials. I've stopped the IIS Express processes via System Manager and also restarted my computer, but no dice. Here's what I have in my applicationhost.config file...

<applicationPoolDefaults managedRuntimeLoader="v4.0">
    <processModel userName="username" password="a_strong_pwd" />
</applicationPoolDefaults>
解决方案

According to this answer it is actually not possible to use the processModel section of applicationhost.config to specify the user under which IISExpress will run when Visual Studio launches a .Net web application.

I am typing lots of words and multiple paragraphs so that my trivial answer does not get converted to a comment.

这篇关于IIS防爆preSS不似乎是捡了更改的applicationHost.config的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-05 01:45