C# IIS 中是否有 ASP.NET 网站管理工具?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/456921/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-04 04:05:51  来源:igfitidea点击:

Is there a ASP.NET web site administration tool in IIS?

c#asp.netvisual-studio-2008iis

提问by

I am using asp.net web site administration tool to manage the different roles in my project (currently Customer and Administrator). During the development, in vs 2008, its very easy to manage the roles. (Project -> Asp.Net configuration). How do I manage my roles and users when the system is deployed (IIS)? Is it possible to run a "asp.net web administration tool-services" on IIS?

我正在使用 asp.net 网站管理工具来管理我的项目中的不同角色(目前是客户和管理员)。在开发过程中,在 vs 2008 中,管理角色非常容易。(项目 -> Asp.Net 配置)。系统部署 (IIS) 时如何管理我的角色和用户?是否可以在 IIS 上运行“asp.net Web 管理工具服务”?

采纳答案by Ken Browning

Supposedly, developers are intended to admin the site using the visual studio web site administration tool. There is no out-of-the-box web interface to front-end that stuff.

据说,开发人员打算使用 Visual Studio 网站管理工具来管理网站。没有开箱即用的 Web 界面来前端那些东西。

回答by Zhaph - Ben Duguid

If you are using a SQL Server instance, rather than the mapped database file in APP_DATA you can use the ASP.Net configuration tool by temporarily changing the Connection String for the database to point to your live database rather than the local one - this will enable you to edit the roles/users etc.

如果您使用的是 SQL Server 实例,而不是 APP_DATA 中的映射数据库文件,您可以通过临时更改数据库的连接字符串以指向您的实时数据库而不是本地数据库来使用 ASP.Net 配置工具 - 这将启用您可以编辑角色/用户等。

However, it's one of those areas where you should probably look at writing/finding a tool to edit/manage these properly.

但是,这是您可能应该考虑编写/寻找工具来正确编辑/管理这些的领域之一。

回答by Wiebe Tijsma

This article describes how to create one, including the code that you can directly embed in your website:

本文介绍了如何创建一个,包括您可以直接嵌入您网站的代码:

http://aspnet.4guysfromrolla.com/articles/053007-1.aspx

http://aspnet.4guysfromrolla.com/articles/053007-1.aspx

This article describes how you can run the ASP.NET configuration website administration tool on IIS: http://blogs.msdn.com/rahulso/archive/2006/03/09/547402.aspx

本文介绍如何在 IIS 上运行 ASP.NET 配置网站管理工具:http: //blogs.msdn.com/rahulso/archive/2006/03/09/547402.aspx

Update: here's a very basic example in MVC3/Razor: http://www.mikepope.com/blog/DisplayBlog.aspx?permalink=2240#Create_a_page_to_manage_roles

更新:这是 MVC3/Razor 中的一个非常基本的示例:http: //www.mikepope.com/blog/DisplayBlog.aspx?permalink=2240#Create_a_page_to_manage_roles

回答by omid naghizadeh

you can create an application in IIS, you just know that direction of web administration tools (C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ASP.NETWebAdminFiles)

你可以在IIS中创建一个应用程序,你只知道web管理工具的方向(C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ASP.NETWebAdminFiles)

the other point that you should now is that you need two parameter in the URL.

您现在应该注意的另一点是在 URL 中需要两个参数。

AS an example: http://localhost/PMIS-Security/default.aspx?applicationPhysicalPath=C:\PMIS&applicationUrl=/PMIS

例如: http://localhost/PMIS-Security/default.aspx?applicationPhysicalPath=C:\PMIS&applicationUrl=/PMIS

applicationPhysicalPath=C:\PMIS applicationUrl=/PMIS

applicationPhysicalPath=C:\PMIS applicationUrl=/PMIS

回答by Ody

You can use Servant. Get it here http://servant.io/just install it on your server and you are good to go

您可以使用仆人。在此处获取它http://servant.io/只需将其安装在您的服务器上即可

回答by Maxim Mikhisor

Try this ASP.NET Web Site Administration Tool http://sourceforge.net/projects/wsatudri/

试试这个 ASP.NET 网站管理工具 http://sourceforge.net/projects/wsatudri/