By default IIS 6.0 does not allow log4net to write logs to file. To enable this some permissions settings has to be changed.
The following steps will do that.
1. Select the virtual directory or website in IIS to which you want enable logs.
2. Select the permissions for that application and add IIS_WPG and give write permission to this account.
3. Go to LocalUsers and groups snap in using mmc command in window and add the current windows-login user to IIS_WPG group.
Now log4net should work fine :)
Tuesday, October 9, 2007
Saturday, August 11, 2007
Authentication mechanisms in ASP.Net
ASP.Net Generally supports 3 types of authentication mechanisms.
1.Windows authentication
2.Form authentication
3.Passport authentication
Out of above 3 mechanisms, commonly used 2 methods are windows and form.
Enabling this mechanisms are simple.
Open your application's web.config file and add tag and specify the mode.
learn more about authentication mechanisms
Now in form authentication you may need to use your Activedirectory or DataBase for authentication.
2 ways to do that.
1. Writing your own code to query your database or Activedirectory.
(in this case if u want to change your DB or AD you need to edit your code and recompile.)
here is a method to change your DB or AD with out editing code.
2. This can be done using Membership in .net by
adding tag to your web.config file.
learn more about membership
here i have given you very top level view. You may face problems in implementation. Write to me if you need any help.
1.Windows authentication
2.Form authentication
3.Passport authentication
Out of above 3 mechanisms, commonly used 2 methods are windows and form.
Enabling this mechanisms are simple.
Open your application's web.config file and add
learn more about authentication mechanisms
Now in form authentication you may need to use your Activedirectory or DataBase for authentication.
2 ways to do that.
1. Writing your own code to query your database or Activedirectory.
(in this case if u want to change your DB or AD you need to edit your code and recompile.)
here is a method to change your DB or AD with out editing code.
2. This can be done using Membership in .net by
adding
learn more about membership
here i have given you very top level view. You may face problems in implementation. Write to me if you need any help.
Subscribe to:
Posts (Atom)