what is web site administration tool ? wat allow you to configure web site with simple interface...

41

Upload: kerry-warner

Post on 04-Jan-2016

220 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: What is Web Site Administration Tool ? WAT Allow you to Configure Web Site With Simple Interface –Manage Users –Manage Roles –Manage Access Rules
Page 2: What is Web Site Administration Tool ? WAT Allow you to Configure Web Site With Simple Interface –Manage Users –Manage Roles –Manage Access Rules
Page 3: What is Web Site Administration Tool ? WAT Allow you to Configure Web Site With Simple Interface –Manage Users –Manage Roles –Manage Access Rules
Page 4: What is Web Site Administration Tool ? WAT Allow you to Configure Web Site With Simple Interface –Manage Users –Manage Roles –Manage Access Rules
Page 5: What is Web Site Administration Tool ? WAT Allow you to Configure Web Site With Simple Interface –Manage Users –Manage Roles –Manage Access Rules

What is Web Site Administration Tool ?

• WAT Allow you to Configure Web Site With Simple Interface – Manage Users – Manage Roles– Manage Access Rules– SMTP Settings– Generate Database (ASPNetDB.mdf)– Debug and Trace – Error Page– Application Settings

Page 6: What is Web Site Administration Tool ? WAT Allow you to Configure Web Site With Simple Interface –Manage Users –Manage Roles –Manage Access Rules

How Can I Get It ?

• Easy To Open and Start – Web Site Menu >> And Choose :

• ASP.Net Configuration

– OR in Solution Explorer Window Click on This Button

Page 7: What is Web Site Administration Tool ? WAT Allow you to Configure Web Site With Simple Interface –Manage Users –Manage Roles –Manage Access Rules

Home Tab

• Just Navigation Menu to other tabs

Page 8: What is Web Site Administration Tool ? WAT Allow you to Configure Web Site With Simple Interface –Manage Users –Manage Roles –Manage Access Rules

Security Tab

• Choose Authentication Type• set up and edit users• Cerate & Manage roles• Set access permissions (Access Rules )

– Authorization

• Allow User ,Role • deny Other

Page 9: What is Web Site Administration Tool ? WAT Allow you to Configure Web Site With Simple Interface –Manage Users –Manage Roles –Manage Access Rules

First Step Click Highlight Link

Page 10: What is Web Site Administration Tool ? WAT Allow you to Configure Web Site With Simple Interface –Manage Users –Manage Roles –Manage Access Rules

Select authentication type

– Choose From The internet authentication type and Press Done

Page 11: What is Web Site Administration Tool ? WAT Allow you to Configure Web Site With Simple Interface –Manage Users –Manage Roles –Manage Access Rules

Come Back Automatically

• Now You Can create and Manage User

Page 12: What is Web Site Administration Tool ? WAT Allow you to Configure Web Site With Simple Interface –Manage Users –Manage Roles –Manage Access Rules

Create User

• Fill Your Data and Press Create User

Page 13: What is Web Site Administration Tool ? WAT Allow you to Configure Web Site With Simple Interface –Manage Users –Manage Roles –Manage Access Rules

Welcome Member

• Press Continue To Create New User • Or Press Back To Return to Security Tab again

Page 14: What is Web Site Administration Tool ? WAT Allow you to Configure Web Site With Simple Interface –Manage Users –Manage Roles –Manage Access Rules

Create Roles

• If You Press Back Will Find this ::– Press Enable Roles To Enable and Create

Page 15: What is Web Site Administration Tool ? WAT Allow you to Configure Web Site With Simple Interface –Manage Users –Manage Roles –Manage Access Rules

Enable Roles

• Press Highlight Below To Create

Page 16: What is Web Site Administration Tool ? WAT Allow you to Configure Web Site With Simple Interface –Manage Users –Manage Roles –Manage Access Rules

Create Roles

• Enter Role Name and Press Add Role • Repeat Step if You Need More Or Press Back To Finish

