tag:blogger.com,1999:blog-22990435664923771032024-03-08T02:41:23.126-05:00Destination:\ SharePointNote: This blog is currently going through enhancements. Thank you for your patience. Srini Sistlahttp://www.blogger.com/profile/04638457531918294392noreply@blogger.comBlogger169125tag:blogger.com,1999:blog-2299043566492377103.post-47208723609155222412010-09-06T19:26:00.001-04:002012-04-26T18:21:59.345-04:00SharePoint 2010 August Cumulative Updates<a href="http://www.srinisistla.com/blog/Lists/Posts/Post.aspx?ID=34">This link is moved here!</a>Srini Sistlahttp://www.blogger.com/profile/04638457531918294392noreply@blogger.com0tag:blogger.com,1999:blog-2299043566492377103.post-17522913321409701602010-08-04T14:31:00.001-04:002011-01-01T19:46:38.891-05:00Speaking at SharePoint Saturday Baltimore on Aug 28th 2010<a href="http://www.srinisistla.com/blog/Lists/Posts/Post.aspx?ID=35">This link is moved here.</a>Srini Sistlahttp://www.blogger.com/profile/04638457531918294392noreply@blogger.com0tag:blogger.com,1999:blog-2299043566492377103.post-32209424298570401252010-07-30T23:29:00.001-04:002010-12-29T21:33:01.787-05:00RSS Aggregator Web Part (for SharePoint 2010)<a href="http://www.srinisistla.com/blog/Lists/Posts/Post.aspx?ID=36">This link is moved here.</a>Srini Sistlahttp://www.blogger.com/profile/04638457531918294392noreply@blogger.com0tag:blogger.com,1999:blog-2299043566492377103.post-42256122027656801672010-06-16T11:10:00.001-04:002010-12-29T21:34:12.054-05:00Handling Security for Client Object Model in SharePoint 2010<a href="http://www.srinisistla.com/blog/Lists/Posts/Post.aspx?ID=37">This link is moved here.</a>Srini Sistlahttp://www.blogger.com/profile/04638457531918294392noreply@blogger.com0tag:blogger.com,1999:blog-2299043566492377103.post-10467423672661878092010-06-16T11:00:00.001-04:002010-12-29T21:35:01.427-05:00Client OM using ECMA Script<a href="http://www.srinisistla.com/blog/Lists/Posts/Post.aspx?ID=38">This link is moved here.</a>Srini Sistlahttp://www.blogger.com/profile/04638457531918294392noreply@blogger.com0tag:blogger.com,1999:blog-2299043566492377103.post-19593311775507107462010-06-16T10:59:00.003-04:002010-12-29T21:35:52.807-05:00Introduction to Client Object Model in SharePoint 2010<a href="http://www.srinisistla.com/blog/Lists/Posts/Post.aspx?ID=39">This link is moved here.</a>Srini Sistlahttp://www.blogger.com/profile/04638457531918294392noreply@blogger.com0tag:blogger.com,1999:blog-2299043566492377103.post-25415475650249432982010-06-13T21:59:00.002-04:002011-01-01T19:47:34.650-05:00Installing SharePoint Server 2010 on a Domain Controller<a href="http://www.srinisistla.com/blog/Lists/Posts/Post.aspx?ID=42">This link is moved here.</a>Srini Sistlahttp://www.blogger.com/profile/04638457531918294392noreply@blogger.com0tag:blogger.com,1999:blog-2299043566492377103.post-62243625295579519102010-06-13T00:32:00.001-04:002011-01-01T19:48:24.756-05:00How to speed up boot time of your Desktop or Laptop?<a href="http://www.srinisistla.com/blog/Lists/Posts/Post.aspx?ID=43">This link is moved here.</a>Srini Sistlahttp://www.blogger.com/profile/04638457531918294392noreply@blogger.com0tag:blogger.com,1999:blog-2299043566492377103.post-29644870431592365382010-06-12T20:31:00.001-04:002011-01-01T19:49:08.803-05:00Building Solutions for SharePoint 2010 by Sahil Malik - A must read book on SharePoint 2010!<a href="http://www.srinisistla.com/blog/Lists/Posts/Post.aspx?ID=44">This link is moved here.</a>Srini Sistlahttp://www.blogger.com/profile/04638457531918294392noreply@blogger.com2tag:blogger.com,1999:blog-2299043566492377103.post-31081992381524107082010-06-10T11:52:00.001-04:002010-12-25T19:18:13.205-05:00Speaking at CapArea SharePoint Group on July 14 2010<a href="http://www.srinisistla.com/blog/Lists/Posts/Post.aspx?ID=59"></a>Srini Sistlahttp://www.blogger.com/profile/04638457531918294392noreply@blogger.com0tag:blogger.com,1999:blog-2299043566492377103.post-92152263738667903492010-05-24T10:58:00.001-04:002011-01-01T19:50:20.693-05:00EXCEPTION FROM HRESULT: 0X81070000<a href="http://www.srinisistla.com/blog/Lists/Posts/Post.aspx?ID=46">This link is moved here.</a>Srini Sistlahttp://www.blogger.com/profile/04638457531918294392noreply@blogger.com0tag:blogger.com,1999:blog-2299043566492377103.post-62261443404182562932010-05-24T10:42:00.000-04:002010-05-24T10:42:32.508-04:00Speaking at Baltimore SharePoint Group on Jun 17 2010<strong>Title:</strong> Speaking at Baltimore SharePoint Group on Jun 17 2010<br />
<br />
<strong>Topic:</strong> Client Object Model in SharePoint 2010<br />
<br />
<strong>Details:</strong> Baltimore SharePoint Users Group - <a href="http://www.baltimoresug.org/" target="_new">Web Site here </a> <br />
<br />
<strong>Location:</strong>1450 South rolling road Baltimore, MD 21227; How to reach <a href="http://maps.google.com/maps?f=d&saddr=39.234364,-76.713731&daddr=&hl=en&geocode=&mra=mi&mrsp=0&sz=16&sll=39.234314,-76.71401&sspn=0.007928,0.019226&ie=UTF8&t=h&z=16" target="_blank">here</a>?Srini Sistlahttp://www.blogger.com/profile/04638457531918294392noreply@blogger.com0tag:blogger.com,1999:blog-2299043566492377103.post-84767707038257723512010-04-25T08:45:00.001-04:002010-12-25T19:25:28.189-05:00SharePoint 2010 Architecture and Services Documentation<a href="http://www.srinisistla.com/blog/Lists/Posts/Post.aspx?ID=48">This link is moved here.</a>Srini Sistlahttp://www.blogger.com/profile/04638457531918294392noreply@blogger.com0tag:blogger.com,1999:blog-2299043566492377103.post-25394061409360502482010-04-15T17:37:00.001-04:002010-04-24T15:07:13.717-04:00Speaking at SharePoint Saturday DC on May 15th 2010<b><span style="font-weight: normal" class="Apple-style-span"></span></b> <br /><b></b> <br /><b> <div style="margin: 0px"><strong>Title:</strong> Speaking at SharePoint Saturday DC on May 15th 2010</div> <div style="margin: 0px"> <br /></div> <div style="margin: 0px"><strong>Topic:</strong> SharePoint 2010 Sandboxed Solutions</div> <div style="margin: 0px"> <br /></div> <div style="margin: 0px"><strong>Details:</strong> <a href="http://www.sharepointsaturday.org/dc/speakers/136/SriniSistla.aspx">SharePoint Saturday DC</a></div> <div style="margin: 0px"> <br /></div> <div style="margin: 0px"><strong>Location: </strong>NVCC Community Cultural Center Annandale, VA</div></b> Srini Sistlahttp://www.blogger.com/profile/04638457531918294392noreply@blogger.com0tag:blogger.com,1999:blog-2299043566492377103.post-7493956534521856692010-04-03T12:36:00.005-04:002010-08-26T15:11:50.911-04:00How to use Rating Control in SharePoint 2010<strong>Title: </strong>How to use Rating Control in SharePoint 2010 <br />
<br />
<strong>Details: </strong>Some thing and finally some thing every one really wanted. Either you download code from codeplex or use any 3rd party controls - its takes about week or more for you to create a Rating Control that is customized to your needs. Now, we have this out of the box in SharePoint 2010 and here is how you use it. <br />
<br />
<strong>How-To:</strong> Lets begin with setting up Rating Control for a Custom List first. <br />
<table border="0" cellpadding="4" cellspacing="4" style="width: 600px;"><tbody>
<tr><td valign="top" width="600">Step # 1 Enable / Start the 'User Profile Service' from the CA > System Settings > Servers > Manage services on server ( by default it is Started ). </td></tr>
<tr><td valign="top" width="600"><a href="http://4.bp.blogspot.com/_PLRzz5eSJW4/S7diUcQF-WI/AAAAAAAAFOQ/PsULkLJgP2A/s1600/userprofileservice.jpg" imageanchor="1" style="clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="107" nt="true" src="http://4.bp.blogspot.com/_PLRzz5eSJW4/S7diUcQF-WI/AAAAAAAAFOQ/PsULkLJgP2A/s640/userprofileservice.jpg" width="640" /></a></td></tr>
<tr><td valign="top" width="600">Step # 2 Under CA > Monitoring > Timer Jobs > Review Job Definitions > look for 'User Profile Service Application - Social Data Maintenance Job' and <br/><br />
'User Profile Service Application - Social Rating Synchronization Job'. <br />
These jobs are scheduled by default to run every 1 hr. </td></tr>
<tr><td valign="top" width="600"><br />
<div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/_PLRzz5eSJW4/THa6miuf5dI/AAAAAAAAFS4/Hi3U7WvrGNc/s1600/UserProfiles.png" imageanchor="1" style="clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="249" ox="true" src="http://2.bp.blogspot.com/_PLRzz5eSJW4/THa6miuf5dI/AAAAAAAAFS4/Hi3U7WvrGNc/s640/UserProfiles.png" width="640" /></a></div><br />
</td></tr>
<tr><td valign="top" width="600">Step # 3 For our convenience and testing, schedule both these jobs to run every 1 min as shown below. <br/>Also do the same for <br />
'User Profile Service Application - Social Rating Synchronization Job'</td></tr>
<tr><td valign="top" width="600"><br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/_PLRzz5eSJW4/S7ve4LsMiPI/AAAAAAAAFPg/QQ4NOB358UM/s1600/j1.jpg" imageanchor="1" style="clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="281" nt="true" src="http://2.bp.blogspot.com/_PLRzz5eSJW4/S7ve4LsMiPI/AAAAAAAAFPg/QQ4NOB358UM/s640/j1.jpg" width="640" /></a></div><br />
</td></tr>
<tr><td valign="top" width="600">Step # 4 Ok you are now all set. Go to the List level ( your desired List / Doc Lib ) and get to the List Settings</td></tr>
<tr><td valign="top" width="600"><div align="left" class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/_PLRzz5eSJW4/S7dkXLczALI/AAAAAAAAFOo/fftXDFl015Y/s1600/ListSettings.jpg" imageanchor="1" style="clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="43" nt="true" src="http://1.bp.blogspot.com/_PLRzz5eSJW4/S7dkXLczALI/AAAAAAAAFOo/fftXDFl015Y/s640/ListSettings.jpg" width="640" /></a></div></td></tr>
<tr><td valign="top" width="600">Step # 5 Select the Rating Settings on the General Settings option and choose the option 'Yes' for 'Allow items in this list to be rated?'</td></tr>
<tr><td valign="top" width="600"><div align="left" class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/_PLRzz5eSJW4/S7dkyRZHsAI/AAAAAAAAFOw/3vJdWsLln3I/s1600/RatingSettings.jpg" imageanchor="1" style="clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="246" nt="true" src="http://2.bp.blogspot.com/_PLRzz5eSJW4/S7dkyRZHsAI/AAAAAAAAFOw/3vJdWsLln3I/s640/RatingSettings.jpg" width="640" /></a></div></td></tr>
<tr><td valign="top" width="600">Step # 6 Once you choose this option, 2 new columns will be added to your list as shown below</td></tr>
<tr><td valign="top" width="600"><div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/_PLRzz5eSJW4/S7dnFjP9yOI/AAAAAAAAFO4/RbISoBPd-m8/s1600/ratingcolumns.jpg" imageanchor="1" style="clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="212" nt="true" src="http://1.bp.blogspot.com/_PLRzz5eSJW4/S7dnFjP9yOI/AAAAAAAAFO4/RbISoBPd-m8/s640/ratingcolumns.jpg" width="640" /></a></div></td></tr>
<tr><td valign="top" width="600">Rating (0-5) will give you the 5 star rating asynchronous control that you can rate any item for. <br/>Number of Ratings will display how many unique users rated the item. <br />
<br/>Remmember that if same user rates twice, it will override his / her previous rating <br />
( and will not aggregate ). <br/><br />
Rating control will average ratings of unique users rating on item basis. </td></tr>
<tr><td valign="top" width="600">Step # 7 User ratings are collected asynchronously as shown below. </td></tr>
<tr><td valign="top" width="600"><div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/_PLRzz5eSJW4/S7dn4cLG99I/AAAAAAAAFPA/TVHUF1b-iQY/s1600/AsynRating1.jpg" imageanchor="1" style="clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="130" nt="true" src="http://1.bp.blogspot.com/_PLRzz5eSJW4/S7dn4cLG99I/AAAAAAAAFPA/TVHUF1b-iQY/s640/AsynRating1.jpg" width="640" /></a></div></td></tr>
<tr><td valign="top" width="600">Step # 8 Once you submit rating, you will be also shown the success message.</td></tr>
<tr><td valign="top" width="600"><div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/_PLRzz5eSJW4/S7dqq5xc9eI/AAAAAAAAFPI/EssgeUDbiI0/s1600/AsynRating2.jpg" imageanchor="1" style="clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="84" nt="true" src="http://1.bp.blogspot.com/_PLRzz5eSJW4/S7dqq5xc9eI/AAAAAAAAFPI/EssgeUDbiI0/s640/AsynRating2.jpg" width="640" /></a></div></td></tr>
<tr><td valign="top" width="600">Step # 9 Wait for a minute since the timer jobs is set to run for every 1 min as configured earlier. View the list webpart and notice that the ratings will be changed.</td></tr>
<tr><td valign="top" width="600"><div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/_PLRzz5eSJW4/S7dr7WwzykI/AAAAAAAAFPQ/nb9yy_Rtx2w/s1600/ratingWebPart.jpg" imageanchor="1" style="clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="88" nt="true" src="http://2.bp.blogspot.com/_PLRzz5eSJW4/S7dr7WwzykI/AAAAAAAAFPQ/nb9yy_Rtx2w/s640/ratingWebPart.jpg" width="640" /></a></div></td></tr>
<tr><td valign="top" width="600">Step # 10 Perfect! Lets now see how to use this Rating Control on a Page. First we need the Page level register tag.</td></tr>
<tr><td valign="top" width="600"><pre class="csharp" name="code"><%@ Register Tagprefix="SharePointPortalControls" Namespace="Microsoft.SharePoint.Portal.WebControls" Assembly="Microsoft.SharePoint.Portal, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %></pre><br />
</td></tr>
<tr><td valign="top" width="600">Step # 11 Once you register the Control Tag, use the below control code and add it to the PlaceHolderMain section. <br/>Make sure that the FieldRef Name matches the column name. You are all set now. </td></tr>
<tr><td valign="top" width="600"><br />
<pre class="csharp" name="code"><SharePointPortalControls:AverageRatingFieldControl id="PageRatingControl" FieldName="Rating (0-5)" runat="server" /></pre><br />
</td></tr>
</tbody></table>Srini Sistlahttp://www.blogger.com/profile/04638457531918294392noreply@blogger.com6tag:blogger.com,1999:blog-2299043566492377103.post-88202471450225114122010-04-02T03:41:00.025-04:002010-07-30T21:23:44.574-04:00Using Custom Actions in SharePoint 2010<strong>Title: </strong>Using Custom Actions in SharePoint 2010<br />
<br />
<strong>Details: </strong>Using Custom Actions in SharePoint 2010 is not different as you create them in either WSS3.0 / MOSS 2007. In this post I will run through the sample of creating your own Custom Group and then a Custom Action link under it. Now before we proceed, I created a very nice pic of mine and sized it to 48x48 and copied it to the 14 hive / Template / Images folder ( named as SiteSettings_SriniSistla_48x48.jpg in this case ). Alright, now lets proceed for few steps.<br />
Step # 1 Create a folder ( MyCustomActions in my example ) with a proper name of your choice<br />
Step # 2 Add a new file to the folder and name it as Feature.xml<br />
Step # 3 Add the content as shown in below code and customize it to your needs. Well, notice that this feature is Scoped to Site and you can create a feature for any scope based on where you want to have the Custom Action.<br />
<pre class="csharp" name="code"><?xml version="1.0" encoding="utf-8"?>
<Feature xmlns="http://schemas.microsoft.com/sharepoint/"
ActivateOnDefault="FALSE"
AlwaysForceInstall="FALSE"
AutoActivateInCentralAdmin="FALSE"
Description="Will Create a Section and Link to my Blog"
Hidden="FALSE" Id="90C924A7-32F7-4C19-BD4C-AF49EF0563A9"
Scope="Site" Title="My Custom Actions">
<ElementManifests>
<ElementManifest Location="MyCustomActions.xml" />
</ElementManifests>
</Feature>
</pre>Step # 4 Create another file in the same folder ( myCustomActions.xml in my example ) and name it as Elements.xml or of your own choice<br />
Step # 5 Add the content as shown in below code and customize it to your needs.<br />
<pre class="csharp" name="code"><Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<CustomActionGroup Description="Srini Sistla Exclusive Custom Group" Id="SriniSistla" Url="/_layouts/images/SiteSettings_SriniSistla_48x48.jpg"
Location="Microsoft.SharePoint.SiteSettings" Sequence="111" Title="Srini Sistla Blog Details">
</CustomActionGroup>
<CustomAction GroupId="SriniSistla" Id="UserInterfaceCustomActions.SiteSettings" Location="Microsoft.SharePoint.SiteSettings" Sequence="106" Title="Blog Link">
<UrlAction Url="http://codename-srini.blogspot.com" />
</CustomAction>
</Elements>
</pre>Step # 6 Now, notice that I have a CustomActionGroup created first ( with Id = SriniSistla ) that I will use it in my CustomAction Section. You can create of your own choice in this case.<br />
Step # 7 Once you have everything in place, copy this folder to 14 hive > Template > Features.<br />
Step # 8 I am happy for now in still using STSADM commands and I will go ahead and use the Install Feature Command here.<br />
<pre class="csharp" name="code">stsadm -o installfeature -filename MyCustomFeature\Feature.xml
</pre>Step # 9 You can as well activate the feature using Stsadm itself, however you can as well go and activate your feature from the Site collection features link under Site Actions > Site Settings > Site Collection Administration as shown below.<br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/_PLRzz5eSJW4/S7We50LFXYI/AAAAAAAAFN4/eIfuTPjRMLg/s1600/feature.jpg" imageanchor="1" style="clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="115" nt="true" src="http://4.bp.blogspot.com/_PLRzz5eSJW4/S7We50LFXYI/AAAAAAAAFN4/eIfuTPjRMLg/s400/feature.jpg" width="400" /></a></div><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Step # 10 Once you activate the feature, you will find the Custom Actions group and the Custom Actions Link on your site actions > site settings page as shown below.<br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/_PLRzz5eSJW4/S7WfDxzWszI/AAAAAAAAFOI/whCPtSCaA_I/s1600/CustomActions.jpg" imageanchor="1" style="clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="258" nt="true" src="http://1.bp.blogspot.com/_PLRzz5eSJW4/S7WfDxzWszI/AAAAAAAAFOI/whCPtSCaA_I/s400/CustomActions.jpg" width="400" /></a></div><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
So far so good. Notice the GroupId="SriniSistla" in my example. If you want to add to an already existing out of the box groups use below GroupId's.<br />
<br />
First, to Add your Custom Actions under Site Actions > Site Settings Page set the Location="Microsoft.SharePoint.SiteSettings" and<br />
GroupID="Customization" to add under 'Look and Feel Section'<br />
GroupID="Galleries" to add under Galleries'<br />
GroupID="SiteAdministration" to add under 'Site Administration'<br />
GroupID="SiteCollectionAdmin" to add under 'Site Collection Administration'<br />
GroupID="UsersAndPermissions" to add under 'Users and Permissions'<br />
<br />
for entire Custom Actions list, refer to the msdn site <a href="http://msdn.microsoft.com/en-us/library/bb802730(office.14).aspx" target="_blank">here</a>.<br />
have fun.Srini Sistlahttp://www.blogger.com/profile/04638457531918294392noreply@blogger.com6tag:blogger.com,1999:blog-2299043566492377103.post-7106194492462883992010-03-29T23:16:00.000-04:002010-03-29T23:18:41.651-04:00InLine List Item Editing in SharePoint 2010<p><strong>Title:</strong> InLine List Item Editing in SharePoint 2010 <br /> <br /><strong>Details:</strong> I have worked on many third party tools including telerik / devexpress and I always wanted the inline editing functionality on atleast the out of the box list items. And finally my wish fulfilled <br /></p> <table border="0" cellspacing="4" cellpadding="4" width="600"><tbody> <tr> <td valign="top" width="600">List items ( on modify view settings ) can now be edited inline as show below.</td> </tr> <tr> <td valign="top" width="600"><img border="0" src="http://2.bp.blogspot.com/_PLRzz5eSJW4/S7Fs8gDkf8I/AAAAAAAAFNk/mgl5y7qXui8/s640/InlineEditing.jpg" width="640" height="72" nt="true" /></td> </tr> <tr> <td valign="top" width="600">Before getting to it, you need to first enable the inline editing option as show below on the modify view settings page.</td> </tr> <tr> <td valign="top" width="600"><img border="0" src="http://4.bp.blogspot.com/_PLRzz5eSJW4/S7FtBYavoTI/AAAAAAAAFNs/EnJTRbz239U/s640/InlineEditingSettings.jpg" width="640" height="46" nt="true" /></td> </tr> </tbody></table> Srini Sistlahttp://www.blogger.com/profile/04638457531918294392noreply@blogger.com0tag:blogger.com,1999:blog-2299043566492377103.post-91048389738401299402010-03-29T22:01:00.001-04:002010-03-29T22:01:44.949-04:00Create a Tool to Get the Full Name of an Assembly<strong>Title:</strong> Create a Tool to Get the Full Name of an Assembly <br /> <br /><strong>Details:</strong> Here is a wonderful way to create a tool to get the full name of an assembly provided by <a href="http://msdn.microsoft.com/en-us/library/ee539422(v=office.14).aspx" target="_blank">Microsoft ( original link )</a>. Create a command line project and name it as GetAssemblyName using the below code. Below are few screenshots how it looks like ( output ) after you create it. <br /> <br /> <table border="0" cellspacing="0" cellpadding="2" width="600"><tbody> <tr> <td valign="top" width="600">#1 Adding the tool to the External Tools on your Visual Studio 2010 </td> </tr> <tr> <td valign="top" width="600"><a href="http://lh5.ggpht.com/_PLRzz5eSJW4/S7FbejLZOoI/AAAAAAAAFNM/c6yYVhPQVRs/s1600-h/tools%5B5%5D.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="tools" border="0" alt="tools" src="http://lh6.ggpht.com/_PLRzz5eSJW4/S7Fbfi5y5gI/AAAAAAAAFNQ/PcnNTH90vn4/tools_thumb%5B1%5D.jpg?imgmax=800" /></a> </td> </tr> <tr> <td valign="top" width="600">#2 Linking the Tool </td> </tr> <tr> <td valign="top" width="600"><a href="http://lh3.ggpht.com/_PLRzz5eSJW4/S7FbgC5x9qI/AAAAAAAAFNU/PIeN3nlc3H8/s1600-h/link%5B5%5D.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="link" border="0" alt="link" src="http://lh5.ggpht.com/_PLRzz5eSJW4/S7FbgsY9SgI/AAAAAAAAFNY/nG7HT_bYE-U/link_thumb%5B1%5D.jpg?imgmax=800" /></a> </td> </tr> <tr> <td valign="top" width="600">#3 Using the tool and output </td> </tr> <tr> <td valign="top" width="600"><a href="http://lh5.ggpht.com/_PLRzz5eSJW4/S7FbhW5-_mI/AAAAAAAAFNc/QvpPvmH3GSw/s1600-h/output%5B5%5D.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="output" border="0" alt="output" src="http://lh3.ggpht.com/_PLRzz5eSJW4/S7FbiDUVwcI/AAAAAAAAFNg/ltdGrrI9xdk/output_thumb%5B1%5D.jpg?imgmax=800" /></a> </td> </tr> </tbody></table> <br /><strong>Code:</strong> <br /> <br /> <pre class="csharp" name="code">using System;<br />using System.Reflection;<br />using System.IO;<br /><br />namespace GetAssemblyName<br />{<br /> class Program<br /> {<br /> static void PrintUsage()<br /> {<br /> Console.WriteLine("Usage: GetAssemblyName.exe <path filename and>\n");<br /> Console.WriteLine(@"Example: GetAssemblyName.exe C:\MyAssembly.dll");<br /> Console.Read();<br /> }<br /><br /> static void Main(string[] args)<br /> {<br /> if (args.Length < 1 || args[0] == "?")<br /> {<br /> PrintUsage();<br /> return;<br /> }<br /> <br /> string filename = args[0];<br /><br /> try<br /> {<br /> AssemblyName an = AssemblyName.GetAssemblyName(filename);<br /> Console.WriteLine("Fully specified assembly name:\n");<br /> Console.WriteLine(an.ToString());<br /> }<br /> catch (FileNotFoundException)<br /> {<br /> Console.WriteLine("Cannot locate the assembly. Check the path and try again.");<br /> }<br /><br /> Console.Read();<br /> }<br /> }<br />}</pre><br /><br /><br />To add a Get Assembly Full Name item to the Tools menu <br /><br /><br /><br /><br /><ul><br /> <li>In Visual Studio, select External Tools from the Tools menu. </li><br /><br /> <li>In the External Tools dialog, click Add and enter Get Assembly Full Name for the Title. </li><br /><br /> <li>Fill the Command textbox by browsing to GetAssemblyName.exe. </li><br /><br /> <li>In the Arguments textbox, type the following (which is case sensitive): $(TargetPath) </li><br /><br /> <li>Enable the Use Output window checkbox. Click OK. </li><br /><br /> <li>The new command is added to the Tools menu. </li><br /></ul><br /><br /><div class="wlWriterEditableSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:e97e72a3-f269-49d9-8881-ccf00f2cd182" style="float:none; display:inline; margin:0px; padding:0px 0px 0px 0px;">Technorati Tags: <a href="http://technorati.com/tags/Tools" rel="tag">Tools</a>,<a href="http://technorati.com/tags/Visual+Studio+2010" rel="tag">Visual Studio 2010</a></div> Srini Sistlahttp://www.blogger.com/profile/04638457531918294392noreply@blogger.com1tag:blogger.com,1999:blog-2299043566492377103.post-9483161911709620392010-03-26T14:39:00.002-04:002010-12-25T19:23:45.370-05:00Document Sets in SharePoint 2010<a href="http://www.srinisistla.com/blog/Lists/Posts/Post.aspx?ID=54">This link is moved here.</a>Srini Sistlahttp://www.blogger.com/profile/04638457531918294392noreply@blogger.com0tag:blogger.com,1999:blog-2299043566492377103.post-30479965495829408292010-03-07T20:52:00.000-05:002010-03-07T20:52:10.995-05:00LINQ to SharePoint<strong>Title: </strong>LINQ to SharePoint<br />
<br />
<strong>Details: </strong>Its not new to us that LINQ to SharePoint is newly introduced in SharePoint 2010 with a new Provider 'Microsoft.SharePoint.Linq'. It translates LINQ Queries into CAML queries. Which means... bye bye CAML ( you can still use it if you love it ). Few pointers on LINQ to SharePoint...<br />
<ul><li>No CAML required</li>
<li>Can be called against both server and client object model</li>
<li>Tools available ( SPMetal ) to create business layer ( entity classes ) - <a href="http://codename-srini.blogspot.com/2009/10/sharepoint-2010-development-tools.html">How to use SPMetal?</a></li>
<li>Intellisense helps query construction</li>
<li>Query across multiple lists with relationships</li>
<li>Allow inefficient queries</li>
<li>Merge results from multiple lists and multiple data sources</li>
<li>Join results from multiple data sources</li>
</ul><strong>Code: </strong>Sample code on how to use LINQ to SharePoint is as shown below. ( Code run against my custom list called FirstNames which has column name FirstName ). You need to create the entity class ( EntitiesDataContext in the below example ) first using SPMetal that would give a data context for our use.<br />
<br />
<pre class="csharp" name="code">DataContext data = new DataContext(SPContext.GetContext(this.Context).Web.Url);
using (EntitiesDataContext moEntitiesDataContext = new EntitiesDataContext(SPContext.GetContext(this.Context).Web.Url))
{
var fn = from fNames in moEntitiesDataContext.FirstNames
select new { fNames.FirstName };
}
</pre>Srini Sistlahttp://www.blogger.com/profile/04638457531918294392noreply@blogger.com0tag:blogger.com,1999:blog-2299043566492377103.post-50008168838617409342010-03-06T22:37:00.001-05:002010-03-06T22:39:03.723-05:00Solution Dependencies in SharePoint 2010<strong>Title: </strong>Solution Dependencies in SharePoint 2010<br />
<br />
<strong>Details:</strong> We have seen 'Feature Dependencies' until MOSS 2007. Similarly have you ever felt the need of 'Solution Dependencies'? I am sure you might have felt and then here is how your need is fulfilled in SharePoint 2010. Now we can have solution dependencies and it comes with few rules that we need to understand that are mentioned as below.<br />
<ol><li>Checks if dependant solution is available</li>
<li>Does not deploy dependant solutions</li>
<li>Checks for dependancy during the time of deployment</li>
<li>Solution dependancy works for both kinds of solutions ( Farm / Sandboxed )</li>
<li>Solution dependancy does not work on the combination of Farm / Sandboxed Solutions</li>
<li>In situation when dependancy solution is not activated/deployed then activating/deploying dependant solution will fail.</li>
<li>Opposite the above point # 6 will succeed. </li>
<li>In case of dependancy solution is deactivated/retracted, dependant solution will still be activated/deployed.</li>
</ol>Below is sample code on how to use it ( under package.template.xml file )...<br />
<br />
<strong>Code:</strong><br />
<pre class="csharp" name="code"><?xml version="1.0" encoding="utf-8"?>
<Solution xmlns="http://schemas.microsoft.com/sharepoint/"
SolutionId="CURRENT_SOLUTION_GUID"
<
<ActivationDependencies>
<ActivationDependency SolutionId="DEPENDANT_SOLUTION_GUID"/>
</ActivationDependencies>
</Solution>
</pre>Srini Sistlahttp://www.blogger.com/profile/04638457531918294392noreply@blogger.com0tag:blogger.com,1999:blog-2299043566492377103.post-80008413576862717052010-03-06T08:50:00.000-05:002010-03-06T08:50:02.970-05:00SharePoint 2010 and Office 2010 Lauch dates announced as May 12th 2010<strong>Title:</strong> SharePoint 2010 and Office 2010 Lauch dates announced<br />
<br />
<strong>Details:</strong> Mark your calendars as Microsoft announced the launch dates for SharePoint 2010 and Office 2010 as <strong>May 12th 2010</strong>; official link with details on the SharePoint msdn blog site <a href="http://blogs.msdn.com/sharepoint/archive/2010/03/05/sharepoint-2010-office-2010-launch.aspx">here</a>.<br />
<br />
<a href="http://blogs.msdn.com/sharepoint/archive/2010/03/05/sharepoint-2010-office-2010-launch.aspx">http://blogs.msdn.com/sharepoint/archive/2010/03/05/sharepoint-2010-office-2010-launch.aspx</a><br />
<br />
<br />
<pre class="csharp" name="code"></pre>Srini Sistlahttp://www.blogger.com/profile/04638457531918294392noreply@blogger.com0tag:blogger.com,1999:blog-2299043566492377103.post-80268702504678829922010-03-02T22:22:00.001-05:002010-03-02T22:22:43.908-05:00Error: System.IO.FileNotFoundException was unhandled by user code<strong>Title:</strong> Error(s) while running SharePoint 2010 projects using Visual Studio 2010<br />
<br />
<strong>Details:</strong> Have you encountered the below errors while you are running SharePoint 2010 projects using Visual Studio 2010?<br />
<br />
System.IO.FileNotFoundException was unhandled by user code<br />
Message="The Web application at http://sp2010/ could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application."<br />
<br />
or <br />
<br />
Request for the permission of type 'Microsoft.SharePoint.Security.SharePointPermission, Microsoft.SharePoint.Security, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' failed.<br />
<br />
<strong>Resolution:</strong> Verify what framework you are running against. By default Visual Studion 2010 runs with .NET Framework 4.0 and SharePoint 2010 is built against to run on .NET Framework 3.5. <br />
Change you project settings to run against 3.5 and you should be goodSrini Sistlahttp://www.blogger.com/profile/04638457531918294392noreply@blogger.com3tag:blogger.com,1999:blog-2299043566492377103.post-67375961826387257592010-03-02T22:22:00.000-05:002010-03-02T22:22:35.432-05:00Speaking at CapArea SharePoint Group on May 11 2010<strong>Title:</strong> Speaking at CapArea SharePoint Group on May 11 2010<br />
<br />
<strong>Topic:</strong> SharePoint 2010 Sandboxed Solutions<br />
<br />
<strong>Details:</strong> CapArea SharePoint <a href="http://caparea.net/Default.aspx?alias=caparea.net/sharepoint">Site</a> <br />
<br />
<strong>Location:</strong> AT&T Building, 1900 Gallows Road, Vienna, VA 22182; How to reach <a href="http://caparea.net/Default.aspx?tabid=59" target="_blank">here</a>?Srini Sistlahttp://www.blogger.com/profile/04638457531918294392noreply@blogger.com0tag:blogger.com,1999:blog-2299043566492377103.post-42446879331115350382010-03-01T13:57:00.000-05:002010-03-01T13:57:32.714-05:00Speaking at SharePoint Users Group of DC on Mar 04 2010<strong>Title:</strong> Speaking at SharePoint Users Group of DC on Mar 04 2010<br />
<br />
<strong>Topic:</strong> SharePoint 2010 Sandboxed Solutions<br />
<br />
<strong>Details:</strong> Register <a href="http://www.sugdc.org/Events/Meetings/tabid/57/Default.aspx" target="_blank">here</a><br />
<br />
<strong>Location:</strong> How to reach <a href="http://tinyurl.com/24qv88" target="_blank">here</a>?Srini Sistlahttp://www.blogger.com/profile/04638457531918294392noreply@blogger.com0