.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

Term Stores and Userproperty combinations

Posted By:      Posted Date: October 21, 2010    Points: 0   Category :SharePoint

I'm working on a project where the users are supposed to choose which type of user they are. (This doesn't have anything to do with permission levels etc.).
As I was creating a new userproperty I discovered that we don't have a multichoice value in SP2010 as we had in SP2007. So I googled and found a blog with someone who had the similar problem and he said to go to the Manage Metadata service and add a new term to the Term Store. So I did.

On my development environment I have setup this new term as surgested and added it to my userproperty and developed a webpart to extract all userproperty data for all users to see if it worked, and it did.
Then I of course created a WSP package and deployed it to my Production environment. The thing is that it doesn't work on the production environment. I use the exact same term setup and created a userproperty the exact same way as on the development environment.
The only difference of what I know is the name of the webiste. Else, everything is similar to the development environment.

Do any of you know what might cause this to happen? The error I get tells me that the value is out of range and it cannot get an IcId(or)LcId.

View Complete Post

More Related Resource Links

Test Run: Combinations and Permutations with F#


Understanding combinations and permutations is a fundamental skill in software testing. We show you how to work with combinations and permutations using code written in the new F# language.

James McCaffrey

MSDN Magazine May 2010

ReadOnly DateTime attribute stores correct date but only retrieves DateTime.MinValue on Delete


Hey everyone,

I have a dynamic data site that stores Event data using LINQ-to-SQL. When someone requests an event, it is first stored as a PendingEvent (which is a child of Event) with a column/attribute called receivedAt, which is [ReadOnly(true)] and which is assigned in InsertEvent as shown.

        partial void InsertEvent(Event instance)
            instance.requestedAt = DateTime.Now;




This works fine. The event displays with the correct receivedAt date, and it's correct in my database. It shows up just fine on my Display, Edit, and List pages. However, if I try to delete, the receivedAt in the instance (retrieved with my debugger) in my delete function is 01/01/0001 12:00am, also known as DateTime.MinValue. My other dates appear correct.

If I remove "ReadOnly(true)" from the received at, everything works fine. Why won't "ReadOnly" allow me to have a time?
Thanks in advance,



I forgot to mention why I care. I can't submit the instance to be deleted because DateTime.MinValue is outside SQL's available datetime, so I get a SQL error. The delete also takes place in a custom dele

Term Extraction for non english content

Can Term Extraction be used for non english content?Juan Román

Problems with the & symbol in the term store management

Hi, I encountered a strange error in the production environment of one of our customers. The ‘&’ symbol is being shown, in the term store management, as this ‘?’ symbol. In our test environment this problem does not occur. Did anyone else encounter this issue? I am really curious what causes it. Thanks in advance for the help.  

where is Named Query and Calculation member stores?

which place named query and calculation which created in dimension  stores ? and what are the schema is by default when we create cubes?

Taxonomy term store additions via site setting are not visible to user in RC1

Is see that its possible to define Taxonomy term store via SharePoint main central  admin page. But when I try to add term store entries via a new site in the same collection ....  site setting -> Site Administration -> Term store management any new entries are not visible. That is to say when a user starts to enter a tag the helper dialog does not show any values added via the site but all values add via the central admin do appear. this seems like a bug and the is in RC1 or am I doing something wrong

"The backup set holds a backup of a database other than existing database. Restore Database is term

I have a problem when i restore my .DAT_BAK file.  I am getting error like "The backup set holds a backup of a database other than existing database.  Restore Database is terminating abnormally".   I tried by using   RESTORE DATABASE <DATABASENAME> FROM DISK = 'D:\DATA\MYTEST.DAT_BAK' WITH MOVE 'VZAI_DATA' TO D:\PROGRAM FILES\..\MSSQL\TEST.MDF', MOVE 'VZAI_LOG' TO D:\PROGRAM FILES\..\MSSQL\TEST.LDF', REPLACE   And also i tried like   RESTORE DATABASE <DATABASENAME> FROM DISK = 'D:\DATA\MYTEST.DAT_BAK' WITH REPLACE   When i use like this,   RESTORE FILELISTONLY FROM DISK = 'D:\DATA\MYTEST.DAT_BAK'. I am able to get the output as LogicalName, PhysicalName, Type, FileGroupName, Size, etc.   Can i anyone please help me out?   Thanks in Advance, Anand Rajagopal

Not able to open Term Set Manager

I want to create a local term set for my site collection by creating a new Site Column, setting its type to Manged metadata, and in the managed metadata section check the 'Customize your term set' radiobutton. What happends onclick is that an alert box pops up with the information: 'This operation cannot be completed. The term store may be unavailable'. The 'Edit Using Term Set Manager' link is also dead. I am able to open the Term Store Mgt Tool from site settings and have full CRUD access on terms under the Managed Metadata Service, I'm also able to add new keyword under System, so I think I should have access. I have restarted IIS, cleaned the solution, but the problem persists Have anyone experienced this problem?  

list of employees - custom list or managed metadata term set ?

