- ASP.NET Web Site Administration Tool
Infobox Software
name = Web Site Administration Tool
caption = A screenshot of Web Site Administration Tool main page
developer =
latest_release_version =
latest_release_date =
latest_preview_version =
latest_preview_date =
operating_system =
platform =
genre =
license =
website =The ASP.NET Web Site Administration Tool is a utility provided along with
Microsoft Visual Studio which assists in the configuration and administration of awebsite created using Microsoft Visual Studio 2005 and later versions.Cite web|url=http://msdn.microsoft.com/en-us/library/yy40ytx0(vs.80).aspx|title=ASP.NET Web Site Administration Tool|accessdate=2008-05-22|publisher=MSDN Visual Studio 2005 Development Center]History
The Web Site Administration tool was first introduced with
ASP.NET 2.0 along with ASP.NET Microsoft Management Console (MMC) Snap-in.Cite web|url=http://msdn.microsoft.com/en-us/library/ms178687(VS.80).aspx|title=What's New in ASP.NET Configuration |accessdate=2008-05-22|publisher=MSDN Visual Studio 2005 Development Center]Accessing the Tool
The Web Site Administration Tool could be accessed by clicking ASP.NET Configuration from the Website menu. It can also be accessed by clicking on the ASP.NET Configuration icon in the Solution Explorer window.
Features
The ASP.NET Web Site Administration tool is a multi-tabbed utility which has the following features:
* Web Site Administration Tool Security Tab
* Web Site Administration Tool Application Tab
* Web Site Administration Tool Provider Tab
* Web Site Administration Tool InternalsWeb Site Administration Tool Security Tab
The security tab is used to create users and roles, group users under different roles and assign access rules either at the role-level or user-level.Cite web|url=http://msdn.microsoft.com/en-us/library/ssa0wsyf.aspx|title=Web Site Administration Tool Security Tab|accessdate=2008-05-23|publisher=MSDN] cite book | title=Expert ASP.NET 2.0 Advanced Application Design: Advanced Application Design | url=http://books.google.co.in/books?id=RCVoZfzs6hwC&pg=PA191&lpg=PA191l&source=web&ots=dWcSWieXbi&sig=a6pm4m70IMmwJx5iqTLqenPDciQ&hl=en#PPA192,M1| last=Selly| first=Dominic| coauthors=Andrew Troelsen, Tom Barnaby| date=2005| pages=191| publisher=Apress| id=ISBN:159059522X] Cite web|url=http://www.asp.net/LEARN/videos/video-06.aspx|title=Lesson 9: Securing your Web Site with Membership and Login Controls|accessdate=2008-05-23] cite book | title=Pro ASP.NET 2.0 Website Programming | url=http://books.google.co.in/books?id=zzlhSgGtVe4C&pg=PA2&lpg=PA2&source=web&ots=h1BacPycnu&sig=qQb_EIKRBysBhw6Rr4Vb9jD-Ci8&hl=en#PPA2,M1| last=Armstrong| first=Damon| date=2005| pages=2-6| publisher=Apress| id=ISBN:1590595467] When the Web site administration tool is opened to modify the existing settings, a new database is created in the App_Data folder of the application. This database stores ASP.NET membership-related information. The name of the database created is ASPNETDB by default.
The security tab simplifies and optimizes user
authentication andauthorization . It makes it comparatively easy to configure user permissions than code-based user-defined authentication systems which require a great amount of time, cost and manpower. However, a major drawback of this tool is that access rules could be defined only at the folder-level and not at the page-level.Web Site Administration Tool Application Tab
The Application tab is used to specify application settings, configure
SMTP settings and enable or disabledebugging andtracing apart from other uses. The Application tab interacts with the configuration file of the application (web.config ) and not with the ASPNETDB database.Cite web|url=http://www.brainbell.com/tutorials/ASP/.NET_Configuration.html|title=.NET Configuration|accessdate=2008-05-23] Application settings are created as objects and inserted as name-value pairs in the web.config file.Web Site Administration Tool Provider Tab
The Provider tab is used to specify the database provider for the ASPNETDB database used to store ASP.NET membership and role information. The security page does not appear unless and until the database provider is specified in the Providers tab. An SQL Data provider is generally used, but Oracle Data providers are also used in case of Oracle databases. The provider alloows the user the option of choosing a single database to store all data related to the ASP.NET Website Administration tool or different databases for each purpose.
Web Site Administration Tool Internals
Apart from these tabs, there are a number of other features and components associated with the ASP.NET Web Administration tool. The ASP.NET Configuration APIs which the ASP.NET Web Site Administration tool makes use of to access and modify the security and application settings in the Web.config file is one of them.
Programmatic access
Programmatic access to the features provided by the ASP.NET Web Site administration tool is made possible by inclusion of the "System.Web.Security" namespace in the ASP.NET program. The classes "Membership" and "Roles" are used to store, access and modify user information in the ASPNETDB database. The user could be authenticated using the "Membership.ValidateUser" or "FormsAuthentication.Authenticate"Cite web|url=http://msdn.microsoft.com/en-us/library/system.web.security.formsauthentication.authenticate.aspx|title=FormsAuthentication.Authenticate Method |accessdate=2008-05-23|publisher=MSDN] methods. Page-based user authorization is realized by the usage of the "AuthorizeRequest" event of the "HttpApplication" class.Cite web|url=http://msdn.microsoft.com/en-us/library/system.web.httpapplication.authorizerequest.aspx|title=HttpApplication..::.AuthorizeRequest Event|accessdate=2008-05-23|publisher=MSDN]
References
Wikimedia Foundation. 2010.