如何在管理模式下运行asp.net站点 [英] How run asp.net site in administrative mode

查看:90
本文介绍了如何在管理模式下运行asp.net站点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个asp.net站点,内部运行一个应用程序。当我打开任务管理器时,它显示该进程与用户默认应用程序池,但我的应用程序无法正常运行。



在身份设置为应用程序池身份.IF我将用户的哪个管理权限放在应用程序池标识中然后它工作正常。



但问题是我有许多访问该网站的用户和远程用户。

除了自定义用户之外,如果有人打开该网站,则无法成功运行内部应用程序。



我可以向管理用户组添加网络服务以访问该网站suuccfullly是这个核心解决方案。



Thanksssssss

I have one asp.net site which internally run one application.when i open the task manager it shown that process with user default application pool,but my application not run properly.

In identity set as application pool identity.IF i put user which administrative right in application pool identity then it works fine.

But question is i have lots of user and remote user that accessing that website.
So other than custom user if anyone open that site cannot run internal application successfully.

Can i add network service to adminstative user group to access that site suuccfullly is t this corect soltuion.

Thanksssssss

推荐答案

当您从网络中的浏览器访问您的网站时,您需要在受信任的站点区域中进行访问,此外,您需要打开匿名访问权限以获得LAN中任何用户的网站访问权限

到打开它看下面的代码片段

在IIS中启用匿名访问 [ ^ ]



基本上在您的情况下,您的应用程序打开一些其他需要身份验证的应用程序吗?那你为什么不尝试使用Identity Impersonate标签的本地管理员用户

添加以下web.config

When you access your website from browser in your network then you need to it in trusted site zone and additionally you need to turned ON anonymous access to get website access by any user in your LAN
to switch it ON see below snippet
Enable Anonymous access in IIS[^]

Basically in your case, your application open some other application which needs authentication right ? so why don't you try with local Administrator user with Identity Impersonate tag
add below web.config
<system.web>
  <authentication mode="Windows"></authentication>
  <identity password="bar" username="foo" impersonate="true"></identity>
</system.web>


这篇关于如何在管理模式下运行asp.net站点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