Hi all, I am working on a intranet site for a small company with 25 employees. They want to create a site for tracking employee training. Most of the items on this site are going to be associated with an employee entity. What is the best way to manage the employee entity ? should I create a custom list called employee or should I create a term set called employee containing the names of all 25 employees ? In a related question is it possible to add a "people picker" field to a custom list ? ( e.g. Training schedule list ) I note that for 'assign to' columns SharePoint provides a dialog which enables you to browse and select users from active directory. Is there a way to add similar lookup functionality to a custom list in SharePoint ? thanks and regards, Counie  

Deploying taxonomy term store and managed meta column from development machine to production machine

Hi, In my development environment, I created a taxonomy term store by importing a CSV file. I also created a site column of type "managed meta data" based on that term store. Now, I want to migrate to production environment. What is the best way to do this? When I generate the schema of my site column, it looks like this: <Field Type="TaxonomyFieldTypeMulti"    DisplayName="Article Type"    List="{d8b20e4f-ce12-4def-b59d-d44da2c13234}"    WebId="eef74e7c-a852-4c89-b811-e31b86853641"    ShowField="Path1033"    Required="FALSE"    EnforceUniqueValues="FALSE"    Group="Custom Columns"    ID="{47f78411-65fa-43c9-8cb8-68955aea1256}"    SourceID="{eef74e7c-a852-4c89-b811-e31b86853641}"    StaticName="Article_x0020_Type"    Name="Article_x0020_Type"    Version="4"    Mult="TRUE"    Sortable="FALSE"> <Default></Default> <Customization> <ArrayOfProperty> <Property> <Name>SspId</Name> <Value xmlns:q1="http://www.w3.org/2001/XMLSchema" p4:type="q1:string" xmlns:p4="http://www.w3.org/2001/XMLSchema-instance">99d

Generate all permutations/combinations of a Regex


I am writing a code which would produce a list of all possible combinations of a Regex.

For eg if my Regex is [ABC]BD i want all expressions possible for this combination like

to be validated

This is very simple example. My actual regex would include special charcaters,
character classes,repetitions, backreferences, positive & negativeloookaround and all other nitty-gritty of regex.

I know it would not be easy task as for characters like * the list is endless, but is there
a way to limit it to some extent?

I am looking for some code suggestions, api's  or any tool for this.
I do use expresso for regular expresssion.


any help will be greatly appreciated.

Abhinav Galodha

term "depends on" and "refers to"

in T-SQL, does the words "depends on" and "refers to" mean the same thing?

Combinations of numbers into an array



I'm wanting to write some code that lists all the combinations of r numbers selected from a total of n numbers and places them into an array.

I am working with the simple example of n = 5, r = 3 (note that there are 10 unique combinations in this case).

 int Low = 1;
int High = 5;
int Choose = 3;
int nChooseR = 10;
int [,]CombinationstAray = new int[nChooseR, Choose];

for (int i = 0; i < nChooseR; i++)
   for (int j = 0; j < Choose; j++)
      // I have been playing with code here, but haven't written
      // anything good yet


Is there an easy way to do this, or does it get difficult. I am VERY new to c# (and programming languages in general).


Selecting Unique Combinations of multiple row values



I have a table called 'Permutations' that lists every single combination of 5 numbers that could be selected from numbers 1 to 10.

(the first few rows are as follows, there are 30240 in total):


Number 1| Number 2| Number 3| Number 4| Number 5|

1 | 2 | 3 | 4 | 5

2 | 3 | 4 | 5 | 1

3 | 4 | 5 | 1 | 2

4 | 5 | 1 | 2 | 3

5 | 1 | 2 | 3 | 4

2| 3 | 4 | 5 | 6

3 | 4 | 5 | 6 | 2


and so on.


I want to write a query that only returns the unique combinations of these. So, from the rows provided above, the only rows that the query would return would be

Number 1| Number 2| Number 3| Number 4| Number 5|

1 | 2 | 3 | 4 | 5
2 | 3 | 4 | 5 | 6

Is there an easy way of doing this (note that the correct query would return 252 rows)?


SELECT Random Records in term of time



I want to return random records in term of time whithout NEWID

How does web part stores its properties when a piece of code is executed in it?



I am trying to program my first webpart based on this:


This webpart must show people who have birthdays on particular day of the month. There should be a button for each month (and one for "whole year) and button for each day (and one for "whole month") and so user can choose to show only those with birthdays in say, april 23, or whole june...

I did it this way:

Following the tutorial, i create all my controls inside the CreateChildControls() and i store references to them as properties of the webpart class. Also the class (public class BirthdayFullScreenWebPart) has properties (int chosen_month) and (int chosen_day).

Then i have have onclick for buttons that changes the chosen month and/or day web part property, based on which button was clicked.

Then i have a function "UpdateUserList" that ouptuts list of users into the webpart's table control, based on the chosen month and day. this function is called inside createchidlcontrols after all of them are created, and inside onclicks when the month/day is changed.


What i got is that the values of the variables were behaving really odd. 

In my mind, it

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