Hi,
i am using the following sample code to show the existing Roles, but this code works only on ASP.NET development server (http://localhost:2775/App/Default.aspx), but when i am calling this application through http://localhost/App/Default.aspx, it does'nt work.
string[] roles = Roles.GetAllRoles();
Response.Write("<br/> total roles are: " + roles.Length);
for (int i = 0; i < roles.Length;i++ )
{
Response.Write("<br/> " + roles[i].ToString() );
}
i am not sure what is the problem, i am using ASP.NET 2.0 on IIS and Visual Studio 2005.
Thanks in advance for suggestions!
Regards