Page 17: What is Web Site Administration Tool ? WAT Allow you to Configure Web Site With Simple Interface –Manage Users –Manage Roles –Manage Access Rules

Back To Web.Config

• Without Closing Window Switch To Web.Config – Will See this ! Agree Press Yes to All

• Remember that you will See above Dialog Every time you Modify Something in WAT

• Did you Notes Additional information Like This :

<roleManager enabled="true" />

Page 18: What is Web Site Administration Tool ? WAT Allow you to Configure Web Site With Simple Interface –Manage Users –Manage Roles –Manage Access Rules

Access Rules

• In other Name Call Authorization – Access Permission– Press Create Access Rules

• Allow/Deny

Page 19: What is Web Site Administration Tool ? WAT Allow you to Configure Web Site With Simple Interface –Manage Users –Manage Roles –Manage Access Rules

Allow / Deny

• Admin directory – Allow Administrator Role and Deny Users

Page 20: What is Web Site Administration Tool ? WAT Allow you to Configure Web Site With Simple Interface –Manage Users –Manage Roles –Manage Access Rules

Manage Rules

• After Press Ok Press Manage Access Rules– Notes Who is Allowed and Denied !– Who is Allowed and Denied !

Page 21: What is Web Site Administration Tool ? WAT Allow you to Configure Web Site With Simple Interface –Manage Users –Manage Roles –Manage Access Rules

Web.Config Again

• In This Case not top root but in Subfolder (Admin)• Dynamically another web.config Created inside

– If you can’t see it in Admin Folder Make a refresh– You will get it’s Content Like This

<?xml version="1.0" encoding="utf-8"?>

<configuration>

<system.web>

<authorization>

<allow roles="Adminstrator" />

<deny users="*" />

</authorization>

</system.web>

</configuration>

Page 22: What is Web Site Administration Tool ? WAT Allow you to Configure Web Site With Simple Interface –Manage Users –Manage Roles –Manage Access Rules

Application Tab

• Application Settings • SMTP Settings (Mail) • Application Status • Debugging and Tracing • Define Error Page

Page 23: What is Web Site Administration Tool ? WAT Allow you to Configure Web Site With Simple Interface –Manage Users –Manage Roles –Manage Access Rules

Take a Look

Page 24: What is Web Site Administration Tool ? WAT Allow you to Configure Web Site With Simple Interface –Manage Users –Manage Roles –Manage Access Rules

Application Settings

• After Press Create Application Settings Enter Your Data – When you Finished Press Save

Page 25: What is Web Site Administration Tool ? WAT Allow you to Configure Web Site With Simple Interface –Manage Users –Manage Roles –Manage Access Rules

Add another

• Want to add another key an value Press Add another• Press Ok to return to Application Tab

• Switch to Web.Conifg to See this <appSettings>

<add key="Your" value="SomeValue" />

</appSettings>

Page 26: What is Web Site Administration Tool ? WAT Allow you to Configure Web Site With Simple Interface –Manage Users –Manage Roles –Manage Access Rules

Manage Application Settings

• Edit Or Delete – Press Back to return to Parent tab

Page 27: What is Web Site Administration Tool ? WAT Allow you to Configure Web Site With Simple Interface –Manage Users –Manage Roles –Manage Access Rules

SMTP Settings

• Press Configure SMTP E-Mail Settings – SMTP = Simple Mail Transfer Protocol

• SMTP responsible For Sending Not receiving

Page 28: What is Web Site Administration Tool ? WAT Allow you to Configure Web Site With Simple Interface –Manage Users –Manage Roles –Manage Access Rules

Don’t Forget Web.Config

• After You Can Press OK• Again Switch to Web.Config Will Find Following::• <system.net>

• <mailSettings>

• <smtp from="[email protected]">

• <network host="smtp.yoursite.com" password="xxxxxxx"

userName="admin" />

• </smtp>

• </mailSettings>

• </system.net>

Note :

WAT (Website Adminstration Tool ) Just User interface to Web.Config

Page 29: What is Web Site Administration Tool ? WAT Allow you to Configure Web Site With Simple Interface –Manage Users –Manage Roles –Manage Access Rules

