.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Strange issue on domino ldap - accumulation of groups

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :Windows Application


I need help at following problem:

I query all groups of a user and show them in a listbox. This works well with Active Directory. But on domino server the same code accumulates the groups for different users.

For example: User1 is member of groupA and groupB, User2 is member of groupA and groupC

The first query for User1 is correct, listbox contains

groupA and groupB.

The second query for User2 contains groupA, groupB, groupA and groupC. The groups of the first query are also returned.

This issue is only on domino server (it's not a listbox failure, the second query return 4 groups). This behaviour continues - another query for User1 now returns 6 groups and so on.

Has someone an idea?





View Complete Post

More Related Resource Links

LDAP nested groups filter


Hi all,

In my organization we use nested groups.

For a particular usage, we have a group (let's assume that the group name "kuku"), and the names of all the nested groups under it contains "kuku" as well.

We may assume that no other group in the LDAP has "kuku" in the name.

I need to create a filter which will return all the users which belong to one of the "kuku"s group.

Obviously, using this filter will bring only the head kukus

(&(&(objectclass=user)(objectclass=person))(memberOf=CN=kuku,cn=.rest of the group DN.))

How can I use wild card to fetch all users which belong to any kuku?

For example: (&(&(objectclass=user)(objectclass=person))(memberOf=CN=.*kuku.*))



LDAP - directory entry issue with out user and password using impersonate and windows authentication

Hi All I am using the below code to fetch the user information from LDAP             DirectoryEntry entry = new DirectoryEntry("LDAP://DEV");             DirectorySearcher searcher =  new DirectorySearcher(entry);             SearchResult result;             searcher.Filter = "samaccountname=testuser";             result = searcher.FindOne(); here i am using windows authentication always and along with that when i enable the impersonate = true ,  the code fails at "result = searcher.FindOne();" with message "object reference not set to instance of an object "  also with the same code if i give the username and password along with the impersonate tag >> it works  or if i am using the user and password along with the DirectoryEntry  object then also it will work  but it fails with same user that i gave in impersonate tag / directory entry object with windows authentication enabled  and the  user logged to the application and no username and password tag in directory entry / impersonate tag  Interesting thing is that  in our development server ,  i am able to execute the same code with out user name p

RSS Viewer Web Part Bug or Strange Issue?

This started out as a simple proof of concept but may be a bug.  I have added 3 RSS Viewer web parts to a page with the following URLs http://feeds.feedburner.com/sharepointteamblog?format=xml http://msdn.microsoft.com/en-us/subscriptions/subscription-downloads.rss http://rss.news.yahoo.com/rss/yahoonewsroom and everything works perfectly / each part renders as expected. I then added each of these URLs to a links list and then added the links list web part to the page.  I selected one of the RSS Viewer parts, chose connections -> “Get Feed URL from” -> “Links List” and then chose URL as the connection field.  What is happening is that the SharePoint Team Blog link works great, the MSDN link throws a SecurityException and the Yahoo link does nothing (no error in the log and nothing displayed).  I tried this on two different servers on different network & ISPs both with no firewalls in the way.  This appears to be an issue with how the web part handles a connection compared to the straight web part property. Any thoughts or someone else verifying the issue on their server would be appreciated. Regards,-James

Strange DataGridColumn Binding issue


Hi all,

I'm looking for a way to debug this problem I'm having with binding expressions in my DataGrid.

I've got a data grid that I create columns for on the fly in c# code.  I create DataGridTemplateColumns based on a data class that has an internal dictionary and implements ICustomTypeDescriptor.  I create columns for each of the dictionary's keys.  This all works just dandy, except for one thing.  My output window gets a bunch of these (one for each property):

System.Windows.Data Error: 39 : BindingExpression path error: 'ID' property not found on 'object' ''Object' (HashCode=17704875)'. BindingExpression:Path=ID; DataItem='Object' (HashCode=17704875); target element is 'TextBlock' (Name=''); target property is 'Text' (type 'String')

To debug, I created a converter and removed the Path.  Usually, when I stop the debugger in the converter, the "object" parameter is what I would expect - an instance of my data object.  However, sometimes (as above), the "object" is just an "object" with no further defined type (thus causing this debug output).  I'm a bit at a loss as to why the "object" in the converter is not an instance of my data object. 

Again, all the code seems to work fine.  The data g

NLB - Strange Time out issue with 2 WFEs MOSS 2007 ?



 I am having a MOSS 2007 environment with the follo.


Having  Two front end servers – each individual  Hyper-V  and   1 Index Server.

These WFEs  are Virtual Servers with Windows 2008 64 bit OS.

I configured the Windows Load balancing.

Very strange issue.



I have my textbox under tabpanel.

But when page created i can see the textbox id come very long containing the whole controls id lik:

<input id="TabContainerContent1_Basic_txtNumber" value="33333333333" maxlength="12" type="text" name="TabContainerContent1$Basic$txtNumber" />

I am doing it with xslt as belwo.

<field id="txtNumber" type = "Number" default="" >  </field>

here is xslt.

<xsl:if test="@type='Number'">
                        <asp:TextBox id="{@id}" value="{@default}"  runat="server"  />

Please suggest me what is wrong with it?

Strange issue with a huge SSRS 2008 report (supposed to return 3 million records)



NOTE: The strange part (as mentioned in title) will come in the end.

I am running a SSRS 2008 report which fetches 3 million records from a remote server. After around 1 hour the report processing stops and I see an error icon on the lft bottom of the browser window. When I click on that to see the error details it shows some PageRequestManagerSQLErrorException with an unknown error message with code 12029 (sometimes 12002).

When I see the reportserver logs there is an error message logged in it which says "Microsoft.ReportingServices.Library.ReportServerDatabaseUnavailableException: The report server cannot open a connection to the report server database. A connection to the database is required for all requests and processing. ---> Microsoft.ReportingServices.Library.ReportServerDatabaseUnavailableException: The report server cannot open a connection to the report server database. A connection to the database is required for all requests and processing. ---> System.InvalidOperationException: Timeout expired.  The timeout period elapsed prior to obtaining a connection from the pool.  This may have occurred because all pooled connections were in use and max pool size was reached."

The <DatabaseQueryTimeOut> value in the report server configuration file is already having a value set to 7200 seconds(2 hours).<

Strange Calendar issue - Missing Data, only on last day of month


Hi. I'm using Sharepoint 2007 and we're experiencing a strange issue. In the Month view, if I look at the month of September, September 30th appears to have 15 items.  Clicking on the date displays these 15 items, but there should be considerably more. The entire day's schedule stops at 6:30 am. If I view the month of October, and look at the September 30th date, it indicates that there are 36 items, which is the correct number.  This pattern happens regardless of which month I'm looking at. It's always the last day of the month affected. The number of missing items varies from month to month, generally around 20 items. I'm baffled, and haven't got a clue how to attempt to troubleshoot this issue.

I would greatly appreciate any suggestions on how to attempt to resolve this!

Strange sorting behaviour on series groups


Hi guys

I'm seeing some very strange behaviour when trying to sort my series groups on a chart.

I have an Analysis Services dataset with Job Grades and Job Grade Codes, the job grade simply being a concatenation of the Job Grade and the word "GRADE", e.g.

1 |  GRADE 1

2 |  GRADE 2

3 |  GRADE 3 etc.

I've pulled in the field Job_Grade into my Series groups section for a chart. I then tried to sort it by the key value which is the Job_Grade_Code like this:


This produced the following result:

 Grade 6

Grade 7

Grade 8.....

Grade 4

Grade 5

I noticed that the sorting was incorrect. I noticed that in the source the Job_Grade_Code field was a varchar value, so I changed the sorting expression to the following:


This however made no difference and still sorted my grades in the incorrect order

Querying LDAP, domino server problem



perhaps someone could help me. I have the following code which works fine when using Active directory as LDAP:

DirectorySearcher searcher = new DirectorySearcher(new DirectoryEntry(path, user, password, type);

searcher.Filter = "(&(objectclass=person)(name=" + name + "));

SearchResult result = searcher.FindOne();

if (result != null) {

  DirectoryEntry user = new DirectoryEntry(result.Path, user, password);

  var properties = user.Properties["memberOf"];


When trying to query a domino LDAP the line:

  var properties = user.Properties["memberOf"];

causes the following exception: System.DirectoryServices.DirectoryServicesCOMException (0x80072021): A protocol error occurred.

So my question is, can I handle a domino server with DirectoryEntry and DirectorySearcher? If yes, how?

Is there an alternative to query users from a domino server LDAP?


Thank you!



Very strange DllImport / LoadLibrary Issue


Hi all,

Please bear with me, as the description of the problem is fairly involved :)

I've got a strange issue when I am calling a function in an MFC C DLL declared with a DllImport from a .Net user control.

When I display the user control in a standalone application it works fine. I have migrated the component to our main product, which launches a new process, dynamically loads the assembly containing my user control (loading using the Assembly.Load passing in the bytes), hosts the component on a windows forms and displays it.

When run in this context, the first time one of the DLLs methods is called I get a message box saying "<PATH>\<COMPONENT_FULL_TYPE_NAME> was not found" where <PATH> is the root path of the application that initially lauched the process (in our cases this is two processes down Launcher -> Application -> Hosting Process). <COMPONENT_FULL_TYPE_NAME> is the name of the .Net user control that is calling the method in the DLL).  The same behavior occurs if I try to load the DLL using LoadLibrary. It doesn't occur with other DLLs I call or load in a similar way.

This had me scratching my head for a while until I started ProcessExplorer (ex-sysinternal thing) and it showed that when the LoadLibrary is called then a read is attempted for this file it is complaini

Strange time issue on simple select statement


Hi, I have a strange time out issue on a simple select statement.
This is my select statement:

Select * from DyGeJournal where ord>=4609635 and Fracsec>=31

The ord and Fracsec is the primary key.
When I ask for the actual excecution plan, he is using a an index seek.
It takes more than 1,5 minutes to get a result back.

When I shrink my database, everyting is running as expected, the query above runs in milliseconds.
After a while (2 weeks) it start agian running very slow.

I have the same logic on other tables, but I don't have the problem on those tables.
What can cause this problem?

Issue with People and Groups type of column in datasheet view of shrepoint list.


We have a list created in MOSS 2007 which has a column of type people and groups. When we open the list in datasheet view and try to add records for people and groups type of column the column shows only records from All People section of the site collection. I have verified this for another site collection within the same web application where I am able to see all the users though they are not in the All people section of site collection.
Could anyone please let me know if I am missing any setting or if there is any change required to see all the user names in the people and groups type of column in datasheet view.

Thanks ,

NLB - Strange Time out issue with 2 WFEs MOSS 2007 ?



 I am having a MOSS 2007 environment with the follo.


Having  Two front end servers – each individual  Hyper-V  and   1 Index Server.

These WFEs  are Virtual Servers with Windows 2008 64 bit OS.

I configured the Windows Load balancing.

In these 2 WFEs Two sites are deployed (One is Team site and One Publishing site) both are intranet sites.


Now the issue I am facing here is:


Assume that Tower1 and Tower2 are 2 different locations.

 We have a VLAN setup  Web sites are working in same VLAN[say Tower1] where Servers are set up without any issue.

But Web sites are giving Time out issue when it is accessed from different location VLAN [Tower2], after some clicks or web site navigations and website will be up after few minutes.

But the site  is working in different VLAN within in same location[Tower1 or Tower2] where server are set up


When web site is timing out in different location VLAN [Tower2], web site is timing out in all the locations and we will not able to connect to front end servers remotely. But same time we are able to connect to hyper–V  and from there, able to connect to front end servers, web site is accessible from there without any i

Get user groups from Open LDAP using VB.NET


I'm trying to get the groups a user is member of from an Open Ldap using vb.net 3.5.

Although so far I have managed to connect to the ldap server and get the user's info like sn, givenname, description, mail, adspath,

I have absolutely no information about the user's groups.


My code is like this:


Dim oEntry as New DirectoryEntry

Dim oSearcher as New DirectorySearcher


oEntry = New DirectoryEntry("LDAP://myServer/ou=test, dc=example, dc=com", username, pwd, AuthenticationTypes.ServerBind)

oSearcher = New DirectorySearcher(oEntry, "(uid=" & uName & ")")

oResult = oSearcher.FindOne()

if not oResult is Nothing then

Dim ADUser as DirectoryEntry

ADUSer = oResult.GetDirectoryEntry()

end if



Well, ADUser has no info on user membership whatsoever.

Am I doing something wrong? Should I use System.DirectoryServices.Protocols as I saw someone mentioning instead

of System.DirectoryServices or is .Protocols just for Framework 2.0?


Please help

Issue with Report Model on a Cube (multiple measure groups)


Hi All, 

I have was asked to built a report model on the cube for some users and being new to report builder 3.0. 

I am having a weird issue. Lets Say I have following DIMS and FACTS. I have a cube built on top this Dimensional model. 

Two measure Groups/mearsures  : ClassFact/ClassHours and FacilitatorFact/FacilitatorHours.

used Many to Many relationship for FacilitatorDIM and ClassFact measuregoup. I now browse the cube it works excellent. 

The problem Starts

Now a report model is built on top of it, then in the query wizard when I pull both groups and then FName the Classhours(measure) Disappears. 

Does Report Modes supports Many to Many or am I missing something? Any help will be appreciated. 




ClassDIM (ClassID, ClassName) 

FacilitatorDIM ( FID, FName) 


ClassFact( ClassID, Classhours) 

FacilitatorFACT(FID, ClassID, FacilitatorHours)


Sample Data: 



SELECT     ClassID = 1 , ClassDurationHours = 100.0

FROM       ClassFact


SELECT     ClassID = 2 , ClassDurationHour

RadioButton Groups, Table Rows And NamingContainers in asp.net

The RadioButtonList. Very handy for inviting users to select just one item from a list although because of the screen real estate it takes up, used less and less in favour of the DropDownList. In plain HTML, the browser knows to enforce the unique selected value amongst a list of radio buttons because they all have the same value for their name attributes.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend