Click here to Skip to main content
15,900,724 members

Comments by jagadeesh kumar adabala (Top 28 by date)

jagadeesh kumar adabala 22-Aug-14 2:42am View    
Hi,
Thanks for the reply, and here is my class.

Imports System.DirectoryServices.AccountManagement
Imports System.Data.SqlClient

Partial Public Class USSFService
Implements ISFUser

'Private Shared SFUserId As String

'Private Shared SFUsersGroup As String = "ILHSPR"
'Private Shared SFAdminGroup As String = "Administrators"
'Private Shared SFSalesGroup As String = "TDSales"

Private Shared SFUsersGroup As String = "SOFTDEV"
Private Shared SFAdminGroup As String = "SOFTDEV"
Private Shared SFSalesGroup As String = "SOFTDEV"
Private Shared TDPrincipalContext As PrincipalContext = New PrincipalContext(ContextType.Domain, "XXXX")

Public Function GetAllProofReaders() As System.Collections.Generic.List(Of String) Implements ISFUser.GetAllProofReaders
Dim group As GroupPrincipal = GroupPrincipal.FindByIdentity(TDPrincipalContext, IdentityType.SamAccountName, SFUsersGroup)
Dim proofreaders As List(Of String) = New List(Of String)

For Each member As Principal In group.Members
If Not TypeOf member Is GroupPrincipal Then
If CType(member, UserPrincipal).Enabled Then proofreaders.Add(member.SamAccountName)
End If
Next
proofreaders.Sort()
Return proofreaders
End Function
End Class

i'm trying to access this method, which is working file when i host it locally.
But when i host it on a remote system and trying to call this method i got this exception.

and inner exception says 'Nothing'

jagadeesh kumar adabala 17-Jul-14 3:15am View    
Hi,
Thanks for response, Windows control library is a Template, by using which we can create user controls and can access those controls by adding the dll generated at windows control library and
writing the following code.
<OBJECT id="MyWinControl1" height="200" width="240" classid="http:WindowsControlLibrary1.dll#WindowsControlLibrary1.UserControl1"
VIEWASTEXT>
jagadeesh kumar adabala 29-Apr-14 6:30am View    
Thanks for the reply, i have tried and i didnt understand how to handle it. So pls give me any solution for this..
jagadeesh kumar adabala 28-Jul-12 6:05am View    
i could n't use like this.
mystr.Replace("LAT", "ACK")

Because we don't know what stirng will be there in next message. it will never be the same for next time....
jagadeesh kumar adabala 28-Jul-12 6:02am View    
I'm just tryng like i have a string like this below.....
"MSH|^~\&|MDTm|Demo|Transdyne|Demo|20120706184400.231-05:00||ORU^R01|20120706184400.231-05:00|P|2.3"

Now i need to find the string between 6th and 7th indexes of a letter "|".
i.e 20120706184400.231-05:00

i shound find the index of 6th and occurances of letter |, which i need to use in other case.