Roles.GetRolesForUser(UserName) returning zero-dimension array

J

JaiPrakash Sharma

Hi,

i am facing problem with Roles.GetRolesForUser(UserName).

When i run application on my machine the Method returning zero-dimension
array, Insted of When i run the same application on my friend's machine. it
returns value in array.
For the application we are using the SQL 2005 database located on my
friend's machine.

I am doing like this:
Dim strarray() As String
Dim result As Integer
strarray = Roles.GetRolesForUser(Me.Context.User.Identity.Name)


Here i am getting strarray zero-dimension.

Even i had run the exe called "aspnet_regsql.exe" for same data schema on
both machines.

If anyone help me out this thing.

Regards,
JaiPrakash Sharma
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top