X Blogs

who you gonna call?

Display members of AD group in SharePoint 2010

clock December 10, 2011 02:16 by author Robi

Hi,

Because I got a question so many times if you can show members of AD groups on SharePoin site, I decided to build a web part that would replace the Site Users web part.

 

The usage is pretty simple, what you need to do is deploy a wsp package that you can find inside the bin\release folder.

 

Next step is to add a web part to your site and what you need to do is enter some information to access the Active Directory.

 

You need to enter:

  • user name to connect to AD in the format:
    • domain\username
  • domain information for LDAP query in format of:
    • DC=corp,DC=xnet,DC=si
  • you need to enter FQDN of a domain controller to which the ldap query will be sent:
    • xnet-dc01.corp.xnet.si

Hopefully some one will find this web part usefull.

You can find solution attached in a zip file.

 

For comments and suggestions please contact me at:

robi@kompas-xnet.si

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

 

There were some bug fixes so I published a new version of a Web Part.

 

Skupine Web Part_1.2.zip (219.37 kb)



SharePoint User Code Service not starting

clock January 17, 2011 20:42 by author Robi

I tried to publish a sandbox solution on SharePoint Server and was getting error that Sandbox Code service server was not found. I checked in Central Administration and found out, that Microsoft SharePoint Foundation Sandboxed Code Service was running and that SharePoint 2010 User Code Host Service was set to automatic but not running.

In the event logs, I found out, that I have errors in system logs:

  • Event Id: 7031, 7034;
  • source: Service Control Manager;
  • details: The SharePoint 2010 User Code Host service terminated unexpectedly.

I found out, that service account that was running Sandbox code service needs to have access to performance counters on the server. So what you need to do is pretty simple, you need to grant service account access to counters and you can do it by adding service account as a member of local group Performace Monitor Users in Server Manger.

 

Voila, after adding user to Performace Monitor Users everything works as expected.



Bulletproof Cross-Browser CSS Techniques

clock October 13, 2010 18:44 by author Klemen Slavič

I've written up a summary of all tehniques and tricks for cross-browser CSS coding I've learned over the years in a guest post on Script Junkie. It's meant to be a starting and reference point for anyone from beginner to advanced levels.

Have a look.



Handy jQuery developer plugins

clock July 6, 2010 21:32 by author Klemen Slavič

I've commited a new plugin to my open source repository at Google Code – Niftyscripts. Currently, I've pushed a new plugin that scans the current document and reports unused CSS rules and their origins.

To read more, visit the site or browse the source tree.



Dealing with Error 404 on IIS7 using ASP.NET Routing

clock June 15, 2010 18:06 by author Klemen Slavič

When you're deploying an ASP.NET website that uses the new Routing feature from MVC, you might run into a problem mapping the routes in Integrated mode. The documentation states that using Integrated mode on IIS7 doesn't entail any extra configuration, but in the odd case it does (throwing Error 404 on routed URLs but not .aspx paths), you can open up your web.config file and modify your <system.webServer> / <modules> tag:

<modules>
...
</modules>

... to something like this:

<modules runAllManagedModulesForAllRequests="true">
...
</modules>

Or, if you're not using modules, just put an empty tag within <system.webServer>:

<modules runAllManagedModulesForAllRequests="true" />

That forces IIS7 to always run all loaded web server modules, including URL Routing (inherited from the 4.0 application pool).



Building jQuery plugins, part 1

clock November 11, 2009 00:30 by author Klemen Slavič

I've posted the first article in a series of articles on authoring jQuery plugins:

http://animalija.sopca.com/2009/11/10/jquery-vticniki-plugini-prvi-del/

Also, adding a Google-translated link to the page here.



Creating a portable Eclipse install

clock November 4, 2009 21:00 by author Klemen Slavič

I've put together a tutorial on making a portable version of Eclipse with no external dependencies. You can read the full article here:

http://animalija.sopca.com/2009/11/04/eclipse-na-usb-kljucu/

Since the article is in Slovene, you can read the poorly translated page here:

Translated Page (Google Translate)

Mind that you'll have to see the original post, since Google Translate mangles source code as well.



Adding new WorkitemType to the existing Team Foundation (2008) Project

clock September 16, 2009 17:22 by author Rok Bermež

Recently a friend of mine had to add a new work item type to the template in the existing (and supposedly large project) so... here we go:

  1. Lets take a look at the existing work item types (MS agile template)


     
  2. Next we export process template used in the project (menu:Team| Team Foundation Server Settings| Process Template Manager)


     
  3. Now we have the current definitions so we can pick the closest one and modify it to suit our new needs


     
  4. After its ready we can use a nice command line utility named witimport.exe that is located on the client computer in c:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\ (use the /v switch to verify first)


     
  5. And ta-ta-ra-ta the fruit of our work is available for use


     


A really simple Silverlight 2 PostIt application

clock June 16, 2009 22:45 by author Klemen Slavič

During the Silverlight 2.0 introductory course I held last week, we've chosen to implement a simple collaborative app as a summary of the entire curriculum.

The application contains an interface to display and manage PostIts on a collaborative message board. It is currently capable of consuming an input XML which displays PostIts and already has two-way binding implemented for the purposes of communicating with a Web Service to enable collaboration. The solution does not contain a Web Service provider nor does it currently try to send updates to the Web Service, but that will be upgraded in due time. ;)

This is the draft version of the application, which we've built during the course as an interactive demonstration. Comments are practically nonexistent, but will be added in future iterations, along with upgrades. It's a nice refresher/starter for anyone giving Silverlight 2 a go. Just unzip in a convenient location and open the solution file in Visual Studio 2008.

Note: You should have the Silverlight Tools 2.0 for Visual Studio 2008 installed prior to opening this solution. Read the Get Started Building Silverlight 2 Applications from Silverlight.net to prepare your Visual Studio 2008 to support Silverlight 2.

MyPostItApp.zip (1.40 mb)



About the author

Rok Bermež is Slovenian Windows Azure MVP, he works as a Software Engineer and Microsoft Certified Trainer at Kompas Xnet. His primary interests include cloud computing and web development. With extensive experience in development and architecture he participated in many projects and since the CTP release of Windows Azure much of those projects are based on Windows Azure platform. Rok has been delivering courses, writing code and speaking at conferences and community events on Microsoft technologies for the last couple of years. You can also find him on Twitter (@Rok_B).

Month List

Sign In