| 12 August 2009
| Article Index |
|---|
| AD User Editor |
| Setup |
| Configuration |
| Sources, Evolutions and Modifications |
| All Pages |
Page 4 of 4
References
I picked a lot of infos and get inspirated by some bits of source code googling the web. My most important sources of inspiration and help were:
- ActiveDirectoryTools of Burke Holland
- SharePoint solution created by the STSDEV utility
- Right way webpart coding on Ishai Sagi's blog
- Sharepoint Web Controls (User picker, Date picker) from Karine Bosch's blog
Wishes List
- More friendly property editor in webpart configuration (like toolpart in this webpart, or from an external list)
- Encode connexion strings (no more clear text)
- Make it really multilingual (cf here)
- Code it the MVC way (at least separate presentation elements from data)
- Add multi-valued field to properties control types (find the sharepoint one which does this task)
- Package it with SharePoint Solution Installer
Before trying to compile something
- Use a server with MOSS 2007 and Visual Studio 2008 installed on it (not tested with VS2005 and WSS3 alone)
- Install Visual Studio Extensions for Sharepoint from here
- Download and install STSDEV from here
- Unzip the project archive and open NomineSharePointTools.sln with Visual Studio
- Edit DeploymentFiles/Microsoft.SharePoint.targets to make targetUrl, WssRootFilesFolder, STSADM and STSDEV match your server config.
- Click the menu "Generate>Config Manager" and select DebugDeploy or DebugUdate depending on what you did before.
- Press F5: It should compile and install (don't care if VS tells you a class can't be directly launched)
- You just have to activate the feature on you site collection and then add the webpart to a test page.
- Next, each time you'll update, the webpart will be automagically updated.
Conclusion
Thank you for trying my WebPart. It's my first real developement for SharePoint 2007, so feel free to send any constructive comment to help me making it even better.






Comments
Can we make readonly field,and can we make mandatory field ?
If yes, please tell its very need in my project.
regards
Mansoor
It could be a problem of credentials.
Please check that the login you put in the xml config is like this: "DOMAIN\username "
I have sucessfully configured the AD User Editor Webpart, however if I try to get an account from the PersonPicker and then edit it it launches the following error message:
System.DirectoryServic es.DirectoryServic esCOMException (0x8007202B): A referral was returned from the server. at System.DirectoryServic es.DirectoryEntry.Bind(Boolean throwIfFail) at System.DirectoryServic es.DirectoryEntry.Bind() at System.DirectoryServic es.DirectoryEntry.get_AdsObject() at System.DirectoryServic es.DirectorySearch er.FindAll(Boolean findMoreThanOne ) at System.DirectoryServic es.DirectorySearch er.FindOne() at NomineSharePoin tTools.ADUserEditor.findFromAccount Name(String Name) at NomineSharePoin tTools.ADUserEditor.selectUser()
Any suggestion or possible troubleshooting for solving this issue would be highly appreciated!!
BTW, Excellent Webpart, I´m really excited to try it on, please help!!
The issue is related to the xml config in the webpart:
check here for more info: http://nominesptools.codeplex.com/Thread/View.aspx?ThreadId=69492
I have installed it successfully and added it to a MOSS page, but I get an error.
I seem to get the same error whether I enter my DC creds or not.
The error is
"System.Collections.Generic.KeyNotFoundExce ption: The given key was not present in the dictionary. at System.ThrowHelper.ThrowKeyNotFoun dExce ption() at System.Collections.Generic.Dictionary`2.get_Item(TKey key) at NomineSharePoin tTools.ADUserEditor.findFromAccount Name(String Name) at NomineSharePoin tTools.ADUserEditor.selectUser"
Fairly noob at this so it's probably something obvious I am missing. I would appreciate any help you can give me as the WebPart is exactly what I am looking for.
Thanks.
Steev.
It's pretty simple to do it in WebApp, I think can be done in WebPart.
RSS feed for comments to this post.