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

Top 5 Contributors of the Month
Post New Web Links

"UsersAndGroupsToolPart:: cbListSharePointGroupWho_Load::: Object reference not set to an instance o

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :C#

good day to you all. Hope you can help me with this error in Sharepoint webpart. I've develop a program that would add a group in sharepoint 2007. but everytime I execute the program, the webpart would diplay this error and couldn't display the group created by the program. but, the group created by my program would display in sharepoint groups. I don't know what's causing this issue. hope you could give me some answer with this. thank you very much. the code for creating the group is below.




        private static void CreateHBFGroup(String user)
            SPSite site = new SPSite(strWebAddress);
            SPWeb web = site.OpenWeb();
            DateTime dtNow = DateTime.Now;

            String[] strGrpName = user.Split('\\');

            String strGroupName= strGrpName[1] + "_Group";


View Complete Post

More Related Resource Links

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