SharePoint 2007: EXECUTE permission denied on object 'proc_putObject', database 'SharePoint_Config', schema 'dbo'.

Tuesday, 17 November 2009 15:51 by myro

If you receive the followin error:

EXECUTE permission denied on object 'proc_putObject', database 'SharePoint_Config', schema 'dbo'.
EXECUTE permission denied on object 'proc_putDependency', database 'SharePoint_Config', schema 'dbo'.
EXECUTE permission denied on object 'proc_putDependency', database 'SharePoint_Config', schema 'dbo'.
EXECUTE permission denied on object 'proc_putDependency', database 'SharePoint_Config', schema 'dbo'.
EXECUTE permission denied on object 'proc_putDependency', database 'SharePoint_Config', schema 'dbo'.

when you try to activate a SharePoint 2007 Feature through the http://yoursite/_layouts/ManageFeatures.aspx?Scope=Site url, it's probably because your user probably doesn't have enough rights on your Sql Server Database.

Try to activate the feature using the stsadm command  stsadm -o activatefeature -name yourfeaturename -url http://yourserver/

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:   ,
Categories:   SharePoint 2007
Actions:   Bookmark and Share | Permalink | Comments (0) | Comment RSSRSS comment feed

SharePoint 2007 - Extract SharePoint Users informations to an Excel file format

Monday, 12 October 2009 09:57 by myro

SharePoint 2007 is missing a feature that lets you export all Users that belong to a particular group into a Excel compatibile file format. What happens if someone asks you: "May I have a list of all users that belongs to a particular group?". Would be nice to have a simple Form Application that saves the list provinding for each user informations like the domain name, the full name and the email?

With just few lines of code you can accomplish that or if you prefer, you can download my little project: SharePoint Group Users Info which does exactly this job:

Once you have insered your SharePoint's site url, click the Get Groups button. Select the group you wish to export and press Get Users Info. A Save File Dialog will pop up, asking you where would you save your CVS file. Open it with Excel and you are done!

Download Visual Studio 2008 Project: SharePointGroupUsersInfo.rar (70.63 kb)

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:  
Categories:   SharePoint 2007
Actions:   Bookmark and Share | Permalink | Comments (0) | Comment RSSRSS comment feed

An unhandled execption occurred in the user interface: OSearch - SharePoint 2007

Tuesday, 22 September 2009 11:26 by myro

When configuring a SharePoint 2007 farm through the Central Administration, you should always use domain accounts for you services, to avoid errors or strange behaviors. But what happens when you just need to configure services in a stand alone enviroment?
For web site's application pools identities you should use the default Network Service account, but when it comes to configure SharePoint's 2007 Services, the easiest way is to create a local administrator account and use it to run all your services. 

Almost every Central Administration's page uses a people picker to avoid errors, but sometimes you will just see a blank textbox which asks you to input the credentials for running determined service.  This is the place when sometimes strange errors starts...

Here's an example:
during a Shared Services configuration in a stand alone enviroment, I was configuring the Index Service and when I was asked for credentials, I have simply insered the new local admin account I've created.
SharePoint 2007 didn't like it and reported this error:  An unhandled execption occurred in the user interface: OSearch.

WTF?
Why they didn't provide any information about the error in that page? 
Anyway, you can solve the problem by preceding your admin account name with your server name: YOURSERVERNAME\YourAdminAccount.

Obvious! right? ......

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:  
Categories:   SharePoint 2007
Actions:   Bookmark and Share | Permalink | Comments (0) | Comment RSSRSS comment feed

How to set Permission To Add Users to SharePoint Groups

Wednesday, 9 September 2009 12:29 by myro
A simple task like allowing a user to administrate a SharePoint group without exceeding with too strong permission isn't really intuitive in SharePoint 2007. 
Here's a howto:
General information
  • The Group Owner of a SharePoint group has permission to add / remove users from a group.
  • The Site Collection Administrator has permission to add / remove users from a group.
  • Only one person (or group) can be assigned as the Group Owner.
  • SharePoint Groups belong to the Site Collection. 
Set an individual as the Group Owner
  • Navigate to the Change Group Settings page. One way to do this is:
    • Browse to any site within the site collection.
    • On the Quick Launch Click People and Groups.
    • On the Quick Launch Click on the group you wish to modify.
    • Click SettingsGroup Settings
  • Change the Group Owner to the desired individual.
Set a group as the Group Owner
  • Create a SharePoint Group for all individuals that will have the Group Owner permissions (such as MySite Group Owner.
  • Add individuals to this group.
  • Follow the steps for setting an individual, but enter the SharePoint group name. HINT: You can use the address lookup to help find (and insure correct spelling) the desired group.

Credits for this post goes to: http://geekswithblogs.net/redwards for posting this solution.

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:  
Categories:   SharePoint 2007
Actions:   Bookmark and Share | Permalink | Comments (1) | Comment RSSRSS comment feed

Update profiles property in SharePoint 2007 programmatically without BDC

Thursday, 30 July 2009 17:04 by myro

SharePoint 2007 (MOSS) allows you import profiles as a primary source in 2 different ways: using Active Directory o LDAP imports. Remeber that this are the only ways to perform this task. But when comes to update a profile's properties you can choose if you want to use Shared Services defining new import connections or using the SharePoint's object model. This post will cover only the programmatical way to update profile's properties: this is a much faster way than writing a new Buisness Data Catalog (BDC) application. A valid alternative to Buisness Data Catalog (BDC) is to create a simple Console Application and add it into your server's farm scheduled tasks,or, if you prefer, you could create a SharePoint's Timed Job which will be executed whenerver you want. Next, I will cover how to retrive user's UserProfile object and how to update it.
Here's the code snipped:

using (SPSite site = new SPSite("http://YOUR_SITE_URL")
{
       ServerContext context = ServerContext.GetContext(site);
       UserProfileManager userManager = new UserProfileManager(context);
       UserProfile userProfile = userManager.GetUserProfile("DOMAIN\\USERID");
       if (userProfile != null)
       {
            userProfile["Property1"].Value = "Your propery value";
            userProfile["Property2"].Value = "Your propery value";
                userProfile.Commit();
     }
}

Simple right?

Most organizations, stores user's properties in Active Directory but they can also store some of this properties into SQL tables.  You can merge all those properties in SharePoint's profiles and have them all without messing around with BDCs. The next method will return a DataTable and with the collaboration of the first snippet, you can easly build your own SharePoint's profile updater:

private static DataTable ReadTable(string dataTableName, string connectionString, string query)
{

    DataTable dataTable = new DataTable(dataTableName);
    try
    {
        SqlDataAdapter dataAdapter = new SqlDataAdapter(query,
            connectionString);
        dataAdapter.Fill(dataTable);
        dataAdapter.Dispose();
    }
    catch (Exception e)
    {
        Console.WriteLine(e.ToString());
    }
    return dataTable;
}

Read this article to understand how can you build you SharePoint's timed job and merge it with this two simple snippets.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:   ,
Categories:   SharePoint 2007
Actions:   Bookmark and Share | Permalink | Comments (5) | Comment RSSRSS comment feed