Application Status

• Online When Publishing • Offline When Repairing

Page 30: What is Web Site Administration Tool ? WAT Allow you to Configure Web Site With Simple Interface –Manage Users –Manage Roles –Manage Access Rules

Taking Applications Offline

• Related with <httpRuntime> • Take an applications Offline will generated This Code in

Web.Config :<system. Web>

<httpRuntime enable="False" />

</system. Web>

• Your Web applications Can’t be Started – Get Error : HTTP 404 (The Resource Can’t be Found )

Page 31: What is Web Site Administration Tool ? WAT Allow you to Configure Web Site With Simple Interface –Manage Users –Manage Roles –Manage Access Rules

Debugging and tracing

Page 32: What is Web Site Administration Tool ? WAT Allow you to Configure Web Site With Simple Interface –Manage Users –Manage Roles –Manage Access Rules

Debug

Page 33: What is Web Site Administration Tool ? WAT Allow you to Configure Web Site With Simple Interface –Manage Users –Manage Roles –Manage Access Rules

Some Details

• Enable debugging ::Check it When Maintain Website– Uncheck :: when Deploy .

• Capture tracing information ::Check it to see More info• Display tracing information on individual pages :: Don’t

check it (will show trace details With Controls in Page )– Uncheck :: show trace in Own Page (trace.axd) type it manually

• Display trace output for ::• Local requests only :: it’s Ok ( only You )• All requests :: Don’t Do this (All user will See it )

• Select the sort order for trace results:: As You Want• Number of trace requests to cache :: Not More• Select which trace results to cache: AS you Want

Page 34: What is Web Site Administration Tool ? WAT Allow you to Configure Web Site With Simple Interface –Manage Users –Manage Roles –Manage Access Rules

Default Error Page

• Just Choose Error Page and Press Save

Page 35: What is Web Site Administration Tool ? WAT Allow you to Configure Web Site With Simple Interface –Manage Users –Manage Roles –Manage Access Rules

Debug ,Trace , Error PageWeb.Config

• Switch To Web.Config to See the Following :-

<system.web>

<customErrors defaultRedirect="~/ErrorPages/DefaultErrorPage.aspx" />

<trace enabled="true" mostRecent="true" />

<compilation debug="true">

<system.web>

Page 36: What is Web Site Administration Tool ? WAT Allow you to Configure Web Site With Simple Interface –Manage Users –Manage Roles –Manage Access Rules

Provider Tab

• Two Choice (all in One Or Different for Each )

Page 37: What is Web Site Administration Tool ? WAT Allow you to Configure Web Site With Simple Interface –Manage Users –Manage Roles –Manage Access Rules

Single Provider for All

• Select a single provider for all site management data – One Database For All :

• Membership , Roles, Personalization , Profile

• Make a refresh to See Database in App_Data Folder

Page 38: What is Web Site Administration Tool ? WAT Allow you to Configure Web Site With Simple Interface –Manage Users –Manage Roles –Manage Access Rules

Different Providers For Each

• Define One for Membership and One For Roles

Page 39: What is Web Site Administration Tool ? WAT Allow you to Configure Web Site With Simple Interface –Manage Users –Manage Roles –Manage Access Rules

Membership in Web.config

• Feel free to return To Part 1,2 will Find Here

http://www.ahmedmoosa.wordpress.com• Custom Membership:: use another Database • Find the way in Part 2 • Don’t forget To Open Generated Database in Solution

Explorer (ASPDB.mdf )

Page 40: What is Web Site Administration Tool ? WAT Allow you to Configure Web Site With Simple Interface –Manage Users –Manage Roles –Manage Access Rules

Final Word Help

Page 41: What is Web Site Administration Tool ? WAT Allow you to Configure Web Site With Simple Interface –Manage Users –Manage Roles –Manage Access Rules

Good Bye

Keep in Touch

For Part 4 ( الله شاء ( إن

Hope this Help

Thanks For Reading