Roles.GetRolesForUser(UserName) returning zero-dimension array



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

.



Relevant Pages

  • Re: Textdatei schnell auslesen und durchsuchen!
    ... die Textdatei beim 1. mal liest, also z.B. in ein Array -> strArray ... danach ein entsprechendes Array erzeugen, ... Danach schreibst Du einfach dein strArray in strDaten um. ... ob nun ein vbCrLf als "Trennzeichen" taugt hängt von ...
    (microsoft.public.de.vb)
  • Re: Xtreme Newbie: String Arrays
    ... initialize the array if I don't know how many elements it is going to contain. ... stringstrArray; ... you still need to initialize the data structure into which you're putting your strings. ... It just happens that in this case, it's a data structure that can essentially expand as necessary as you add new items. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: procedure _LStrArrayClr(var StrArray; cnt: longint);
    ... In dem Umfeld habe ich keine Array of string ... Hier gehts bei StrArray wohl um Array of strings ...
    (de.comp.lang.delphi.misc)
  • Webservice that returns an xml document instead of an array
    ... I've written a webservice that returns an array. ... As classic asp can't read the returned array I want the webservice to ... Dim strArray() As TestSoap.TAutoModel ...
    (microsoft.public.dotnet.framework.aspnet)