Advertisement

05.12.2008 at 08:18PM PDT, ID: 23396602
[x]
Attachment Details

enum.parse: Specified cast is not valid.

Asked by lax99 in C# Programming Language

get this error: i think most probably due to enum.parse but i could not able to convert, have a look please.

Specified cast is not valid.


public static bool IsUserAuthenticatedForPage(ArrayList arRoles)
{
foreach (RoleNames roleName in arRoles)   //THROW ERROR HERE <<<<<<<<<<<<<<< Specified cast is not valid.
{
if (IsCurrentUserInRole(roleName)) { return true; }
}
return false;
}

RoleNames is my enumsStart Free Trial
 
Loading Advertisement...
 
[+][-]05.12.2008 at 08:35PM PDT, ID: 21552116

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.12.2008 at 08:42PM PDT, ID: 21552155

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]05.12.2008 at 08:42PM PDT, ID: 21552157

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.12.2008 at 08:50PM PDT, ID: 21552185

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.12.2008 at 08:53PM PDT, ID: 21552194

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 01:02AM PDT, ID: 21553032

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 06:23AM PDT, ID: 21554768

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: C# Programming Language
Sign Up Now!
Solution Provided By: nisarkhan
Participating Experts: 5
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628