tag:blogger.com,1999:blog-72267727463166022822024-03-05T16:30:06.867+11:00Ninos YacoubAll about me and my work experience with Microsoft SharePointNeo Assyrianhttp://www.blogger.com/profile/09651619150704812079noreply@blogger.comBlogger32125tag:blogger.com,1999:blog-7226772746316602282.post-28223665243333929922011-02-18T16:51:00.000+11:002011-02-18T16:51:45.775+11:00<div class="separator" style="clear: both;">If you ever wondered how you can do this “without code” J you can do it by placing two WebParts on a SP page; an InfoPath Form WebPart and a Query String Filter WebPart. You then make a connection between the two passing the value from the Query String Filter to the InfoPath form WebPart.<br />
</div><div class="separator" style="clear: both;">Note the following:</div><ul><li>This will not work for “lookup” fields if you use the default SP list InfoPath form (That’s Why I thought you can’t do it originally for lookups). However, you can expose the “lookup” dropdown field if you create a new InfoPath form using the method below.</li>
<li>Make sure you add the “field” in your InfoPath to the list of allowable fields to be used in connections.</li>
</ul><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi48rkC98wxjpOvSl_jCxOML3dlp1yyFN4lupM5-qBc_sNlTktsiJGEK2KFcTPHWdHlzoiwWySxP943agBypTORR8avcHonNgTx9sia616BdvmjlFDJsIFeKs2dboIl9xq7ivrKc82O6fnu/s1600/webpart-connection-infopath-parameter.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="244" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi48rkC98wxjpOvSl_jCxOML3dlp1yyFN4lupM5-qBc_sNlTktsiJGEK2KFcTPHWdHlzoiwWySxP943agBypTORR8avcHonNgTx9sia616BdvmjlFDJsIFeKs2dboIl9xq7ivrKc82O6fnu/s320/webpart-connection-infopath-parameter.jpg" width="320" /></a><br />
<div class="MsoNormal"><br />
</div><div class="MsoNormal"><br />
</div><div class="MsoNormal">References:<o:p></o:p></div><div class="MsoNormal"><a href="http://blogs.msdn.com/b/infopath/archive/2010/06/03/how-to-pass-querystring-data-into-an-infopath-form.aspx">http://blogs.msdn.com/b/infopath/archive/2010/06/03/how-to-pass-querystring-data-into-an-infopath-form.aspx</a><o:p></o:p></div><div class="MsoNormal"><br />
</div><div class="MsoNormal">And here is how you can do it with Code behind.<o:p></o:p></div><div class="MsoNormal"><a href="http://blogs.msdn.com/b/infopath/archive/2007/02/26/passing-data-into-a-form-input-parameters.aspx">http://blogs.msdn.com/b/infopath/archive/2007/02/26/passing-data-into-a-form-input-parameters.aspx</a><o:p></o:p></div>Neo Assyrianhttp://www.blogger.com/profile/09651619150704812079noreply@blogger.com0tag:blogger.com,1999:blog-7226772746316602282.post-61882491237186097752011-01-21T15:05:00.000+11:002011-01-21T15:05:46.756+11:00Retrieve Activities from the SharePoint 2010 Activity FeedsI've recently worked on a webpart that will let you retrieve activities for the logged in user and display them using the default template of the activity.<br />
<br />
The webpart gets an instance of the ActivityManager object and the UserProfile object of the logged in user. After you get the reference, you can then retrieve the activity events using the ActivityManager.GetActivitiesByUser() method. Then you retrieve the resource (.resx) file corresponding to that particular ActivityEvent replacing the values with the ActivityEvent values as shown the code below<br />
<br />
<br />
string userName = Environment.UserDomainName + "//" + Environment.UserName;<br />
SPServiceContext currentContext = SPServiceContext.GetContext(SPContext.Current.Site);<br />
<br />
//Get the UserProfileManager from SPServiceContext.<br />
UserProfileManager userProfMan = new UserProfileManager(currentContext);<br />
<br />
//Get the current user.<br />
UserProfile currentUser = userProfMan.GetUserProfile(userName);<br />
<br />
//Get the ActivityManager from the user and context.<br />
ActivityManager activityMan = new ActivityManager(currentUser, currentContext);<br />
<br />
ActivityEventsCollection eventsCollection = activityMan.GetActivitiesForMe(10);<br />
<br />
foreach (ActivityEvent activity in eventsCollection)<br />
{<br />
ActivityType activityType = activityMan.ActivityTypes[activity.ActivityTypeId];<br />
ActivityTemplate activityTemplate = activityType.ActivityTemplates[bool.FalseString];<br />
string templateStr = SPUtility.GetLocalizedString(activityTemplate.TitleFormatLocStringResourceFile, "$Resource:" + activityTemplate.TitleFormatLocStringName, (uint)CultureInfo.CurrentUICulture.LCID);<br />
<br />
//The line below returns null for the "Publisher".<br />
//HOWEVER, If i step through the code in debug mode, the values get populated eventually<br />
templateStr = templateStr.Replace("{Publisher}", activity.Publisher.Name);<br />
<br />
//Then you will need to output the templateStr to the UI.<br />
//EncodedLiteral.Text += templateStr<br />
}<br />
<br />
<br />
What you might notice is that you will get an "Null" Exception when you query the Publisher and the Owner properties of the ActivityEvent object. Stepping through the code, you will notice that the values will eventually load, and you will not get the exception. I'm not sure why this happens. If anyone knows, Feel free to leave a comment. A solution for this would be to get the TemplateVariable property and parse it as an XmlDocument object and then use that to get the Event values.Neo Assyrianhttp://www.blogger.com/profile/09651619150704812079noreply@blogger.com1tag:blogger.com,1999:blog-7226772746316602282.post-21999699637159486582010-05-18T13:13:00.004+10:002010-05-18T23:27:28.888+10:00Add a WebPart into the Rich Content of a wiki page in SP2010After a long struggle looking in the SP API for how to insert a WebPart in the "rich content" of a wiki page, i found the answer. Thanks to <a href="http://stefan-stanev-sharepoint-blog.blogspot.com/2010/02/sharepoint-2010-how-to-add-web-parts-to.html">Stefan Stanev for posting the answer</a> to my question.<br />
<br />
I have modified the code a bit to suite my needs<br />
<br />
<blockquote>SPSite osite = properties.Feature.Parent as SPSite; </blockquote><blockquote> using (SPWeb oWeb = osite.OpenWeb(osite.RootWeb.ID)) </blockquote><div><blockquote> {</blockquote><blockquote> //SPLimitedWebPartManager webpartsManager = oWeb.GetLimitedWebPartManager(oWeb.RootFolder.WelcomePage, PersonalizationScope.Shared);</blockquote><blockquote><br />
</blockquote><blockquote> SPFile file = oWeb.GetFile(oWeb.RootFolder.WelcomePage);</blockquote><blockquote> Guid cwpID = AddWebPartToRichContent(file);</blockquote><blockquote> Guid xlvID = AddListWebPartToRichContent(file, "Announcements");</blockquote><blockquote><br />
</blockquote><blockquote> }</blockquote><blockquote><br />
</blockquote><blockquote>private Guid AddWebPartToRichContent(SPFile file)</blockquote><blockquote>{</blockquote><blockquote>// NOTE: we assume that the SPFile was checked out</blockquote><blockquote>// get the limited wp manager for that SPFile</blockquote><blockquote>SPLimitedWebPartManager mngr = file.GetLimitedWebPartManager(PersonalizationScope.Shared);</blockquote><blockquote><br />
</blockquote><blockquote>// create a sample content editor wp</blockquote><blockquote>ContentEditorWebPart cwp = new ContentEditorWebPart();</blockquote><blockquote>cwp.Title = "My editor";</blockquote></div><blockquote><br />
</blockquote><div><blockquote>// add the web part to the special wpz zone</blockquote><blockquote>mngr.AddWebPart(cwp, "wpz", 0);</blockquote><blockquote><br />
</blockquote><blockquote>// store the web part's internal ID</blockquote><blockquote>Guid cwpID = mngr.GetStorageKey(cwp);</blockquote><blockquote><br />
</blockquote><blockquote>// get the list item for that SPFile</blockquote><blockquote>SPListItem item = file.Item;</blockquote><blockquote><br />
</blockquote><blockquote>// update the PublishingPageContent field value</blockquote><blockquote>item["WikiField"] += this.GetEmbeddedWPString(cwpID);</blockquote><blockquote><br />
</blockquote><blockquote>// update the item</blockquote><blockquote>item.SystemUpdate(false);</blockquote><blockquote><br />
</blockquote><blockquote>// the SPFile instance can be checked in, published, approved afterwards</blockquote><blockquote><br />
</blockquote></div><div><blockquote>return cwpID;</blockquote><blockquote><br />
</blockquote><blockquote>}</blockquote><blockquote><br />
</blockquote><blockquote>private Guid AddListWebPartToRichContent(SPFile file, string listTitle)</blockquote><blockquote>{</blockquote><blockquote>// NOTE: we assume that the SPFile was checked out</blockquote><blockquote>// get the limited wp manager for that SPFile</blockquote><blockquote>SPLimitedWebPartManager mngr = file.GetLimitedWebPartManager(PersonalizationScope.Shared);</blockquote><blockquote><br />
</blockquote><blockquote>// create a sample XLV</blockquote><blockquote>XsltListViewWebPart xlv = new XsltListViewWebPart();</blockquote><blockquote><br />
</blockquote><blockquote>// get a target list</blockquote><blockquote>SPList list = file.ParentFolder.ParentWeb.Lists[listTitle];</blockquote><blockquote><br />
</blockquote><blockquote>// set the ListName property with the capitalized list ID w/o the curly braces</blockquote><blockquote>xlv.ListName = list.ID.ToString("B").ToUpper();</blockquote><blockquote><br />
</blockquote><blockquote>// use the schema of the default view</blockquote><blockquote>xlv.ViewGuid = list.DefaultView.ID.ToString("B").ToUpper();</blockquote><blockquote><br />
</blockquote><blockquote>// add the web part to the special wpz zone</blockquote><blockquote>mngr.AddWebPart(xlv, "wpz", 0);</blockquote><blockquote><br />
</blockquote><blockquote>// store the web part's internal ID</blockquote><blockquote>Guid xlvID = mngr.GetStorageKey(xlv);</blockquote><blockquote><br />
</blockquote><blockquote>// get the list item for that SPFile</blockquote><blockquote>SPListItem item = file.Item;</blockquote><blockquote><br />
</blockquote><blockquote>// update the PublishingPageContent field value</blockquote><blockquote>item["WikiField"] += this.GetEmbeddedWPString(xlvID);</blockquote><blockquote><br />
</blockquote><blockquote>// update the item</blockquote><blockquote>item.SystemUpdate(false);</blockquote><blockquote><br />
</blockquote><blockquote>// the SPFile instance can be checked in, published, approved afterwards</blockquote><blockquote><br />
</blockquote><blockquote>return xlvID;</blockquote><blockquote><br />
</blockquote><blockquote>}</blockquote><blockquote><br />
</blockquote><blockquote>private string GetEmbeddedWPString(Guid wpID)</blockquote><blockquote>{</blockquote><blockquote>const string form = @"<br />
<div class="" ms-rte-wpbox""="" ms-rtestate-read=""></div></blockquote><blockquote> <br />
<div class="" ms-rte-wpbox""="" ms-rtestate-read=""><br />
<br />
<div class="" div_{0}""="" id="" ms-rtegenerate-notify="" ms-rtestate-notify="" ms-rtestate-read="" {0}""=""></div><br />
<br />
<div display:none""="" id="" vid_{0}""=""></div><br />
</div> </blockquote></div><blockquote>";</blockquote><blockquote><br />
</blockquote><blockquote>// set the web part's ID as part of the ID-s of tho div elements</blockquote><blockquote>return string.Format(form, wpID);</blockquote><blockquote><br />
</blockquote><blockquote>}</blockquote><br />
<br />
I hope this would help someone out there.<br />
<br />
<b>Update</b>: Found another helpful post<br />
<a href="http://www.habaneros.com/mobile/blog/10-03-30/Programmatically_Change_Content_on_a_Wiki_Page_in_SharePoint_2010.aspx">http://www.habaneros.com/mobile/blog/10-03-30/Programmatically_Change_Content_on_a_Wiki_Page_in_SharePoint_2010.aspx</a>Neo Assyrianhttp://www.blogger.com/profile/09651619150704812079noreply@blogger.com0tag:blogger.com,1999:blog-7226772746316602282.post-78246119576850817842010-04-19T09:30:00.000+10:002010-04-19T09:30:24.012+10:00Twitter webpart for SharePoint 2010I've been working on a couple of social solutions for SharePoint 2010. One of the solutions was a Twitter webpart that will search for tweets based on a keyword, or a user.<br />
The following properties can be customized:<br />
<br />
<ul><li>Display poster profile image</li>
<li>Tweets limit</li>
<li>Search by a user and/or words</li>
<li>Refresh intervals (60 sec default)</li>
</ul><br />
The webpart will refresh on a set interval to load more tweets automatically.<br />
It is also possible to tag the tweets with keywords from SharePoint taxonomy.<br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxvDMRXcIeBaVHj6yGjCgewK0o3WbrWEvynXpZrq8mWS7g4cnwhiOKVTbIF45EQmV4NTcn1hF0HML8KkY9w6sKA_2khG0vGI-zg_hX58m64cT01jkrUQEOh5Z9Hj6A4M9Rpb9JvPmCBnUB/s1600/twietter.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxvDMRXcIeBaVHj6yGjCgewK0o3WbrWEvynXpZrq8mWS7g4cnwhiOKVTbIF45EQmV4NTcn1hF0HML8KkY9w6sKA_2khG0vGI-zg_hX58m64cT01jkrUQEOh5Z9Hj6A4M9Rpb9JvPmCBnUB/s320/twietter.JPG" /></a></div>Neo Assyrianhttp://www.blogger.com/profile/09651619150704812079noreply@blogger.com0tag:blogger.com,1999:blog-7226772746316602282.post-46574561240879416212010-04-17T20:04:00.000+10:002010-04-17T20:04:29.170+10:00SharePoint 2010 reaches RTM!Today SharePoint 2010 RTM was released. This is an exciting milestone for Microsoft. Volume License customers will be able to download SharePoint on the 27th of April if they have an active SA. Customers who do not have the SA will be able to download it on 1st of May.<br />
<br />
For more information, check the <a href="http://blogs.msdn.com/sharepoint/archive/2010/04/16/sharepoint-2010-reaches-rtm.aspx">Microsoft SharePoint Team Blog</a>Neo Assyrianhttp://www.blogger.com/profile/09651619150704812079noreply@blogger.com0tag:blogger.com,1999:blog-7226772746316602282.post-54184555794074055592010-04-09T10:59:00.000+10:002010-04-09T10:59:55.662+10:00Activity Feed being empty with Claims Enabled Web ApplicationsI was having trouble aggregating my colleagues' activities into my news feed page. After searching for a solution on the internet, found out that i needed to do two things<br />
<br />
<br />
<ul><li>Add colleagues </li>
<li>Enable the "User - Activity Feed Job" because it was disabled for some reason.</li>
</ul><br />
Then when i went to the "My newsfeed" page, i found no feeds still. I didn't get the feeds in my "recent activities" either. After some investigations i found out that the "All Authenticated" users for the Claims provider that the Web Application is using must be added to have read permissions on the social data. You can do this by going to the User Profile Management page and then going to the "Manage User Permissions" page.<br />
<br />
After doing this, and then re-running the job. The feeds appeared :)Neo Assyrianhttp://www.blogger.com/profile/09651619150704812079noreply@blogger.com0tag:blogger.com,1999:blog-7226772746316602282.post-81511878528700965862010-01-28T07:48:00.000+11:002010-01-28T07:48:09.409+11:00New SharePoint and Office 2010 Image availabe<div class="MsoNormal" style="margin-bottom: 3.6pt; mso-margin-top-alt: auto;"><b><span lang="EN-US" style="font-family: 'Times New Roman', serif;">Overview<o:p></o:p></span></b><br />
</div><div class="MsoNormal"><a href="" name="Description"></a><span lang="EN-US" style="font-family: 'Times New Roman', serif;">This download contains a two Virtual Machine set for evaluating and demonstrating Office 2010 and SharePoint 2010. </span><br />
</div><div class="MsoNormal"><span lang="EN-US" style="font-family: 'Times New Roman', serif;">Virtual machine “a” contains the following pre-configured software: </span><br />
</div><div class="MsoNormal"><span lang="EN-US" style="font-family: 'Times New Roman', serif;">1. Windows Server 2008 SP2 Standard Edition x64, running as an Active Directory Domain Controller for the “CONTOSO.COM” domain with DNS and WINS </span><br />
</div><div class="MsoNormal"><span lang="EN-US" style="font-family: 'Times New Roman', serif;">2. Microsoft SQL Server 2008 SP2 Enterprise Edition with Analysis, Notification, and Reporting Services </span><br />
</div><div class="MsoNormal"><span lang="EN-US" style="font-family: 'Times New Roman', serif;">3. Microsoft Office Communication Server 2007 R2 </span><br />
</div><div class="MsoNormal"><span lang="EN-US" style="font-family: 'Times New Roman', serif;">4. Visual Studio 2010 Beta 2 Ultimate Edition </span><br />
</div><div class="MsoNormal"><span lang="EN-US" style="font-family: 'Times New Roman', serif;">5. Microsoft SharePoint Server 2010 Enterprise Edition Beta 2 </span><br />
</div><div class="MsoNormal"><span lang="EN-US" style="font-family: 'Times New Roman', serif;">6. Microsoft Office Web Applications Beta 2 </span><br />
</div><div class="MsoNormal"><span lang="EN-US" style="font-family: 'Times New Roman', serif;">7. FAST Search for SharePoint 2010 Beta 2 </span><br />
</div><div class="MsoNormal"><span lang="EN-US" style="font-family: 'Times New Roman', serif;">8. Microsoft Project Server 2010 Beta 2 </span><br />
</div><div class="MsoNormal"><span lang="EN-US" style="font-family: 'Times New Roman', serif;">9. Microsoft Office 2010 Beta 2 </span><br />
</div><div class="MsoNormal"><span lang="EN-US" style="font-family: 'Times New Roman', serif;">10. Microsoft Office Communicator 2007 R2 </span><br />
</div><div class="MsoNormal"><span lang="EN-US" style="font-family: 'Times New Roman', serif;"><br />
</span><br />
</div><div class="MsoNormal"><span lang="EN-US" style="font-family: 'Times New Roman', serif;">Virtual machine “b” contains the following pre-configured software: </span><br />
</div><div class="MsoNormal"><span lang="EN-US" style="font-family: 'Times New Roman', serif;">1. Windows Server 2008 R2 Standard Evaluation Edition x64, joined to the “CONTOSO.COM” domain 2. Microsoft Exchange Server 2010 Active directory has been preconfigured over 200 “demo” users with metadata in an organizational structure. All of these user profiles have been imported and indexed for search within SharePoint Server 2010, with “contoso\administrator” granted administrator permissions. </span><br />
</div><div class="MsoNormal"><span lang="EN-US" style="font-family: 'Times New Roman', serif;">SharePoint Server 2010 has been configured in a “Complete” farm using Kerberos authentication and the default SQL Server 2008 instance for data, and has a site collection created using the Team Site template at <a href="http://intranet.contoso.com/">http://intranet.contoso.com/</a> and a FAST Search Center at <a href="http://intranet.contoso.com/search/">http://intranet.contoso.com/search/</a>. </span><br />
</div><div class="MsoNormal"><span lang="EN-US" style="font-family: 'Times New Roman', serif;"><br />
</span><br />
</div><div class="MsoNormal"><span lang="EN-US" style="font-family: 'Times New Roman', serif;">Performance Considerations </span><br />
</div><div class="MsoNormal"><span lang="EN-US" style="font-family: 'Times New Roman', serif;">1. If possible, unpack and run the VM image on a separate, fast hard drive (7200 RPM or better) from the operating system of the host machine. If this is being done on a laptop, a second internal drive or external eSATA drive works best, though USB 2.0 (make sure it's 2.0, 1.1 is too slow) or Firewire is acceptable. For absolute best performance use a second internal SSD drive. <o:p></o:p></span><br />
</div><div class="MsoNormal"><br />
</div><div class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: EN-US;"><o:p>To download it, follow the below link</o:p></span><br />
</div><div class="MsoNormal"><span lang="EN-US" style="mso-ansi-language: EN-US;"><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=0c51819b-3d40-435c-a103-a5481fe0a0d2&displaylang=en">http://www.microsoft.com/downloads/details.aspx?FamilyID=0c51819b-3d40-435c-a103-a5481fe0a0d2&displaylang=en</a><o:p></o:p></span><br />
</div>Neo Assyrianhttp://www.blogger.com/profile/09651619150704812079noreply@blogger.com0tag:blogger.com,1999:blog-7226772746316602282.post-3626738074729868312010-01-28T07:43:00.001+11:002010-01-28T07:43:58.599+11:00User profile import will not work when Office WebApps are installed on the serverFrom working with the Profile Import Service Application, and testing out what SharePoint 2010 can do, we have found out that if you have Office Web Apps installed on your server, the Profile Import will not work.<br />
<br />
This is a known bug and will be fixed in a future release.Neo Assyrianhttp://www.blogger.com/profile/09651619150704812079noreply@blogger.com0tag:blogger.com,1999:blog-7226772746316602282.post-72895287536061961482009-11-24T23:14:00.000+11:002009-11-24T23:14:22.810+11:00Deploy Office Web apps on SharePoint 2010<span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;"><span style="font-family: 'Times New Roman';"><span class="Apple-style-span" style="font-size: medium;">Office Web Apps is the online companion to Word, Excel, PowerPoint and OneNote applications that allows users to access documents from virtually anywhere. Users can view, share, and work on documents with others online across personal computers, mobile phones, and the Web. Office Web Apps is available to users through Windows Live and to business customers with Microsoft Office 2010 volume licensing and document management solutions based on Microsoft SharePoint Server 2010</span></span>.</span><br />
<br />
To install Office Web Apps on your SharePoint Server 2010, <a href="http://technet.microsoft.com/en-us/library/ee695758(office.14).aspx">read the following document</a> for steps on how to deploy it. After deploying it to your SharePoint Server, users accessing your sites will be able to view, edit, and share documents from the web without the need to the Office client.<div><br />
</div><div>Click here to download <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=27d81b1c-18ae-4983-8e1c-224bb747eb99&displaylang=en">Office Web Apps for SharePoint Server 2010</a></div><div><br />
</div><div>Other resources:</div><div><a href="http://merill.net/2009/11/installing-office-web-apps-on-windows-7/">Installing Office Webapps on Windows 7</a></div><div><a href="http://go.microsoft.com/fwlink/?LinkId=166485&clcid=0x409">Deploy Office WebApps Word Document</a></div>Neo Assyrianhttp://www.blogger.com/profile/09651619150704812079noreply@blogger.com0tag:blogger.com,1999:blog-7226772746316602282.post-54073561080026070422009-11-24T13:35:00.001+11:002009-11-24T13:36:07.185+11:00Integrated Windows Authentication with Claims Based Authentication in SharePoint 2010 error (IE)Hi<br />
<br />
In case you have a problem "signing as a different user" in SharePoint 2010 Web Application that uses "Claims Based Authentication" you will need to turn off the "Integrated Windows Authentication" option in Internet Explorer (As shown below). Without doing this, you wont be able to sign is as a different user.<br />
<br />
This does not apply to other browsers and it is an IE issue.<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxdYFoGqolHLSP7B6XQe6dVYAuGMtyKzG9Xb-pIZK9AF4UFbR7oQPcLAD9JuBlnACBqWs-qF1khtVirLH3QSn7j_XgwwhkccR6bQeCwY0MaNv4WCe53Ur5S0Mf_q5bzVt_iB0BBtEy9End/s1600/disable+integrated+windows+auth.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxdYFoGqolHLSP7B6XQe6dVYAuGMtyKzG9Xb-pIZK9AF4UFbR7oQPcLAD9JuBlnACBqWs-qF1khtVirLH3QSn7j_XgwwhkccR6bQeCwY0MaNv4WCe53Ur5S0Mf_q5bzVt_iB0BBtEy9End/s320/disable+integrated+windows+auth.JPG" /></a><br />
</div>Neo Assyrianhttp://www.blogger.com/profile/09651619150704812079noreply@blogger.com0tag:blogger.com,1999:blog-7226772746316602282.post-88637546772306942562009-11-22T15:12:00.002+11:002009-11-22T15:12:34.992+11:00SharePoint Server 2010 Beta KeyIn case you can’t find it on download page after registration page:<br />
<br />
SharePoint Server 2010 Beta(Enterprise Client Access License features) product key:<br />
<br />
PKXTJ-DCM9D-6MM3V-G86P8-MJ8CY<br />
<br />
BV7VC-RMR6B-26P6Y-BTQDG-DX2KQ<br />
<br />
Both keys can be used. Feel free to post it elsewhere!Neo Assyrianhttp://www.blogger.com/profile/09651619150704812079noreply@blogger.com0tag:blogger.com,1999:blog-7226772746316602282.post-62663259912271118562009-11-20T14:56:00.001+11:002010-02-16T09:25:01.717+11:00Enabling Taxonomy features on a Site Collection created using "Blank Site" templateWhen you create a new site collection in SharePoint 2010 using the "Blank Site" or "STS#1" site template, the Taxonomy feature (and possibly other features) will not be activated by default. It appears that Microsoft does not staple any features in the farm with the blank site template. This means, there is no way to activate the Taxonomy features in a blank site using the SharePoint UI because the Taxonomy features are hidden.<br />
<br />
To activate the features, run the following stsadm command from the command prompt to enable the feature<br />
<br />
stsadm -o activatefeature -id "73EF14B1-13A9-416b-A9B5-ECECA2B0604C" -URL "http://siteurl/sitecollection"<br />
<div><br />
</div><div>This will enable the "TaxonomyFieldAdded" feature on the team site which should bring the "Term Store Management" link in the site administration section of a site. This will also enable you to add the Managed Metada column to your lists and content types.</div><div><br />
</div><div>On a side note, the following features are related to the taxonomy in SharePoint</div><div>TaxonomyFeatureStapler</div><div>TaxonomyFieldAdded</div><div>TaxonomyTenantAdminStapler</div><div>TaxonomyTenantAdmin</div><div>TaxonomyTimerJobs</div><div><br />
</div><div>All the above features are "hidden" which means that you can't enable them from the SharePoint UI</div><div><br />
</div>Neo Assyrianhttp://www.blogger.com/profile/09651619150704812079noreply@blogger.com1tag:blogger.com,1999:blog-7226772746316602282.post-87568981882474122992009-11-18T11:13:00.006+11:002009-11-18T14:25:16.825+11:00FileNotFoundException error when installing SharePoint 2010 Beta<span style="font-family: Helvetica, Arial, sans-serif; font-size: 13px; line-height: 17px;"></span><br />
<span style="font-family: Helvetica, Arial, sans-serif; font-size: 13px; line-height: 17px;"></span><br />
<span style="font-family: Helvetica, Arial, sans-serif; font-size: 13px; line-height: 17px;"></span><br />
<span style="font-family: Helvetica, Arial, sans-serif; font-size: 13px; line-height: 17px;"><div style="color: black; font-size: 10pt; font-weight: normal; line-height: 13pt; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><br />
</div></span><span style="font-family: Helvetica, Arial, sans-serif; font-size: 13px; line-height: 17px;"></span>On a Windows Server 2008 R2 installation which passed all the prerequisites, you might get the following error :<br />
<div><br />
<br />
<blockquote>11/17/2009 16:39:32 9 ERR Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.IdentityModel, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.<br />
File name: 'Microsoft.IdentityModel, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'<br />
at Microsoft.SharePoint.Administration.SPFarm.CurrentUserIsAdministrator(Boolean allowContentApplicationAccess)<br />
at Microsoft.SharePoint.Administration.SPConfigurationDatabase.Microsoft.SharePoint.Administration.ISPPersistedStoreProvider.DoesCurrentUserHaveWritePermission(SPPersistedObject persistedObject)<br />
at Microsoft.SharePoint.Administration.SPPersistedObject.BaseUpdate()<br />
at Microsoft.SharePoint.Administration.SPFarm.Update()<br />
at Microsoft.SharePoint.Administration.SPConfigurationDatabase.RegisterDefaultDatabaseServices(SqlConnectionStringBuilder connectionString)<br />
at Microsoft.SharePoint.Administration.SPConfigurationDatabase.Provision(SqlConnectionStringBuilder connectionString)<br />
at Microsoft.SharePoint.Administration.SPFarm.Create(SqlConnectionStringBuilder configurationDatabase, SqlConnectionStringBuilder administrationContentDatabase, IdentityType identityType, String farmUser, SecureString farmPassword, SecureString masterPassphrase)<br />
at Microsoft.SharePoint.Administration.SPFarm.Create(SqlConnectionStringBuilder configurationDatabase, SqlConnectionStringBuilder administrationContentDatabase, String farmUser, SecureString farmPassword, SecureString masterPassphrase)<br />
at Microsoft.SharePoint.PostSetupConfiguration.ConfigurationDatabaseTask.CreateOrConnectConfigDb()<br />
at Microsoft.SharePoint.PostSetupConfiguration.ConfigurationDatabaseTask.Run()<br />
at Microsoft.SharePoint.PostSetupConfiguration.TaskThread.ExecuteTask()WRN: Assembly binding logging is turned OFF.<br />
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.<br />
Note: There is some performance penalty associated with assembly bind failure logging.<br />
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].<br />
</blockquote><br />
<br />
To resolve the problem you will need to download the following Geneva Framework version that had the required DLL.<br />
<div><div><span style="font-family: Helvetica, Arial, sans-serif; font-size: 13px; line-height: 17px;"></span><br />
<span style="font-family: Helvetica, Arial, sans-serif; font-size: 13px; line-height: 17px;"></span><br />
<span style="font-family: Helvetica, Arial, sans-serif; font-size: 13px; line-height: 17px;"></span><br />
<span style="font-family: Helvetica, Arial, sans-serif; font-size: 13px; line-height: 17px;"><div style="color: black; font-size: 10pt; font-weight: normal; line-height: 13pt; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><br />
</div></span><br />
</div></div></div>Neo Assyrianhttp://www.blogger.com/profile/09651619150704812079noreply@blogger.com0tag:blogger.com,1999:blog-7226772746316602282.post-68433768417762473822009-11-18T11:04:00.010+11:002009-11-22T15:06:21.871+11:00Installing SharePoint 2010 Beta<span style="color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; line-height: 14px;"></span>Since SharePoint 2010 has been made available for MSDN/TechNet subscriber now, here’re some steps you would like to follow to get a successful installation. But keep in mind: This beta is not supported and you CANNOT upgrade the installation to RTM when it’s released. This Beta should only be used for evaluation purpose.<br />
<div><br />
<br />
</div><div>Follow these steps to install SharePoint Foundation 2010 and SharePoint Server 2010 Beta products. <s>The process is split in two parts. The first part will install SharePoint Foundation 2010 Beta, and the second part will install SharePoint Server 2010 Beta.</s> You can either install SharePoint Foundation 2010 or Start by installing SharePoint Server 2010.<br />
<div><div><br />
</div><div>before you start the installation, you will need the following pre-requisites <br />
</div><div><br />
</div><div><ul><li>.Net Framework 3.5 with SP1 installed</li>
<li>Geneva Framework (Windows Identity Foundation) (<a href="http://download.microsoft.com/download/F/3/D/F3D66A7E-C974-4A60-B7A5-382A61EB7BC6/MicrosoftGenevaFramework.amd64.msi">download here</a>)\</li>
<li><a href="http://www.microsoft.com/downloads/details.aspx?familyid=AE7387C3-348C-4FAA-8AE5-949FDFBE59C4&displaylang=en">SQL Server 2005 SP3</a> and <a href="http://support.microsoft.com/kb/967909">CU3</a> OR <a href="http://www.microsoft.com/downloads/details.aspx?familyid=66AB3DBB-BF3E-4F46-9559-CCC6A4F9DC19&displaylang=en">Server 2008 SP1</a> and <a href="http://support.microsoft.com/kb/970315">CU2</a></li>
<li>Install WCF FIX: A hotfix that provides a method to support the token authentication without transport security or message encryption in WCF is available for the .NET Framework 3.5 SP1 (<a href="http://go.microsoft.com/fwlink/?linkID=160770">Windows Server 2008</a>, <a href="http://go.microsoft.com/fwlink/?LinkID=166231">Windows Server 2008 R2 <s>– link not activated ye</s>t</a>) . Please note the 2008 fix also applies to Vista, while the 2008 R2 fix also applies to Windows 7.<br />
If you don't have this fix installed, you will get "Unrecognized attribute 'allowInsecureTransport'" error in ULS log. And most of the service applications will not run properly</li>
<li>Create a special AD account that will be used as the SharePoint Managed Account in your farm. Refer to step 3 of the<a href="http://blogs.msdn.com/opal/archive/2009/11/16/installation-notice-for-sharepoint-2010-public-beta.aspx"> following post</a> for how to create this account.</li>
</ul><div>After you have applied the fixes and updates<br />
</div><ul><li>Run the pre-requisite tool for SharePoint foundation 2010</li>
<li>After installing the binaries, run the configuration wizard. Setup the farm using complete farm installation. Use standalone installation only on Windows 7/Vista for dev purposes.</li>
<li>Go to Central Administration and run the "Configuration Wizards" to setup the service applications. Use a special user for the SharePoint Managed Account for services and web applications in the farm</li>
<li>Enable Developer Dashboard and turn to OnDemand for troubleshooting page performance issues. It can be done by STSADM or SharePoint 2010 Management Shell (Windows PowerShell).<br />
STSADM: stsadm -o setproperty -pn developer-dashboard -pv OnDemand<br />
Windows PowerShell:<br />
$svc=[Microsoft.SharePoint.Administration.SPWebService]::ContentService<br />
$ddsetting=$svc.DeveloperDashboardSettings<br />
$ddsetting.DisplayLevel=[Microsoft.SharePoint.Administration.SPDeveloperDashboardLevel]::OnDemand<br />
$ddsetting.Update()</li>
</ul><div><br />
</div><div>After installing this, you will have SharePoint Foundation 2010/SharePoint Server 2010 installed.<br />
</div><div><br />
</div><div>External Links<br />
</div><div><ul><li><a href="http://msdn.microsoft.com/en-us/library/ee554869(office.14).aspx">http://msdn.microsoft.com/en-us/library/ee554869(office.14).aspx</a></li>
<li><a href="http://sharepointdevwiki.com/display/spadmin2010/SharePoint+2010+Beta+2+Install+screen+walk+thru">http://sharepointdevwiki.com/display/spadmin2010/SharePoint+2010+Beta+2+Install+screen+walk+thru</a></li>
<li><a href="http://blogs.msdn.com/opal/archive/2009/11/16/installation-notice-for-sharepoint-2010-public-beta.aspx">http://blogs.msdn.com/opal/archive/2009/11/16/installation-notice-for-sharepoint-2010-public-beta.aspx</a></li>
</ul></div><div><br />
</div></div></div></div>Neo Assyrianhttp://www.blogger.com/profile/09651619150704812079noreply@blogger.com0tag:blogger.com,1999:blog-7226772746316602282.post-80442100036277515462009-10-30T14:54:00.008+11:002009-11-20T14:57:31.001+11:00Taxonomy Services, Managed Metadata, and Managed keywordsSharePoint 2010 comes with a new services that provides the functionality to tag content types with metadata and keywords. I will be posting more information about how to manage taxonomies within SharePoint 2010 in upcoming posts, for now, i will explain some keywords that we will see a lot in SharePoint 2010.<br />
<div><br />
</div><div><b>Taxonomy</b> is a hierarchal tree of Values<br />
</div><div><b>Term Store</b> is a DB containing different taxonomies<br />
</div><div><b>Term Set</b> is a section in the term store that contains individual terms.<br />
</div><div><b>Term</b> is a node in the taxonomy tree with an ID and many text labels<br />
</div><div><b>Tagging</b> is the act of linking an item to a node or multiple nodes in the taxonomy tree.<br />
</div><div><b>Groups</b> are security boundaries within the term store and above the term set.<br />
</div><div><b>Keywords</b> are the actual links (reference) to a node in the taxonomy tree.<br />
</div><div><b>Managed Metadata Column</b> is a new column type that can be added to content types<br />
</div><div><b>Managed Keyword Column</b> is a new column type that can be added to any content type<br />
</div><div><br />
</div><div>At this point, i'm not sure what is the difference between the Managed keywords, and Managed Metadata. <br />
</div><div><br />
</div><div>These can be managed in SharePoint 2010 using the Term Management Tool. You will find this in Central Administration --> Manage Service Applications. The tool will allow administrators to publish, Terms, Term Sets, and importing them.<br />
</div><div><br />
</div><div>It is possible to tag documents within a desktop Rich Client such as MS Office Word.<br />
</div><div><br />
</div><div>---------------------------------------------<br />
</div><div><br />
</div><div><i>More Links</i><br />
</div><div><a href="http://manish-sharepoint.blogspot.com/2009/10/taxonomy-services-and-managed-metadata.html"><i>http://manish-sharepoint.blogspot.com/2009/10/taxonomy-services-and-managed-metadata.html</i></a><br />
</div><div><a href="http://sharepointsolutions.com/sharepoint-help/blog/index.php/2009/10/using-enterprise-content-types-and-managed-taxonomies-in-sharepoint-2010/"><i>http://sharepointsolutions.com/sharepoint-help/blog/index.php/2009/10/using-enterprise-content-types-and-managed-taxonomies-in-sharepoint-2010/</i></a><br />
</div>Neo Assyrianhttp://www.blogger.com/profile/09651619150704812079noreply@blogger.com0tag:blogger.com,1999:blog-7226772746316602282.post-5253410665564992122009-10-20T14:19:00.004+11:002009-11-18T14:25:16.828+11:00SharePoint 2010 UI ImprovementsSharePoint 2010 has a lot of improvements in the UI which impacts the usability of the WCM in SharePoint in a positive way.<br />
<div><br />
</div><div>Some of the enhancements are:<br />
</div><div><br />
</div><div><ul><li>Cleaner Markup: The Microsoft SharePoint Foundation (MSF) controls are no longer table based, and all the CSS classes were re-factored and cleaned up.</li>
<li>SharePoint 2010 is XHTML compliant, and also supports WCAG 2.0.</li>
<li>Reduced Postbacks / Page refreshes. </li>
<li>Server Ribbon, which copies the functionality of the ribbon in Office applications.</li>
</ul><div><br />
</div><div><i>Reference: </i><a href="http://www.andrewconnell.com/blog/archive/2009/10/19/part-1-improvements-to-the-core-sharepoint-platform.aspx"><i>http://www.andrewconnell.com/blog/archive/2009/10/19/part-1-improvements-to-the-core-sharepoint-platform.aspx</i></a><br />
</div></div>Neo Assyrianhttp://www.blogger.com/profile/09651619150704812079noreply@blogger.com0tag:blogger.com,1999:blog-7226772746316602282.post-12819767296899362252009-10-20T14:06:00.004+11:002009-11-20T14:57:31.003+11:00Metadata in SharePoint 2010SharePoint 2010 comes with a huge taxonomy API, put into the Microsoft.Taxonomy.dll assembly. <br />
<div>With SP 2010, it is possible to tag items and pages with keywords from a term store, which then can be leveraged through the search solutions, or navigation solutions. <br />
</div><div><br />
</div><div>This will provide SharePoint with another method to visualize the data, together with the folder structure (i.e. SPSites, SPWeb, SPList approach).<br />
</div><div><br />
</div><br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzTZUWSYFRfmONV2vZ5gz03Y1bDyvb6CMpovrhwvaVKLgYS_Q_MAJPlwy8_wijFMa7x11urnSr-2TZvuka-8TRubrvoIkTNBIAfTv3ZVXRDJAh1v3WTC_vSZcf3ogEM5ik322H9HfcwW9S/s1600-h/4025676831_a06f9af313_o.png" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"><img alt="" border="0" id="BLOGGER_PHOTO_ID_5394514736941998882" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzTZUWSYFRfmONV2vZ5gz03Y1bDyvb6CMpovrhwvaVKLgYS_Q_MAJPlwy8_wijFMa7x11urnSr-2TZvuka-8TRubrvoIkTNBIAfTv3ZVXRDJAh1v3WTC_vSZcf3ogEM5ik322H9HfcwW9S/s320/4025676831_a06f9af313_o.png" style="cursor: hand; cursor: pointer; display: block; height: 90px; margin: 0px auto 10px; text-align: center; width: 320px;" /></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtiGbCR4sgV2tqFoW9qz2axNLnXx_uAVUZbemrYDVLKJWKfcr1m7nBau2DcEu2wQmHRoy0US0JdK1h1vjHwpDlZjNH5vEMNILCpHxxXgMHp4TywwnVW9D70yXUUfmxBfaU5NqSSN5_0z5D/s1600-h/4026430362_bd719ed6ce_o.png" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"><img alt="" border="0" id="BLOGGER_PHOTO_ID_5394514595572243906" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtiGbCR4sgV2tqFoW9qz2axNLnXx_uAVUZbemrYDVLKJWKfcr1m7nBau2DcEu2wQmHRoy0US0JdK1h1vjHwpDlZjNH5vEMNILCpHxxXgMHp4TywwnVW9D70yXUUfmxBfaU5NqSSN5_0z5D/s320/4026430362_bd719ed6ce_o.png" style="cursor: hand; cursor: pointer; display: block; height: 169px; margin: 0px auto 10px; text-align: center; width: 320px;" /></a>Neo Assyrianhttp://www.blogger.com/profile/09651619150704812079noreply@blogger.com0tag:blogger.com,1999:blog-7226772746316602282.post-60163127095610712792009-10-20T13:27:00.003+11:002009-11-18T14:25:16.831+11:00SharePoint 2010 Developers Center<span style="border-collapse: collapse; color: #222222; font-family: arial, sans-serif; font-size: 13px;"></span><br />
<span style="border-collapse: collapse; color: #222222; font-family: arial, sans-serif; font-size: 13px;"></span><span style="border-collapse: collapse; color: #222222; font-family: arial, sans-serif; font-size: 13px;">The <a href="http://msdn.microsoft.com/en-us/sharepoint/ee514561.aspx">SharePoint 2010 Developer Center</a> is now live on MSDN. The site contains useful learning modules about SharePoint 2010. The site includes modules for getting started developing in SharePoint 2010. </span><br />
<div><span style="border-collapse: collapse; color: #222222; font-family: arial, sans-serif; font-size: 13px;"></span><br />
<span style="border-collapse: collapse; color: #222222; font-family: arial, sans-serif; font-size: 13px;"></span><br />
</div><div><span style="border-collapse: collapse; color: #222222; font-family: arial, sans-serif; font-size: 13px;"><br />
</span><br />
</div><div><span style="border-collapse: collapse; color: #222222; font-family: arial, sans-serif; font-size: 13px;"><br />
</span><br />
</div>Neo Assyrianhttp://www.blogger.com/profile/09651619150704812079noreply@blogger.com0tag:blogger.com,1999:blog-7226772746316602282.post-41822272420482485952009-10-20T13:11:00.003+11:002009-11-18T14:25:16.832+11:00Welcome to SharePoint 2010Beta version of SharePoint 2010 will be released in November as announced by Steve Ballmer and Jeff Teper today at the SharePoint 2009 Conference.<span style="color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 15px;"></span><br />
<div><br />
<br />
</div><div>The new version of SharePoint Office Server has a lot of new enhancements in regards to content management and collaboration. Some of the interesting new features are:<br />
</div><div><ul><li><span style="color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 15px;"><b><i>Social Feedback</i></b> <b><i>and Organization</i></b></span></li>
<li><span style="color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 15px;"><b><i><span style="font-style: normal; font-weight: normal;"><b><i>Enterprise Metadata</i></b></span></i></b></span></li>
<li><span style="color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 15px;"><b><i><span style="font-style: normal; font-weight: normal;"><b><i><span style="font-style: normal; font-weight: normal;"><b><i>Web Publishing</i></b> <b><i>including Digital Asset Management</i></b></span></i></b></span></i></b></span></li>
<li><span style="color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 15px;"><b><i><span style="font-style: normal; font-weight: normal;"><b><i><span style="font-style: normal; font-weight: normal;"><b><i><span style="font-style: normal; font-weight: normal;"><b><i>Governance and Records Management</i></b></span></i></b></span></i></b></span></i></b></span></li>
<li><span style="color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 15px;"><b><i><span style="font-style: normal; font-weight: normal;"><b><i><span style="font-style: normal; font-weight: normal;"><b><i><span style="font-style: normal; font-weight: normal;"><b><i><span style="font-style: normal; font-weight: normal;"><b><i>Development on Windows 7</i></b></span></i></b></span></i></b></span></i></b></span></i></b></span></li>
</ul><div><span style="color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 100%;"><span style="font-size: 12px; line-height: 15px;"><b><i>and many more</i></b></span></span><br />
</div><div><span style="color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 100%;"><span style="font-size: 12px; line-height: 15px;"><b><i><br />
</i></b></span></span><br />
</div><div>For more details about SharePoint 2010, visit the SharePoint Team blog<br />
</div><div><a href="http://blogs.msdn.com/sharepoint/archive/2009/10/19/sharepoint-2010.aspx">http://blogs.msdn.com/sharepoint/archive/2009/10/19/sharepoint-2010.aspx</a><br />
</div></div>Neo Assyrianhttp://www.blogger.com/profile/09651619150704812079noreply@blogger.com0tag:blogger.com,1999:blog-7226772746316602282.post-29659631280913306762009-07-13T22:05:00.003+10:002009-11-18T15:30:59.927+11:00Updating SPGroup ownerHi<br />
<div><br />
</div><div>To update the owner of the group, you simply set the Owner property of the SPGroup object to a SPMember (which can be a SPUser or an SPGroup).<br />
</div><div><br />
</div><div></div><blockquote><div>SPGroup spGroup = currentWeb.SiteGroups["GroupName"];<br />
</div><div>spGroup1.Owner = spGroup2;<br />
</div><div>sp.Group1.Update();<br />
</div></blockquote><div></div><div><br />
</div><div>I was trying to update the owner of the SharePoint group through the API using the code above, but unfortunately that did not work.<br />
</div><div><br />
</div><div>So i did what most of the developers do, google it (i mean bing it). However i didn't find an answer to my question, so i tried to change my code and debug it until i found the solution.<br />
</div><div><br />
</div><div>For some reason, i had to get the reference to the SharePoint group from the root web of the site collection, rather than getting it from the web SiteGroups property.<br />
</div><div><br />
</div><div>so to fix the problem, i changed the above code to:<br />
</div><div><div></div><blockquote><div>SPGroup spGroup = currentWeb.Site.RootWeb.SiteGroups["GroupName"];<br />
</div><div>spGroup1.Owner = spGroup2;<br />
</div><div>sp.Group1.Update();<br />
</div></blockquote><div></div></div><div><br />
</div><div>I hope you will find this useful.<br />
</div><div><br />
</div><div><br />
</div><div><br />
</div><div><br />
</div>Neo Assyrianhttp://www.blogger.com/profile/09651619150704812079noreply@blogger.com0tag:blogger.com,1999:blog-7226772746316602282.post-1133299942018574022009-07-07T08:53:00.002+10:002009-07-07T08:56:14.726+10:00University of Auckland - Virtual Medical Centre<span class="Apple-style-span" style=" ;font-family:Arial;font-size:12px;"></span><span><span>Machinima Podcast by the ARCH Network: http://www.archvirtual.com<br /><br />Second Life Tour led project :<br />Scott Diener, Ph.D.<br />Associate Director, IT Services<br />Academic and Collaborative Technologies<br />The University of Auckland</span></span><div><span><span></span></span><br /><div><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/au7_a9VLFb4&hl=en&fs=1&"><param name="allowFullScreen" value="true"><param name="allowscriptaccess" value="always"><embed src="http://www.youtube.com/v/au7_a9VLFb4&hl=en&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object><br /></div></div>Neo Assyrianhttp://www.blogger.com/profile/09651619150704812079noreply@blogger.com0tag:blogger.com,1999:blog-7226772746316602282.post-88950212750061641062009-07-07T08:49:00.005+10:002009-11-18T15:30:59.929+11:00Anonymous access in SharePoint<h2><span style="font-size: 16px; font-weight: normal;"></span></h2>Anonymous access in SharePoint can be configured on the lists level. This means that anonymous access can be setup to individual lists rather than an entire SharePoint site. It can be also turned on for an entire web site. <br />
<div><br />
</div><div>The anonymous access is enabled from the web application level first. ISA server (if available) will be also configured. <br />
</div><div><br />
</div><div>After a web application has been setup for anonymous access, individual web sites can be configured to enable anonymous access on them. By default, sites have their anonymous access turned off, and must be enabled by a site admin before non-authenticated users can access it. As mentioned earlier, this can also be set on individual lists and will be accessible by a direct link to the list.<br />
</div><div><br />
</div><div><b>MySite and Application pages </b><br />
</div><div>Unfortunately, with MOSS 2007, MySites cannot be accessible by anonymous users, and that’s because of the way that has been setup. To make them accessible to the outside users, some workarounds are needed. However, sub sites within MySite can be made accessible to outside users, but not the root MySite. <br />
</div><div><br />
</div><div>The Application pages (pages in the _Layouts folder) are also not accessible to the outside users. This includes the search default page. It is possible to solve these problems with some workarounds that involves custom developments.<br />
<div class="MsoNormal"><br />
</div></div>Neo Assyrianhttp://www.blogger.com/profile/09651619150704812079noreply@blogger.com0tag:blogger.com,1999:blog-7226772746316602282.post-6968601877820249952009-05-20T12:58:00.006+10:002009-11-18T15:30:59.930+11:00Getting a SoapServerException after installing MOSS 2007 Service Pack 2It appears that Service Pack 2 for MOSS 2007 has made some changes to the SharePoint Web Services in the way that it handles errors.<br /><br />Today we noticed that the following error was being thrown from one of the List <blockquote>ServicesException of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.</blockquote>Before the Service pack was installed the exception was encapsulated within the XML returned by the method. After installing Service Pack 2 the method throws the exception and it must be caught by a try and catch statement.<br /><br />This is how we used to handle the error<br /><br /><blockquote>Service.Lists listsProxy = new Service.Lists(); <br />listsProxy.Credentials = new NetworkCredential(sUser, sPassword, sDomain); <br />XmlNode ndReturn = listsProxy.UpdateListItems("ListName", xmlQuery); <br />if (ndReturn.InnerText.Contains("0x81020089")) { <br /> return false; <br />} <br />return true</blockquote><br />after applying the Service Pack, the code needed to be changed to<br /><br /> Service.Lists listsProxy = new Service.Lists(); <br />listsProxy.Credentials = new NetworkCredential(sUser, sPassword, sDomain); <br />try { <br /> XmlNode ndReturn = listsProxy.UpdateListItems("ListName", xmlQuery); <br />catch(Exception ex){<br /> // do something <br />}<br /> return true<br /><br />Hope this helpsNeo Assyrianhttp://www.blogger.com/profile/09651619150704812079noreply@blogger.com0tag:blogger.com,1999:blog-7226772746316602282.post-52390546637393340612009-05-13T14:08:00.003+10:002009-05-13T14:12:03.500+10:00Geneva now supports SharePoint 2007Geneva Team released beta 2 of the server and the framework. In the list of new features is supporting SharePoint 2007. This means that SharePoint 2007 could potentially connect to a STS server and be a Claim Based application.<div><br /></div><div><a href="http://blogs.msdn.com/card/archive/2009/05/12/what-s-new-in-geneva-beta-2.aspx">http://blogs.msdn.com/card/archive/2009/05/12/what-s-new-in-geneva-beta-2.aspx</a><br /><div><br /></div><div>SP2 for MOSS was released a while ago, and in the enhancements was a better integration between client applications and FBA for SharePoint.</div><div><br /></div><div><br /></div></div>Neo Assyrianhttp://www.blogger.com/profile/09651619150704812079noreply@blogger.com0tag:blogger.com,1999:blog-7226772746316602282.post-40867006868271053852009-04-27T14:34:00.007+10:002009-11-18T14:22:26.048+11:00SSRS Web Services in SharePoint Integrated Mode ExampleHi all<br />
<div><br />
</div><div>We have been lately trying to get Reporting Services working with our SharePoint and so far it is playing nicely. <br />
</div><div>I have managed to get together a piece of code that will load a report template that is stored in SharePoint site and render the report in a browser. Well, I found the code in the description of the "Render" method in MSDN Documentations.<br />
</div><div><br />
</div><div>Here is a list of links that might be useful to read:<br />
</div><div><ul><li><a href="http://msdn.microsoft.com/en-us/library/ms152787.aspx">Report Server Web Service</a></li>
<li><a href="http://technet.microsoft.com/en-us/library/bb326209.aspx">Using the SOAP API in a SharePoint Application</a></li>
<li><br />
<div class="title"><a href="http://technet.microsoft.com/en-us/library/reportexecution2005.reportexecutionservice.render.aspx">ReportExecutionService.Render Method</a><br />
</div><br />
</li>
</ul><div>The below code is<br />
</div><div>You will have to add web references to the ReportExecution2005.<br />
</div><div><br />
</div></div><div><div></div><blockquote><div>using System;<br />
</div><div>using System.Collections.Generic;<br />
</div><div>using System.Linq;<br />
</div><div>using System.Web;<br />
</div><div>using System.Web.UI;<br />
</div><div>using System.Web.UI.WebControls;<br />
</div><div>using ReportingServiceWebServicesTest.CecilAdmin08ReportExecution2005;<br />
</div><div><br />
</div><div>namespace ReportingServiceWebServicesTest<br />
</div><div>{<br />
</div><div>public partial class _Default : System.Web.UI.Page<br />
</div><div>{<br />
</div><div>protected void Page_Load(object sender, EventArgs e)<br />
</div><div>{<br />
</div><div>ReportExecutionService rs = new ReportExecutionService();<br />
</div><div>rs.Credentials = System.Net.CredentialCache.DefaultCredentials;<br />
</div><div><br />
</div><div>// Render arguments<br />
</div><div>byte[] result = null;<br />
</div><div>string reportPath = "/reportingservices/Reports/Report1.rdl";<br />
</div><div>string format = "HTML4.0";<br />
</div><div>string historyID = null;<br />
</div><div>ParameterValue[] parameters = new ParameterValue[2];<br />
</div><div><br />
</div><div>string encoding;<br />
</div><div>string mimeType;<br />
</div><div>string extension;<br />
</div><div>Warning[] warnings = null;<br />
</div><div>string[] streamIDs = null;<br />
</div><div><br />
</div><div>ExecutionInfo execInfo = new ExecutionInfo();<br />
</div><div>ExecutionHeader execHeader = new ExecutionHeader();<br />
</div><div><br />
</div><div>rs.ExecutionHeaderValue = execHeader;<br />
</div><div><br />
</div><div>execInfo = rs.LoadReport(reportPath, historyID);<br />
</div><div><br />
</div><div>parameters[0] = new ParameterValue();<br />
</div><div>parameters[0].Name = "param1";<br />
</div><div>parameters[0].Value = "2";<br />
</div><div><br />
</div><div>parameters[1] = new ParameterValue();<br />
</div><div>parameters[1].Name = "param2";<br />
</div><div>parameters[1].Value = "5";<br />
</div><div><br />
</div><div><br />
</div><div>rs.SetExecutionParameters(parameters, "en-us");<br />
</div><div>String SessionId = rs.ExecutionHeaderValue.ExecutionID;<br />
</div><div><br />
</div><div>result = rs.Render(format, null, out extension, out encoding, out mimeType, out warnings, out streamIDs);<br />
</div><div><br />
</div><div>Response.ClearContent();<br />
</div><div>Response.AppendHeader("content-length", result.Length.ToString());<br />
</div><div>//Response.ContentType = "application/pdf";<br />
</div><div>Response.BinaryWrite(result);<br />
</div><div>Response.Flush();<br />
</div><div>Response.Close();<br />
</div><div>}<br />
</div><div>}<br />
</div><div>}<br />
</div></blockquote><div></div></div>Neo Assyrianhttp://www.blogger.com/profile/09651619150704812079noreply@blogger.com0