Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何配置我的 WCF 服务以在管理员帐户下运行?(这不是用于生产,仅用于测试)。
它只是一个 web.config 调整吗?
IIS 7 托管 WCF 服务。
在 IIS 7 下确保服务在配置为在所需用户下运行的应用程序池下运行。
如果您将其作为 ASP.NET 服务托管,则应以管理员帐户运行 IIS 进程。如果您将其托管在 Windows 服务下,则应将其配置为以管理员身份运行。