I need to know general recommendation on whether we should should use role based or code based security for following type of .net applications:
1. Stand alone application
2.Enterprise application
3.B2C application
4.B2B application
As per my understanding we should use Role based in last three cases.Code bases should be used in first and last case(if we are using webservcies).
Your comments!!
Regards

role based vs code based
Kamia111
Hi,
I need to understand one more thing about Code access security.
Many people say that it is used to control code from accessing resources by using permission set.
Somewhere else it is defined as a way by which we can stop other codes to use our code for accessing any resource through it(erikj also use this definition in his reply).
Can somebody please let me know what exactly is Code access security(Is it to stop our code or other code to access our code) and role based security and what other types of securities exists in .net area.
Regards
Darrell Davis
David Graton
Role based security goes well with intranet based applications as domain roles can be directly used.
http://DotNetWithMe.blogspot.com
vikas goyal