<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1751470255926145608</id><updated>2012-02-16T16:55:47.009-08:00</updated><category term='SHAREPOINT'/><category term='BEST PRACTICES'/><category term='ARCHITECTURE'/><category term='ERRORS'/><category term='ICON'/><category term='FEATURE'/><category term='Outlook'/><category term='UNEXPECTED ERROR'/><category term='VISUAL STUDIO'/><category term='Content Types'/><category term='PERMISSIONS'/><category term='DLL'/><category term='AJAX'/><category term='URL'/><category term='WORKFLOW'/><category term='Groups'/><category term='Template List ID'/><category term='SPQUERY'/><category term='SUFFIX'/><category term='OBJECT MODEL'/><category term='SPROLEDEFINITION'/><category term='WEB.CONFIG'/><category term='ELEMENTS'/><category term='FIELDS'/><category term='Active Directory'/><category term='GAC'/><category term='WEBSERVICES'/><category term='DOCUMENT LIBRARY'/><category term='MOSS'/><category term='ITEMS'/><category term='LISTS'/><category term='SPROLEASSIGNMENT'/><category term='MODULE'/><title type='text'>In Moss We Trust - Sharepoint Blog</title><subtitle type='html'>This blog is dedicated to Microsoft Sharepoint and .NET Technologies.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://mosswat.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://mosswat.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>In Moss We Trust</name><uri>http://www.blogger.com/profile/15308310922423409273</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>27</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1751470255926145608.post-2753516395018364530</id><published>2009-08-01T12:29:00.000-07:00</published><updated>2009-08-01T12:56:34.944-07:00</updated><title type='text'>Operation is not valid due to the current state of the object</title><content type='html'>I writed a post about this error (&lt;a href="http://mosswat.blogspot.com/2009/02/operation-is-not-valid-due-to-current.html"&gt;http://mosswat.blogspot.com/2009/02/operation-is-not-valid-due-to-current.html&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;There is another cause to this error:  using the "update" method in the "RunWithElevatePrivilege" scope,  like this:&lt;br /&gt;&lt;br /&gt;SPSecurity.RunWithElevatedPrivileges(delegate{ &lt;br /&gt;using (SPSite site = new SPSite("&lt;a href="http://mysiteurl/"&gt;http://mySiteUrl&lt;/a&gt;"))&lt;br /&gt;{&lt;br /&gt;   using (SPWeb web = site.OpenWeb())                &lt;br /&gt;   {                       &lt;br /&gt;      SPListItem listItem = web.GetListItem("&lt;a href="http://myitemurl/"&gt;http://myItemUrl&lt;/a&gt;");&lt;br /&gt;      //do item modifications....                    &lt;br /&gt;       &lt;span style="color:#cc0000;"&gt;listItem.Update();&lt;/span&gt;&lt;br /&gt;    }&lt;br /&gt;}     &lt;br /&gt;&lt;br /&gt;});&lt;br /&gt;&lt;br /&gt;To resolve this issue, call the "update" method out of the "RunWithElevatedPrivileges" scope, like this;&lt;br /&gt;&lt;br /&gt;SPSite site = null;&lt;br /&gt;SPWeb web = null;&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt;  SPSecurity.RunWithElevatedPrivileges(delegate{&lt;br /&gt;  site = new SPSite("&lt;a href="http://mysiteurl/"&gt;http://mySiteUrl&lt;/a&gt;");&lt;br /&gt;  web = site.OpenWeb();&lt;br /&gt;  });&lt;br /&gt;SPListItem listItem = web.GetListItem("&lt;a href="http://myitemurl/"&gt;http://myItemUrl&lt;/a&gt;");&lt;br /&gt; //do item modifications.... &lt;br /&gt;&lt;span style="color:#cc0000;"&gt;listItem.Update(); &lt;/span&gt;&lt;br /&gt; }&lt;br /&gt;finally&lt;br /&gt;{ &lt;br /&gt;   if (site != null)&lt;br /&gt;       site.Dispose(); &lt;br /&gt;   if (web != null) &lt;br /&gt;       web.Dispose();&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1751470255926145608-2753516395018364530?l=mosswat.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mosswat.blogspot.com/feeds/2753516395018364530/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mosswat.blogspot.com/2009/08/operation-is-not-valid-due-to-current.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/2753516395018364530'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/2753516395018364530'/><link rel='alternate' type='text/html' href='http://mosswat.blogspot.com/2009/08/operation-is-not-valid-due-to-current.html' title='Operation is not valid due to the current state of the object'/><author><name>Michael Assouline</name><uri>http://www.blogger.com/profile/16748056476257373477</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_D1AoXDUOazY/SYc4F_0g6hI/AAAAAAAAAAM/L0FaQYgUKl4/S220/michael.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1751470255926145608.post-6806072760872831149</id><published>2009-07-22T13:48:00.000-07:00</published><updated>2009-07-23T07:12:08.218-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Groups'/><category scheme='http://www.blogger.com/atom/ns#' term='Outlook'/><category scheme='http://www.blogger.com/atom/ns#' term='Active Directory'/><title type='text'>Active Directory: How to get all related groups by user</title><content type='html'>Hi&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I know this is not a Moss post and i know that in Moss we trust, but it is a nice code to have.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Recently i needed to get all related AD groups per user, so if a user A is in group B and group B is in group C, i will get a collection like so { B,C } for A.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;To do so i used the following code:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#999999;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#999999;"&gt;/// ldapPath -  Ldap://...&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#999999;"&gt;/// distinguishedName -  The user location (CN=AAA, OU=BBB,OU=CCC,DC=DDD )&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#999999;"&gt;///resultField - The property field value (DisplyName, Mail)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;public static void&lt;/span&gt; GetAllRelatedGroupsByEntry(&lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;string &lt;/span&gt;ldapPath, &lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;string &lt;/span&gt;distinguishedName,&lt;/div&gt;&lt;div&gt;               &lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;ref &lt;/span&gt;List&lt;&lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;string&lt;/span&gt;&gt; groups, &lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;string &lt;/span&gt;resultField)&lt;/div&gt;&lt;div&gt;        {&lt;/div&gt;&lt;div&gt;            &lt;span class="Apple-style-span"  style="color:#00CCCC;"&gt;SearchResultCollection &lt;/span&gt;results = &lt;span class="Apple-style-span"  style="color:#3366FF;"&gt;null&lt;/span&gt;;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;            &lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;using &lt;/span&gt;(&lt;span class="Apple-style-span"  style="color:#00CCCC;"&gt;DirectoryEntry &lt;/span&gt;entry = &lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;new &lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#33CCFF;"&gt;DirectoryEntry&lt;/span&gt;(ldapPath))&lt;/div&gt;&lt;div&gt;            {&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;                using (&lt;span class="Apple-style-span"  style="color:#33CCFF;"&gt;DirectorySearcher &lt;/span&gt;search = &lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;new &lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#33CCFF;"&gt;DirectorySearcher&lt;/span&gt;(entry))&lt;/div&gt;&lt;div&gt;                {&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;                    search.Filter = &lt;span class="Apple-style-span"  style="color:#CC0000;"&gt;"(&amp;amp;(objectClass=Group)(objectCategory=Group)(member="&lt;/span&gt; + distinguishedName + &lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;"))"&lt;/span&gt;;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;                    results = search.FindAll();&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;                    &lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;if &lt;/span&gt;(results != &lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;null&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;                    {&lt;/div&gt;&lt;div&gt;                        &lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;foreach &lt;/span&gt;(&lt;span class="Apple-style-span"  style="color:#00CCCC;"&gt;SearchResult &lt;/span&gt;result in results)&lt;/div&gt;&lt;div&gt;                        {&lt;/div&gt;&lt;div&gt;                            &lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;for &lt;/span&gt;(&lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;int &lt;/span&gt;i = 0; i &lt;&gt;&lt;div&gt;                            {&lt;/div&gt;&lt;div&gt;                                groups.Add(result.Properties[resultField][i].ToString());&lt;/div&gt;&lt;div&gt;                                GetAllRelatedGroupsByEntry(ldapPath,&lt;/div&gt;&lt;div&gt;                                   result.Properties[&lt;span class="Apple-style-span"  style="color:#CC0000;"&gt;"DistinguishedName"&lt;/span&gt;][i].ToString(),&lt;/div&gt;&lt;div&gt;                                    &lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;ref &lt;/span&gt;groups, resultField);&lt;/div&gt;&lt;div&gt;                            }&lt;/div&gt;&lt;div&gt;                        }&lt;/div&gt;&lt;div&gt;                    }&lt;/div&gt;&lt;div&gt;                }&lt;/div&gt;&lt;div&gt;            }&lt;/div&gt;&lt;div&gt;        }&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1751470255926145608-6806072760872831149?l=mosswat.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mosswat.blogspot.com/feeds/6806072760872831149/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mosswat.blogspot.com/2009/07/active-directory-how-to-get-all-related.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/6806072760872831149'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/6806072760872831149'/><link rel='alternate' type='text/html' href='http://mosswat.blogspot.com/2009/07/active-directory-how-to-get-all-related.html' title='Active Directory: How to get all related groups by user'/><author><name>Elad Gutman</name><uri>http://www.blogger.com/profile/07870649278230960051</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_No0Z3O8DLWw/SbN_LGGpSNI/AAAAAAAAAAM/jLcqqCc0wlw/S220/%D7%AA%D7%9E%D7%95%D7%A0%D7%94+132.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1751470255926145608.post-5051935277448604341</id><published>2009-07-12T06:36:00.000-07:00</published><updated>2009-07-12T06:57:25.815-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VISUAL STUDIO'/><category scheme='http://www.blogger.com/atom/ns#' term='WORKFLOW'/><category scheme='http://www.blogger.com/atom/ns#' term='SHAREPOINT'/><title type='text'>How to add Sharepoint Workflow Activities to Toolbox</title><content type='html'>&lt;span class="Apple-style-span" style="font-size: medium;"&gt;Hi&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;There are more workflow activities that you can use beside the one that are already in, for example &lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;"Create Task".&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;To add them to the toolbox you need to open visual studio and on the Toolbox section:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Calibri; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;1.&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt; &lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:Calibri;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;Create new tab by right click and select "Add Tab".&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:Calibri;"&gt;&lt;span class="Apple-style-span"  style="font-family:Georgia;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_No0Z3O8DLWw/SlnpdYPNZ3I/AAAAAAAAACw/Anr-7HJzM1M/s1600-h/1.PNG"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;img src="http://2.bp.blogspot.com/_No0Z3O8DLWw/SlnpdYPNZ3I/AAAAAAAAACw/Anr-7HJzM1M/s200/1.PNG" border="0" alt="" id="BLOGGER_PHOTO_ID_5357569922665637746" style="cursor: pointer; width: 92px; height: 200px; " /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:Calibri;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:Calibri;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;2. Under the new tab press right click and select "Choose Items…" (It will take a while to open).&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:Calibri;"&gt;&lt;span class="Apple-style-span"  style="font-family:Georgia;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_No0Z3O8DLWw/SlnpmCqZqFI/AAAAAAAAAC4/DS9J6pfXe3w/s1600-h/2.PNG"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;img src="http://1.bp.blogspot.com/_No0Z3O8DLWw/SlnpmCqZqFI/AAAAAAAAAC4/DS9J6pfXe3w/s200/2.PNG" border="0" alt="" id="BLOGGER_PHOTO_ID_5357570071492929618" style="cursor: pointer; width: 155px; height: 200px; " /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family:&amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ascii-theme-font:minor-latin;mso-fareast-font-family:Calibri;mso-fareast-theme-font: minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi- mso-bidi-theme-font:minor-bidi;mso-ansi-language:EN-US;mso-fareast-language: EN-US;mso-bidi-language:HEfont-family:Arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt; &lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;3. &lt;/span&gt;&lt;span style="font-family:&amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ascii-theme-font:minor-latin;mso-fareast-font-family:Calibri;mso-fareast-theme-font: minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi- mso-bidi-theme-font:minor-bidi;mso-ansi-language:EN-US;mso-fareast-language: EN-US;mso-bidi-language:HEfont-family:Arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;Then select &lt;i&gt;&lt;b&gt;microsoft.sharepoint.WorkflowActions.dll&lt;/b&gt;&lt;/i&gt;, it is usually under &lt;i&gt;C:\Program Files\Common &lt;/i&gt;&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;i&gt; &lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;i&gt;Files\Microsoft Shared\web server extensions\12\ISAPI&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span style="font-family:&amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ascii-theme-font:minor-latin;mso-fareast-font-family:Calibri;mso-fareast-theme-font: minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi- mso-bidi-theme-font:minor-bidi;mso-ansi-language:EN-US;mso-fareast-language: EN-US;mso-bidi-language:HEfont-family:Arial;"&gt;&lt;span style="font-family:&amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ascii-theme-font:minor-latin;mso-fareast-font-family:Calibri;mso-fareast-theme-font: minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi- mso-bidi-theme-font:minor-bidi;mso-ansi-language:EN-US;mso-fareast-language: EN-US;mso-bidi-language:HEfont-family:Arial;"&gt;&lt;span class="Apple-style-span" style="font-family: Georgia; "&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_No0Z3O8DLWw/SlnqNo9_bdI/AAAAAAAAADQ/Dkq6PEnq47Y/s1600-h/3.PNG"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;img src="http://1.bp.blogspot.com/_No0Z3O8DLWw/SlnqNo9_bdI/AAAAAAAAADQ/Dkq6PEnq47Y/s200/3.PNG" border="0" alt="" id="BLOGGER_PHOTO_ID_5357570751790542290" style="cursor: pointer; width: 200px; height: 110px; " /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:&amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ascii-theme-font:minor-latin;mso-fareast-font-family:Calibri;mso-fareast-theme-font: minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi- mso-bidi-theme-font:minor-bidi;mso-ansi-language:EN-US;mso-fareast-language: EN-US;mso-bidi-language:HEfont-family:Arial;"&gt;&lt;span style="font-family:&amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ascii-theme-font:minor-latin;mso-fareast-font-family:Calibri;mso-fareast-theme-font: minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi- mso-bidi-theme-font:minor-bidi;mso-ansi-language:EN-US;mso-fareast-language: EN-US;mso-bidi-language:HEfont-family:Arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_No0Z3O8DLWw/SlnqNo9_bdI/AAAAAAAAADQ/Dkq6PEnq47Y/s1600-h/3.PNG"&gt;&lt;/a&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:Georgia;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span style="font-family:&amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ascii-theme-font:minor-latin;mso-fareast-font-family:Calibri;mso-fareast-theme-font: minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi- mso-bidi-theme-font:minor-bidi;mso-ansi-language:EN-US;mso-fareast-language: EN-US;mso-bidi-language:HEfont-family:Arial;"&gt;&lt;span style="font-family:&amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ascii-theme-font:minor-latin;mso-fareast-font-family:Calibri;mso-fareast-theme-font: minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi- mso-bidi-theme-font:minor-bidi;mso-ansi-language:EN-US;mso-fareast-language: EN-US;mso-bidi-language:HEfont-family:Arial;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;4. P&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;ress &lt;i&gt;OK&lt;/i&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:Calibri;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:&amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ascii-theme-font:minor-latin;mso-fareast-font-family:Calibri;mso-fareast-theme-font: minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi- mso-bidi-theme-font:minor-bidi;mso-ansi-language:EN-US;mso-fareast-language: EN-US;mso-bidi-language:HEfont-family:Arial;"&gt;&lt;span style="font-family:&amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ascii-theme-font:minor-latin;mso-fareast-font-family:Calibri;mso-fareast-theme-font: minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi- mso-bidi-theme-font:minor-bidi;mso-ansi-language:EN-US;mso-fareast-language: EN-US;mso-bidi-language:HEfont-family:Arial;"&gt;&lt;span style="font-family:Calibri;"&gt;&lt;span&gt;&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;&lt;span class="Apple-style-span"  style="font-family:Calibri;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;5. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;Now you will have the following activities:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:Calibri;"&gt;&lt;span class="Apple-style-span"  style="font-family:Georgia;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_No0Z3O8DLWw/SlnqF4WeqQI/AAAAAAAAADI/HtHbKGUAkG8/s1600-h/5.PNG"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;img src="http://1.bp.blogspot.com/_No0Z3O8DLWw/SlnqF4WeqQI/AAAAAAAAADI/HtHbKGUAkG8/s200/5.PNG" border="0" alt="" id="BLOGGER_PHOTO_ID_5357570618480830722" style="cursor: pointer; width: 122px; height: 200px; " /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1751470255926145608-5051935277448604341?l=mosswat.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mosswat.blogspot.com/feeds/5051935277448604341/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mosswat.blogspot.com/2009/07/how-to-add-sharepoint-workflow.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/5051935277448604341'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/5051935277448604341'/><link rel='alternate' type='text/html' href='http://mosswat.blogspot.com/2009/07/how-to-add-sharepoint-workflow.html' title='How to add Sharepoint Workflow Activities to Toolbox'/><author><name>Elad Gutman</name><uri>http://www.blogger.com/profile/07870649278230960051</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_No0Z3O8DLWw/SbN_LGGpSNI/AAAAAAAAAAM/jLcqqCc0wlw/S220/%D7%AA%D7%9E%D7%95%D7%A0%D7%94+132.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_No0Z3O8DLWw/SlnpdYPNZ3I/AAAAAAAAACw/Anr-7HJzM1M/s72-c/1.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1751470255926145608.post-4053501001276504452</id><published>2009-07-06T02:47:00.000-07:00</published><updated>2009-07-06T06:51:27.677-07:00</updated><title type='text'>SPWeb.RoleDefinitions.GetByType(SPRoleType.None)</title><content type='html'>&lt;span class="Apple-style-span" style="font-size: small;"&gt;Hi all&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Recently i tried to copy permission from one item to another (see &lt;/span&gt;&lt;span class="Apple-style-span" style="letter-spacing: -1px; "&gt;&lt;a href="http://mosswat.blogspot.com/2009/02/how-to-copy-permissions-between-site.html"&gt;&lt;span class="Apple-style-span"  style="color:#3333FF;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;How To Copy Permissions Between Site Collections&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;) ,  and had a problem with role definition types that were &lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;None&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;.&lt;br /&gt;The problem occured when i tried to copy &lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Restricted Read&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; role agginment&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#000099;"&gt;&lt;span class="Apple-style-span" style="letter-spacing: normal; -webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-weight: bold; letter-spacing: -1px; "&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;span class="Apple-style-span" style="letter-spacing: normal; color: rgb(0, 0, 153); -webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; letter-spacing: -1px; "&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="letter-spacing: -1px;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="letter-spacing: -1px;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;So to solve it I used this code:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="letter-spacing: -1px;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="letter-spacing: -1px;"&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;if (roleDefinition.Type != SPRoleType.None)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;definition = web.RoleDefinitions.GetByType(roleDefinition.Type);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;roleAssignment.RoleDefinitionBindings.Add(definition);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;else&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;  &lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;definition = web.RoleDefinitions.GetById(roleDefinition.Id);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;roleAssignment.RoleDefinitionBindings.Add(definition);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Instead of geting the code by role definition &lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;type &lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;i got it by it's &lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Id&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;.&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1751470255926145608-4053501001276504452?l=mosswat.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mosswat.blogspot.com/feeds/4053501001276504452/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mosswat.blogspot.com/2009/07/spwebroledefinitionsgetbytypesproletype.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/4053501001276504452'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/4053501001276504452'/><link rel='alternate' type='text/html' href='http://mosswat.blogspot.com/2009/07/spwebroledefinitionsgetbytypesproletype.html' title='SPWeb.RoleDefinitions.GetByType(SPRoleType.None)'/><author><name>Elad Gutman</name><uri>http://www.blogger.com/profile/07870649278230960051</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_No0Z3O8DLWw/SbN_LGGpSNI/AAAAAAAAAAM/jLcqqCc0wlw/S220/%D7%AA%D7%9E%D7%95%D7%A0%D7%94+132.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1751470255926145608.post-6091221629190220499</id><published>2009-05-06T23:58:00.000-07:00</published><updated>2009-05-06T02:14:22.811-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MODULE'/><category scheme='http://www.blogger.com/atom/ns#' term='FEATURE'/><category scheme='http://www.blogger.com/atom/ns#' term='ELEMENTS'/><category scheme='http://www.blogger.com/atom/ns#' term='URL'/><title type='text'>How  to create your own local path</title><content type='html'>Hi&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;lots&lt;/span&gt; of MOSS development we are using custom &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;aspx&lt;/span&gt;&lt;/span&gt;/html or just office templates and we need to save them in the local server file system. We can use the layouts folder (/_layouts/...) or create our own path.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;To do so create a feature.&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;xml&lt;/span&gt;&lt;/span&gt; and element.&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;xml&lt;/span&gt;&lt;/span&gt;, in the element file add the Module tab, in the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;SetupPath&lt;/span&gt;&lt;/span&gt; &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_6"&gt;attribute&lt;/span&gt; write the file system folder path (like &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_7"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;FEATRUES&lt;/span&gt;&lt;/span&gt;\&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_8"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;mosswat&lt;/span&gt;&lt;/span&gt;), and in the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_9"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_6"&gt;Url&lt;/span&gt;&lt;/span&gt; &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_10"&gt;attribute&lt;/span&gt; write the new &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_11"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_7"&gt;url&lt;/span&gt;&lt;/span&gt; (like _&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_12"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_8"&gt;mosswat&lt;/span&gt;&lt;/span&gt;/templates).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 238); "&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 0); "&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_No0Z3O8DLWw/SdHMo_m-m7I/AAAAAAAAACQ/fYLmhK4EBXk/s1600-h/module.PNG" style=""&gt;&lt;span class="Apple-style-span" style="text-decoration: none;"&gt;&lt;img src="http://1.bp.blogspot.com/_No0Z3O8DLWw/SdHMo_m-m7I/AAAAAAAAACQ/fYLmhK4EBXk/s400/module.PNG" border="0" alt="" id="BLOGGER_PHOTO_ID_5319257639543020466" style="cursor: pointer; width: 400px; height: 67px; " /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Run the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_13"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_9"&gt;stsadm&lt;/span&gt;&lt;/span&gt; &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_14"&gt;segment.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now enter in the explorer the following: &lt;span class="Apple-style-span" style="color: rgb(51, 51, 255);"&gt;http://WebApp/sites/SiteCollection/_mosswat/templates/filename.docx&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="text-decoration: underline;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1751470255926145608-6091221629190220499?l=mosswat.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mosswat.blogspot.com/feeds/6091221629190220499/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mosswat.blogspot.com/2009/03/how-to-create-your-own-local-path.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/6091221629190220499'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/6091221629190220499'/><link rel='alternate' type='text/html' href='http://mosswat.blogspot.com/2009/03/how-to-create-your-own-local-path.html' title='How  to create your own local path'/><author><name>Elad Gutman</name><uri>http://www.blogger.com/profile/07870649278230960051</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_No0Z3O8DLWw/SbN_LGGpSNI/AAAAAAAAAAM/jLcqqCc0wlw/S220/%D7%AA%D7%9E%D7%95%D7%A0%D7%94+132.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_No0Z3O8DLWw/SdHMo_m-m7I/AAAAAAAAACQ/fYLmhK4EBXk/s72-c/module.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1751470255926145608.post-8030324097144206994</id><published>2009-05-05T12:00:00.000-07:00</published><updated>2009-05-06T02:19:10.692-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='AJAX'/><category scheme='http://www.blogger.com/atom/ns#' term='WEB.CONFIG'/><category scheme='http://www.blogger.com/atom/ns#' term='MOSS'/><title type='text'>MOSS &amp; AJAX (Framework 3.5)</title><content type='html'>Hi,&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;More and more sites are using AJAX and it is not only "nice to have" feature but a mandatory one.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;We can also use AJAX in MOSS and there is a lot of example how to on the Internet, but before we start we have to add some elements in &lt;a href="http://www.telerik.com/help/aspnet-ajax/moss-install-aspnet-ajax-35.html"&gt;MOSS web.config&lt;/a&gt;.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;A few posts ago Michael wrote on how to &lt;a href="http://mosswat.blogspot.com/2009/03/update-moss-webconfig-v2.html"&gt;update web config&lt;/a&gt;, so i added the XML file in &lt;a href="http://www.savefile.com/projects/808763417"&gt;here&lt;/a&gt; so u can copy it to &lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 102, 0);"&gt;C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\config&lt;/span&gt;&lt;/span&gt; and run the &lt;span class="Apple-style-span" style="font-style: italic;"&gt;s&lt;span class="Apple-style-span" style=""&gt;tsadm commend&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(204, 0, 0);"&gt;&lt;span class="Apple-style-span" style=""&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Warnings&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;Before u run it backup your web.config and your DB and do not delete the element by your self only with the remove file.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-style: italic; "&gt;Don't copy the remove and the add together to the Config directory only the one you want to run.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-style: italic; "&gt;Very important don't change the guid before you are doing remove!!!&lt;/span&gt;&lt;span class="Apple-style-span" style="color: rgb(204, 0, 0); font-style: italic;"&gt; &lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(204, 0, 0); font-style: italic;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1751470255926145608-8030324097144206994?l=mosswat.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mosswat.blogspot.com/feeds/8030324097144206994/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mosswat.blogspot.com/2009/05/moss-ajax-framework-35.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/8030324097144206994'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/8030324097144206994'/><link rel='alternate' type='text/html' href='http://mosswat.blogspot.com/2009/05/moss-ajax-framework-35.html' title='MOSS &amp; AJAX (Framework 3.5)'/><author><name>Elad Gutman</name><uri>http://www.blogger.com/profile/07870649278230960051</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_No0Z3O8DLWw/SbN_LGGpSNI/AAAAAAAAAAM/jLcqqCc0wlw/S220/%D7%AA%D7%9E%D7%95%D7%A0%D7%94+132.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1751470255926145608.post-3508333770176880802</id><published>2009-03-11T10:34:00.000-07:00</published><updated>2009-03-11T10:35:43.838-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SHAREPOINT'/><category scheme='http://www.blogger.com/atom/ns#' term='ERRORS'/><category scheme='http://www.blogger.com/atom/ns#' term='BEST PRACTICES'/><title type='text'>MOSS Search PDF 64-bit using IFilter 9</title><content type='html'>&lt;p&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;strong&gt;&lt;u&gt;Install the PDF Ifilter 9 for 64-bit&lt;/u&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-family:arial;"&gt;Download and extract the contents of "&lt;/span&gt;&lt;a href="http://download.adobe.com/pub/adobe/acrobat/win/9.x/PDFiFilter64installer.zip"&gt;&lt;span style="font-family:arial;"&gt;PDFiFilter64installer.zip&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:arial;"&gt;" to your local drive. &lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:arial;"&gt;Double click "PDFFilter64installer.msi" to launch the installer. &lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:arial;"&gt;Follow the instructions in the installer wizard to complete the installation. &lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:arial;"&gt;After installing the PDF iFilter, it is recommended that you set your system PATH environment variable to the "bin" folder of the "Ifilter" installation. For example, from the "Control Panel\System\Advanced\Environment Variables" tab, append to PATH "C:\Program Files\Adobe\Adobe PDF iFilter 9 for 64-bit platforms\bin\" and then restart the computer.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:arial;"&gt;Follow the &lt;/span&gt;&lt;a href="http://www.adobe.com/special/acrobat/configuring_pdf_ifilter_for_ms_sharepoint_2007.pdf"&gt;&lt;span style="font-family:arial;"&gt;Sharepoint IFilter Configuration Guide&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:arial;"&gt; &lt;/span&gt;&lt;span style="font-family:arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;span style="font-family:arial;"&gt;&lt;strong&gt;&lt;u&gt;Add the PDF extension to Search File Types&lt;/u&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-family:arial;"&gt;SharePoint Server Search Administration page by adding ‘pdf’ to list of File Types in Search Administration-&gt;File Types&lt;/li&gt;&lt;/ol&gt;&lt;u&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/u&gt;&lt;/span&gt;&lt;p&gt;&lt;span style="font-family:arial;"&gt;&lt;u&gt;&lt;strong&gt;Add the PDF File Icon to MOSS&lt;/strong&gt;&lt;/u&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-family:arial;"&gt;&lt;u&gt;&lt;strong&gt;&lt;ol&gt;&lt;li&gt;&lt;/strong&gt;&lt;/u&gt;Download the icon for pdf file from &lt;/span&gt;&lt;a href="http://www.adobe.com/images/pdficon_small.gif"&gt;&lt;span style="font-family:arial;"&gt;http://www.adobe.com/images/pdficon_small.gif&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:arial;"&gt; , save it to &lt;moss&gt;\TEMPLATE\IMAGES directory and name it pdficon_small.gif.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:arial;"&gt;Open the docicon.xml file from .&lt;moss&gt;\template\xml .&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:arial;"&gt;Add a new Mapping element to the ByExtension element.&lt;mapping value="pdficon_small.gif" key="pdf"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:arial;"&gt;Save the docicon.xml file.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:arial;"&gt;Restart IIS using iisreset command line.&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;span style="font-family:arial;"&gt;&lt;p&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;Restart all SharePoint services as well as IIS. &lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Run these command-lines:&lt;br /&gt;“net stop osearch”. Wait for success message.&lt;br /&gt;“net start osearch”. Wait for success message. &lt;/li&gt;&lt;li&gt;Restart IIS using iisreset command line and wait for success message. &lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;u&gt;&lt;strong&gt;Re-Crawl&lt;/strong&gt;&lt;/u&gt;&lt;/p&gt;&lt;p&gt;Make sure that you Full Crawl !!!&lt;/p&gt;&lt;p&gt;&lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p&gt;&lt;u&gt;&lt;em&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/u&gt;&lt;/p&gt;&lt;p&gt;&lt;u&gt;&lt;em&gt;&lt;strong&gt;*** Troubleshooting ***&lt;/strong&gt;&lt;/em&gt;&lt;/u&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;Important step that will solve this error message "The filtering process could not process this item. This might be because you do not have the latest file filter for this type of item. Install the corresponding filter and retry your crawl."&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;Make sure to change the &lt;/em&gt;&lt;a href="file://hkey_local_machine/SOFTWARE/Microsoft/Office"&gt;&lt;em&gt;\\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office&lt;/em&gt;&lt;/a&gt;&lt;em&gt; Server\12.0\Search\Setup\ContentIndexCommon\Filters\Extension\.pdf to the GUID {E8978DA6-047F-4E3D-9C78-CDBE46041603}. The original value was {4C904448-74A9-11D0-AF6E-00C04FD8DC02}. (thanks to &lt;a href="http://sharepointsolutions.blogspot.com/2009/01/installing-adobes-64-bit-pdf-ifilter-9.html"&gt;Russell Wright &lt;/a&gt;for that one)&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;/em&gt;&lt;/p&gt;&lt;/span&gt;&lt;p&gt;&lt;u&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;/u&gt;&lt;/p&gt;&lt;p&gt;&lt;u&gt;&lt;span style="font-family:arial;"&gt;URLs:&lt;/span&gt;&lt;/u&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://download.adobe.com/pub/adobe/acrobat/win/9.x/PDFiFilter64installer.zip"&gt;&lt;span style="font-family:arial;"&gt;http://download.adobe.com/pub/adobe/acrobat/win/9.x/PDFiFilter64installer.zip&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.adobe.com/support/downloads/detail.jsp?ftpID=4025"&gt;&lt;span style="font-family:arial;"&gt;http://www.adobe.com/support/downloads/detail.jsp?ftpID=4025&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://support.microsoft.com/default.aspx/kb/832809"&gt;&lt;span style="font-family:arial;"&gt;http://support.microsoft.com/default.aspx/kb/832809&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.adobe.com/special/acrobat/configuring_pdf_ifilter_for_ms_sharepoint_2007.pdf"&gt;&lt;span style="font-family:arial;"&gt;http://www.adobe.com/special/acrobat/configuring_pdf_ifilter_for_ms_sharepoint_2007.pdf&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.adobe.com/images/pdficon_small.gif"&gt;&lt;span style="font-family:arial;"&gt;http://www.adobe.com/images/pdficon_small.gif&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;a href="http://sharepointsolutions.blogspot.com/2009/01/installing-adobes-64-bit-pdf-ifilter-9.html"&gt;http://sharepointsolutions.blogspot.com/2009/01/installing-adobes-64-bit-pdf-ifilter-9.html&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1751470255926145608-3508333770176880802?l=mosswat.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mosswat.blogspot.com/feeds/3508333770176880802/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mosswat.blogspot.com/2009/03/install-pdf-ifilter-9-for-64-bit.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/3508333770176880802'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/3508333770176880802'/><link rel='alternate' type='text/html' href='http://mosswat.blogspot.com/2009/03/install-pdf-ifilter-9-for-64-bit.html' title='MOSS Search PDF 64-bit using IFilter 9'/><author><name>Liron Leybovich</name><uri>http://www.blogger.com/profile/00183176081710984245</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_X-4C3_-wgx4/Sa-Tqn7RNnI/AAAAAAAAADc/haLXCtYcY18/S220/liron2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1751470255926145608.post-6440885421071214124</id><published>2009-03-11T03:07:00.000-07:00</published><updated>2009-03-11T04:39:56.735-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DLL'/><category scheme='http://www.blogger.com/atom/ns#' term='GAC'/><title type='text'>How to easy add Dll to the gac</title><content type='html'>Hi,&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;If you want to add dll to the gac with a simple right click, follow theses  steps:&lt;br /&gt;&lt;br /&gt;1. Foreach .NET version paste the apropriate script in a new  file&lt;br /&gt;2. Save it with ".reg" extension&lt;br /&gt;3. Double click on each file to add  the entry in the registery.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;.Net 1.1&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Windows  Registry Editor Version  5.00&lt;br /&gt;[HKEY_CLASSES_ROOT\dllfile\shell\gacutil\command]@="c:\\windows\\Microsoft.NET\\Framework\\v1.1.4322\\gacutil.exe  /i \"%1\""&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;.Net 2.0&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;Windows  Registry Editor Version  5.00&lt;br /&gt;[HKEY_CLASSES_ROOT\dllfile\shell\gacutil\command]@="C:\\Program  Files\\Microsoft Visual Studio 8\\SDK\\V2.0\\Bin\\gacutil.exe /i  \"%1\""&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks to Elad R...&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;See also:&lt;a href="http://dotnetsharepointtips.blogspot.com/2009/03/how-to-easy-add-dll-to-gac.html"&gt; http://dotnetsharepointtips.blogspot.com/2009/03/how-to-easy-add-dll-to-gac.html&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1751470255926145608-6440885421071214124?l=mosswat.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mosswat.blogspot.com/feeds/6440885421071214124/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mosswat.blogspot.com/2009/03/how-to-easy-add-dll-to-gac.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/6440885421071214124'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/6440885421071214124'/><link rel='alternate' type='text/html' href='http://mosswat.blogspot.com/2009/03/how-to-easy-add-dll-to-gac.html' title='How to easy add Dll to the gac'/><author><name>Elad Gutman</name><uri>http://www.blogger.com/profile/07870649278230960051</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_No0Z3O8DLWw/SbN_LGGpSNI/AAAAAAAAAAM/jLcqqCc0wlw/S220/%D7%AA%D7%9E%D7%95%D7%A0%D7%94+132.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1751470255926145608.post-7034269271569184467</id><published>2009-03-10T05:15:00.000-07:00</published><updated>2009-03-16T01:39:39.039-07:00</updated><title type='text'>New Release Content Type List Binder</title><content type='html'>Hi all,&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;We have done it again... :)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Content Type List Binder is a new application that help us bind between lists and content types.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;How to:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;1. Enter the site collection url and press the &lt;span class="Apple-style-span" style="font-weight: bold;"&gt;load data&lt;/span&gt; button.&lt;/div&gt;&lt;div&gt;2. Select the lists you want (or need) and the relavent content type.&lt;/div&gt;&lt;div&gt;3. Press on bind (check the &lt;span class="Apple-style-span" style="font-weight: bold;"&gt;insert content type &lt;/span&gt;radio button to add and &lt;span class="Apple-style-span" style="font-weight: bold;"&gt;remove content type&lt;/span&gt; to remove).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;You can &lt;a href="http://www.savefile.com/files/2042833"&gt;Download Here&lt;/a&gt; (If you are like me and use Chrome it will save the file as .htm, so just change the suffix to .msi).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1751470255926145608-7034269271569184467?l=mosswat.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mosswat.blogspot.com/feeds/7034269271569184467/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mosswat.blogspot.com/2009/03/new-release-content-type-list-binder.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/7034269271569184467'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/7034269271569184467'/><link rel='alternate' type='text/html' href='http://mosswat.blogspot.com/2009/03/new-release-content-type-list-binder.html' title='New Release Content Type List Binder'/><author><name>Elad Gutman</name><uri>http://www.blogger.com/profile/07870649278230960051</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_No0Z3O8DLWw/SbN_LGGpSNI/AAAAAAAAAAM/jLcqqCc0wlw/S220/%D7%AA%D7%9E%D7%95%D7%A0%D7%94+132.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1751470255926145608.post-589798270699852096</id><published>2009-03-07T10:16:00.000-08:00</published><updated>2009-03-13T05:24:43.211-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='LISTS'/><category scheme='http://www.blogger.com/atom/ns#' term='DOCUMENT LIBRARY'/><category scheme='http://www.blogger.com/atom/ns#' term='SPQUERY'/><category scheme='http://www.blogger.com/atom/ns#' term='MOSS'/><category scheme='http://www.blogger.com/atom/ns#' term='ITEMS'/><title type='text'>SPQuery syntax</title><content type='html'>&lt;div&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(102,204,204)"&gt;SPQuery &lt;/span&gt;is the best way to write queries on MOSS.&lt;/div&gt;&lt;div&gt;MOSS is using CAML to get data in the best and quickest way from sites,lists and folder. using &lt;span class="Apple-style-span" style="color: rgb(0, 204, 204);"&gt;SPQuery &lt;/span&gt;is in most cases the "best practice" way to find information in MOSS and also used in Sharepoint web services.&lt;br /&gt;&lt;div&gt;&lt;div&gt;We have gather a few impotent information about &lt;span class="Apple-style-span" style="COLOR: rgb(102,204,204)"&gt;SPQuery&lt;/span&gt; syntax,&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-size:large;"&gt;&lt;span class="Apple-style-span" style="FONT-STYLE: italic"&gt;&lt;span class="Apple-style-span" style="TEXT-DECORATION: underline"&gt;&lt;span class="Apple-style-span" style="FONT-WEIGHT: bold"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;Properties:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(0,204,204)"&gt;&lt;span class="Apple-style-span"&gt;SPQuery&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"&gt;.Query:&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="TEXT-ALIGN: center"&gt;&lt;span class="Apple-style-span"  style="font-size:48;"&gt;&lt;span class="Apple-style-span"  style="font-size:16;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_No0Z3O8DLWw/SbaWOD6L0tI/AAAAAAAAABg/flSEZwX9q1c/s1600-h/where.PNG"&gt;&lt;span class="Apple-style-span" style="TEXT-DECORATION: none"&gt;&lt;img id="BLOGGER_PHOTO_ID_5311597978841764562" style="WIDTH: 400px; CURSOR: pointer; HEIGHT: 74px" alt="" src="http://4.bp.blogspot.com/_No0Z3O8DLWw/SbaWOD6L0tI/AAAAAAAAABg/flSEZwX9q1c/s400/where.PNG" border="0" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;ul&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 238);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(0,204,204)"&gt;&lt;span class="Apple-style-span"&gt;SPQuery&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;.RowLimit: An int that indicate the row limit.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="TEXT-ALIGN: center"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_No0Z3O8DLWw/SbaWx686X6I/AAAAAAAAABo/2RkLsVJRWrE/s1600-h/rowlimit.PNG"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,51,255)"&gt;&lt;span class="Apple-style-span" style="TEXT-DECORATION: none"&gt;&lt;img id="BLOGGER_PHOTO_ID_5311598594912575394" style="WIDTH: 256px; CURSOR: pointer; HEIGHT: 33px" alt="" src="http://2.bp.blogspot.com/_No0Z3O8DLWw/SbaWx686X6I/AAAAAAAAABo/2RkLsVJRWrE/s400/rowlimit.PNG" border="0" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(0,204,204)"&gt;SPQuery&lt;/span&gt;.Folder: Get a &lt;span class="Apple-style-span" style="COLOR: rgb(102,204,204)"&gt;SPFolder &lt;/span&gt;&lt;span class="Apple-style-span"&gt;object&lt;/span&gt;&lt;span class="Apple-style-span"&gt;.&lt;/span&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(102,204,204)"&gt;  &lt;br /&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 0); "&gt;This is the best way to get items that are in folder.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(0,204,204)"&gt;SPQuery&lt;/span&gt;.ViewField: The same is a "SELECT" sentence.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="TEXT-ALIGN: center"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_No0Z3O8DLWw/SbaXUMsmYfI/AAAAAAAAABw/f_YMGHoUA5Y/s1600-h/fieldref.PNG"&gt;&lt;span class="Apple-style-span" style="TEXT-DECORATION: none"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,51,255)"&gt;&lt;img id="BLOGGER_PHOTO_ID_5311599183791546866" style="WIDTH: 326px; CURSOR: pointer; HEIGHT: 40px" alt="" src="http://3.bp.blogspot.com/_No0Z3O8DLWw/SbaXUMsmYfI/AAAAAAAAABw/f_YMGHoUA5Y/s400/fieldref.PNG" border="0" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="FONT-STYLE: italic"&gt;&lt;span class="Apple-style-span"  style="font-size:large;"&gt;&lt;span class="Apple-style-span" style="TEXT-DECORATION: underline"&gt;&lt;span class="Apple-style-span" style="FONT-WEIGHT: bold"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;Operators:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="FONT-STYLE: italic"&gt;&lt;span class="Apple-style-span"  style="font-size:large;"&gt;&lt;span class="Apple-style-span" style="TEXT-DECORATION: underline"&gt;&lt;span class="Apple-style-span" style="FONT-WEIGHT: bold"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,102,255)"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,51,255); FONT-STYLE: italic"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="FONT-STYLE: italic"&gt;Eq &lt;/span&gt;= equal to&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="FONT-STYLE: italic"&gt;Neq &lt;/span&gt;= not equal to &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="FONT-STYLE: italic"&gt;BeginsWith &lt;/span&gt;= begins with &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="FONT-STYLE: italic"&gt;Contains &lt;/span&gt;= contains &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="FONT-STYLE: italic"&gt;Lt &lt;/span&gt;= less than &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="FONT-STYLE: italic"&gt;Leq &lt;/span&gt;= less than or equal to &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="FONT-STYLE: italic"&gt;Gt &lt;/span&gt;= greater than &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="FONT-STYLE: italic"&gt;Geq &lt;/span&gt;= greater than or equal to &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="FONT-STYLE: italic"&gt;IsNull &lt;/span&gt;= is null &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="FONT-STYLE: italic"&gt;IsNotNull &lt;/span&gt;= is not null &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="TEXT-DECORATION: underline"&gt;&lt;span class="Apple-style-span" style="FONT-STYLE: italic"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,51,255)"&gt;&lt;span class="Apple-style-span" style="FONT-WEIGHT: bold"&gt;AND &amp;amp; OR CONDITIONS&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;Using and &amp;amp; or is very similar to using regular parentheses, between each to operation we need to add AND or OR for example:&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(0,0,153)"&gt;AND:&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div style="TEXT-ALIGN: center"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,51,255)"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_No0Z3O8DLWw/SbaYhrzZtRI/AAAAAAAAAB4/Fd7JFiwM0nQ/s1600-h/and.PNG"&gt;&lt;span class="Apple-style-span" style="TEXT-DECORATION: none"&gt;&lt;img id="BLOGGER_PHOTO_ID_5311600514991502610" style="WIDTH: 400px; CURSOR: pointer; HEIGHT: 103px" alt="" src="http://4.bp.blogspot.com/_No0Z3O8DLWw/SbaYhrzZtRI/AAAAAAAAAB4/Fd7JFiwM0nQ/s400/and.PNG" border="0" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="TEXT-ALIGN: left"&gt;We are using AND between 2 operators and add another tab when we add a new operator.&lt;/div&gt;&lt;div style="TEXT-ALIGN: left"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="TEXT-ALIGN: left"&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,51,255)"&gt;OR:&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div style="TEXT-ALIGN: center"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,51,255)"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_No0Z3O8DLWw/SbaZG6_wBVI/AAAAAAAAACA/Tgnlq_CbaNk/s1600-h/OR.PNG"&gt;&lt;span class="Apple-style-span" style="TEXT-DECORATION: none"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,51,255)"&gt;&lt;img id="BLOGGER_PHOTO_ID_5311601154724988242" style="WIDTH: 400px; CURSOR: pointer; HEIGHT: 103px" alt="" src="http://4.bp.blogspot.com/_No0Z3O8DLWw/SbaZG6_wBVI/AAAAAAAAACA/Tgnlq_CbaNk/s400/OR.PNG" border="0" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="TEXT-ALIGN: left"&gt;The same as AND.&lt;/div&gt;&lt;div style="TEXT-ALIGN: center"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="TEXT-ALIGN: left"&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,51,255)"&gt;AND &amp;amp; OR:&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div style="TEXT-ALIGN: center"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,51,255)"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_No0Z3O8DLWw/SbaZrs72xeI/AAAAAAAAACI/kUvEc1BCXGM/s1600-h/ORAND.PNG"&gt;&lt;span class="Apple-style-span" style="TEXT-DECORATION: none"&gt;&lt;span class="Apple-style-span" style="COLOR: rgb(51,51,255)"&gt;&lt;img id="BLOGGER_PHOTO_ID_5311601786605716962" style="WIDTH: 400px; CURSOR: pointer; HEIGHT: 188px" alt="" src="http://1.bp.blogspot.com/_No0Z3O8DLWw/SbaZrs72xeI/AAAAAAAAACI/kUvEc1BCXGM/s400/ORAND.PNG" border="0" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="TEXT-ALIGN: left"&gt;With AND &amp;amp; OR we are creating brackets, we create each one of the conditions and wrap them with AND/OR.&lt;/div&gt;&lt;br /&gt;&lt;div style="TEXT-ALIGN: left"&gt; &lt;/div&gt;&lt;br /&gt;&lt;div style="TEXT-ALIGN: left"&gt;&lt;strong&gt;How to write CAML queries ?&lt;br /&gt;&lt;/strong&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="TEXT-ALIGN: left"&gt;A very useful tool allow you to build yours CAML queries: &lt;strong&gt;U2U Caml Query Builder.&lt;/strong&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="TEXT-ALIGN: left"&gt;You can download it at :&lt;strong&gt; &lt;/strong&gt;&lt;a href="http://www.u2u.be/res/Tools/CamlQueryBuilder.aspx"&gt;http://www.u2u.be/res/Tools/CamlQueryBuilder.aspx&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="TEXT-ALIGN: left"&gt; &lt;/div&gt;&lt;br /&gt;&lt;div style="TEXT-ALIGN: left"&gt;&lt;strong&gt;Performance consideration:&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;If your farm is well indexed, retiewing datas using SPquey in the best method to  improve performance. See also our post about &lt;a href="http://mosswat.blogspot.com/2009/02/working-with-large-lists-in-office.html"&gt;working with large list in Sharepoint&lt;/a&gt;&lt;/div&gt;&lt;div style="TEXT-ALIGN: left"&gt; &lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1751470255926145608-589798270699852096?l=mosswat.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mosswat.blogspot.com/feeds/589798270699852096/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mosswat.blogspot.com/2009/03/spquery-syntax.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/589798270699852096'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/589798270699852096'/><link rel='alternate' type='text/html' href='http://mosswat.blogspot.com/2009/03/spquery-syntax.html' title='SPQuery syntax'/><author><name>Elad Gutman</name><uri>http://www.blogger.com/profile/07870649278230960051</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_No0Z3O8DLWw/SbN_LGGpSNI/AAAAAAAAAAM/jLcqqCc0wlw/S220/%D7%AA%D7%9E%D7%95%D7%A0%D7%94+132.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_No0Z3O8DLWw/SbaWOD6L0tI/AAAAAAAAABg/flSEZwX9q1c/s72-c/where.PNG' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1751470255926145608.post-7312872031135702090</id><published>2009-03-05T11:22:00.000-08:00</published><updated>2009-03-05T11:50:51.760-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SHAREPOINT'/><category scheme='http://www.blogger.com/atom/ns#' term='Template List ID'/><category scheme='http://www.blogger.com/atom/ns#' term='MOSS'/><title type='text'>Template List ID</title><content type='html'>Administrator tasks list : 1200&lt;br /&gt;Announcements list : 104&lt;br /&gt;Blog Categories list : 303&lt;br /&gt;Blog Comments list : 302&lt;br /&gt;Blog Posts list : 301&lt;br /&gt;Contacts list : 105&lt;br /&gt;Custom grid for a list : 120&lt;br /&gt;Custom Workflow Process : 118&lt;br /&gt;Data Connection library : 130&lt;br /&gt;Data sources : 110&lt;br /&gt;Discussion board : 108&lt;br /&gt;Document library : 101&lt;br /&gt;Events list : 106&lt;br /&gt;Gantt Tasks list : 150&lt;br /&gt;Generic list : 100&lt;br /&gt;Issue tracking : 1100&lt;br /&gt;Links list : 103&lt;br /&gt;List template gallery : 114&lt;br /&gt;Master pages gallery : 116&lt;br /&gt;Meeting Agenda list : 201&lt;br /&gt;Meeting Attendees list : 202&lt;br /&gt;Meeting Decisions list : 204&lt;br /&gt;Meeting Objectives list : 207&lt;br /&gt;Meeting Series list : 200&lt;br /&gt;Meeting text box : 210&lt;br /&gt;Meeting Things To Bring list : 211&lt;br /&gt;Meeting Workspace Pages list : 212&lt;br /&gt;No-Code Workflows : 117&lt;br /&gt;Personal document library : 2002&lt;br /&gt;Picture library : 109&lt;br /&gt;Portal Sites list : 300&lt;br /&gt;Private document library : 2003&lt;br /&gt;Site template gallery : 111&lt;br /&gt;Survey : 102&lt;br /&gt;Tasks list : 107&lt;br /&gt;User Information list : 112&lt;br /&gt;Web Part gallery : 113&lt;br /&gt;Wiki Page library : 119&lt;br /&gt;Workflow History : 140&lt;br /&gt;XML Form library : 115&lt;br /&gt;&lt;br /&gt;Reference : &lt;a href="http://simeonlobo.wordpress.com/2008/02/27/sharepoint-list-template-ids/"&gt;http://simeonlobo.wordpress.com/2008/02/27/sharepoint-list-template-ids/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1751470255926145608-7312872031135702090?l=mosswat.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mosswat.blogspot.com/feeds/7312872031135702090/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mosswat.blogspot.com/2009/03/template-list-id.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/7312872031135702090'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/7312872031135702090'/><link rel='alternate' type='text/html' href='http://mosswat.blogspot.com/2009/03/template-list-id.html' title='Template List ID'/><author><name>Michael Assouline</name><uri>http://www.blogger.com/profile/16748056476257373477</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_D1AoXDUOazY/SYc4F_0g6hI/AAAAAAAAAAM/L0FaQYgUKl4/S220/michael.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1751470255926145608.post-5270452173748950119</id><published>2009-03-05T10:36:00.000-08:00</published><updated>2009-03-05T11:16:06.662-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Content Types'/><category scheme='http://www.blogger.com/atom/ns#' term='SHAREPOINT'/><category scheme='http://www.blogger.com/atom/ns#' term='MOSS'/><title type='text'>Content Type ID</title><content type='html'>&lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;Content Types ID&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;Item&lt;br /&gt;0×01&lt;br /&gt;Create a new list item&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Reusable HTML&lt;br /&gt;0×01002CF74A4DAE39480396EEA7A4BA2BE5FB&lt;br /&gt;Reusable HTML&lt;br /&gt;&lt;br /&gt;Reusable Text&lt;br /&gt;0×01004D5A79BAFA4A4576B79C56FF3D0D662D&lt;br /&gt;&lt;br /&gt;Page Output Cache&lt;br /&gt;0×010087D89D279834C94E98E5E1B4A913C67E&lt;br /&gt;Page Output Cache is a system content type template created by the Publishing Resources feature to define cache profiles.&lt;br /&gt;&lt;br /&gt;Document&lt;br /&gt;0×0101&lt;br /&gt;Create a new document.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;System Page Layout&lt;br /&gt;0×01010007FF3E057FA8AB4AA42FCB67B453FFC1&lt;br /&gt;System Page Layout is a system content type template created by the Publishing Resources feature, and it cannot be modified. To add columns to page layouts in the page layouts gallery and master page gallery, update the Page Layout content type template.&lt;br /&gt;&lt;br /&gt;Page Layout&lt;br /&gt;0×01010007FF3E057FA8AB4AA42FCB67B453FFC100E214EEE741181F4E9F7ACC43278EE811&lt;br /&gt;Page Layout is a system content type template created by the Publishing Resources feature. All page layouts will have the column templates from Page Layout added.&lt;br /&gt;&lt;br /&gt;System Master Page&lt;br /&gt;0×0101000F1C8B9E0EB4BE489F09807B2C53288F&lt;br /&gt;System Master Page is a system content type template created by the Publishing Resources feature, and it cannot be modified. To add columns to master pages in the page layouts gallery and master page gallery, update the Master Page content type template.&lt;br /&gt;&lt;br /&gt;Publishing Master Page&lt;br /&gt;0×0101000F1C8B9E0EB4BE489F09807B2C53288F0054AD6EF48B9F7B45A142F8173F171BD1&lt;br /&gt;Master Page is a system content type template created by the Publishing Resources feature. All master pages will have the column templates from Master Page added.&lt;br /&gt;&lt;br /&gt;Office Data Connection File&lt;br /&gt;0×010100629D00608F814DD6AC8A86903AEE72AA&lt;br /&gt;&lt;br /&gt;Universal Data Connection File&lt;br /&gt;0×010100B4CBD48E029A4AD8B62CB0E41868F2B0&lt;br /&gt;Provide a standard place for applications, such as Microsoft Office InfoPath, to store data connection information.&lt;br /&gt;&lt;br /&gt;System Page&lt;br /&gt;0×010100C568DB52D9D0A14D9B2FDCC96666E9F2&lt;br /&gt;System Page is a system content type template created by the Publishing Resources feature, and it cannot be modified. To add columns to the Pages library, update the Page content type template.&lt;br /&gt;&lt;br /&gt;Page&lt;br /&gt;0×010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF39&lt;br /&gt;Page is a system content type template created by the Publishing Resources feature. The column templates from Page will be added to all Pages libraries created by the Publishing feature.&lt;br /&gt;&lt;br /&gt;Article Page&lt;br /&gt;0×010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF3900242457EFB8B24247815D688C526CD44DArticle Page is a system content type template created by the Publishing Resources feature. It is the associated content type template for the default page layouts used to create article pages in sites that have the Publishing feature enabled.&lt;br /&gt;&lt;br /&gt;Welcome Page&lt;br /&gt;0×010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF390064DEA0F50FC8C147B0B6EA0636C4A7D4&lt;br /&gt;Welcome Page is a system content type template created by the Publishing Resources feature. It is the associated content type template for the default page layout used to create welcome pages in sites that have the Publishing feature enabled.&lt;br /&gt;&lt;br /&gt;Redirect Page&lt;br /&gt;0×010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF3900FD0E870BA06948879DBD5F9813CD8799Redirect Page is a system content type template created by the Publishing Resources feature. It is the associated content type template for the redirect page layout&lt;br /&gt;&lt;br /&gt;Form&lt;br /&gt;0×010101&lt;br /&gt;Fill out this form.&lt;br /&gt;&lt;br /&gt;Picture&lt;br /&gt;0×010102&lt;br /&gt;Upload an image or a photograph.&lt;br /&gt;Unknown Document Type0×010104Allows users to upload documents of any content type to a library. Unknown documents will be treated as their original content type in client applications.&lt;br /&gt;&lt;br /&gt;Master Page&lt;br /&gt;0×010105&lt;br /&gt;Create a new master page.&lt;br /&gt;&lt;br /&gt;User Workflow Document&lt;br /&gt;0×010107&lt;br /&gt;Items for use in user defined workflows.&lt;br /&gt;&lt;br /&gt;Wiki Page&lt;br /&gt;0×010108&lt;br /&gt;Create a new wiki page.&lt;br /&gt;&lt;br /&gt;Basic Page&lt;br /&gt;0×010109&lt;br /&gt;Create a new basic page.&lt;br /&gt;&lt;br /&gt;Web Part Page&lt;br /&gt;0×01010901&lt;br /&gt;Create a new Web Part page.&lt;br /&gt;&lt;br /&gt;Link to a Document&lt;br /&gt;0×01010A&lt;br /&gt;Create a link to a document in a different location.&lt;br /&gt;&lt;br /&gt;Dublin Core Columns&lt;br /&gt;0×01010B&lt;br /&gt;The Dublin Core metadata element set.&lt;br /&gt;&lt;br /&gt;Event&lt;br /&gt;0×0102&lt;br /&gt;Create a new meeting, deadline or other event.&lt;br /&gt;&lt;br /&gt;Issue&lt;br /&gt;0×0103&lt;br /&gt;Track an issue or problem.&lt;br /&gt;&lt;br /&gt;Announcement&lt;br /&gt;0×0104&lt;br /&gt;Create a new news item, status or other short piece of information.&lt;br /&gt;&lt;br /&gt;Link&lt;br /&gt;0×0105&lt;br /&gt;Create a new link to a Web page or other resource.&lt;br /&gt;&lt;br /&gt;Contact&lt;br /&gt;0×0106&lt;br /&gt;Store information about a business or personal contact.&lt;br /&gt;&lt;br /&gt;Message&lt;br /&gt;0×0107&lt;br /&gt;Create a new message.&lt;br /&gt;&lt;br /&gt;Task&lt;br /&gt;0×0108&lt;br /&gt;Track a work item that you or your team needs to complete.&lt;br /&gt;&lt;br /&gt;Workflow Task&lt;br /&gt;0×010801&lt;br /&gt;A work item created by a workflow that you or your team needs to complete.&lt;br /&gt;&lt;br /&gt;Office SharePoint Server Workflow Task&lt;br /&gt;0×01080100C9C9515DE4E24001905074F980F93160&lt;br /&gt;A work item created by a workflow that you or your team needs to complete.&lt;br /&gt;&lt;br /&gt;Administrative Task&lt;br /&gt;0×010802&lt;br /&gt;An administrative work item that an administrator needs to complete.&lt;br /&gt;&lt;br /&gt;Workflow History&lt;br /&gt;0×0109&lt;br /&gt;The history of a workflow.&lt;br /&gt;&lt;br /&gt;Person&lt;br /&gt;0×010A&lt;br /&gt;&lt;br /&gt;SharePointGroup&lt;br /&gt;0×010B&lt;br /&gt;&lt;br /&gt;DomainGroup&lt;br /&gt;0×010C&lt;br /&gt;&lt;br /&gt;Post&lt;br /&gt;0×0110&lt;br /&gt;Create a new blog post.&lt;br /&gt;&lt;br /&gt;Comment&lt;br /&gt;0×0111&lt;br /&gt;Create a new blog comment.&lt;br /&gt;&lt;br /&gt;Far East Contact&lt;br /&gt;0×0116&lt;br /&gt;Store information about a business or personal contact.&lt;br /&gt;&lt;br /&gt;Folder&lt;br /&gt;0×0120&lt;br /&gt;Create a new folder.&lt;br /&gt;&lt;br /&gt;RootOfList&lt;br /&gt;0×012001&lt;br /&gt;&lt;br /&gt;Discussion&lt;br /&gt;0×012002&lt;br /&gt;Create a new discussion topic.&lt;br /&gt;&lt;br /&gt;Reference: &lt;/span&gt;&lt;a href="http://claytonj.wordpress.com/category/office-12/moss-2007/"&gt;&lt;span style="font-size:85%;"&gt;http://claytonj.wordpress.com/category/office-12/moss-2007/&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1751470255926145608-5270452173748950119?l=mosswat.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mosswat.blogspot.com/feeds/5270452173748950119/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mosswat.blogspot.com/2009/03/content-type-id.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/5270452173748950119'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/5270452173748950119'/><link rel='alternate' type='text/html' href='http://mosswat.blogspot.com/2009/03/content-type-id.html' title='Content Type ID'/><author><name>Michael Assouline</name><uri>http://www.blogger.com/profile/16748056476257373477</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_D1AoXDUOazY/SYc4F_0g6hI/AAAAAAAAAAM/L0FaQYgUKl4/S220/michael.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1751470255926145608.post-8383029197908640602</id><published>2009-03-05T00:46:00.001-08:00</published><updated>2009-03-05T00:48:09.622-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PERMISSIONS'/><category scheme='http://www.blogger.com/atom/ns#' term='SHAREPOINT'/><category scheme='http://www.blogger.com/atom/ns#' term='ERRORS'/><category scheme='http://www.blogger.com/atom/ns#' term='BEST PRACTICES'/><title type='text'>WebService "Service Unavailable" error message</title><content type='html'>When changing the application pool user it is important to add the user to the IIS_WPG group.&lt;br /&gt;&lt;br /&gt;Yesterday, we so this error message and found the solution &lt;a href="http://support.microsoft.com/kb/823552"&gt;here&lt;/a&gt; which says that the reason for this kind of error message may be because one of the following occurs:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;The application pool is not running. &lt;/li&gt;&lt;li&gt;The application pool account uses an incorrect password. &lt;/li&gt;&lt;li&gt;The application pool account is not a member of both the IIS_WPG group and the STS_WPG group on the server.&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;In our case it was the third one, after adding the application pool user to the IIS_WPG group the WebService run like a magic.....&lt;/p&gt;&lt;p&gt;Liron&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1751470255926145608-8383029197908640602?l=mosswat.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mosswat.blogspot.com/feeds/8383029197908640602/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mosswat.blogspot.com/2009/03/webservice-service-unavailable-error.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/8383029197908640602'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/8383029197908640602'/><link rel='alternate' type='text/html' href='http://mosswat.blogspot.com/2009/03/webservice-service-unavailable-error.html' title='WebService &quot;Service Unavailable&quot; error message'/><author><name>Liron Leybovich</name><uri>http://www.blogger.com/profile/00183176081710984245</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_X-4C3_-wgx4/Sa-Tqn7RNnI/AAAAAAAAADc/haLXCtYcY18/S220/liron2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1751470255926145608.post-3412172732694455059</id><published>2009-03-04T01:07:00.000-08:00</published><updated>2009-03-04T01:22:01.562-08:00</updated><title type='text'>Off Topic: MOSS S.W.A.T Merchandise :-)</title><content type='html'>(LOL)&lt;br /&gt;&lt;br /&gt;We've just printed out few MOSS S.W.A.T T-Shirts for our team.....&lt;br /&gt;&lt;br /&gt;&lt;table border="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;a href="http://1.bp.blogspot.com/_X-4C3_-wgx4/Sa5G2RzznHI/AAAAAAAAADA/Rj8mIagGdLQ/s1600-h/MOSS_SWAT_TShirt_FRONT.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5309258909023968370" style="WIDTH: 197px; CURSOR: hand; HEIGHT: 209px" alt="" src="http://1.bp.blogspot.com/_X-4C3_-wgx4/Sa5G2RzznHI/AAAAAAAAADA/Rj8mIagGdLQ/s320/MOSS_SWAT_TShirt_FRONT.jpg" border="0" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;a href="http://2.bp.blogspot.com/_X-4C3_-wgx4/Sa5F-ALpJFI/AAAAAAAAAC4/PUqRJ9G7uMI/s1600-h/MOSS_SWAT_TShirt_BACK.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5309257942219433042" style="WIDTH: 192px; CURSOR: hand; HEIGHT: 208px" alt="" src="http://2.bp.blogspot.com/_X-4C3_-wgx4/Sa5F-ALpJFI/AAAAAAAAAC4/PUqRJ9G7uMI/s320/MOSS_SWAT_TShirt_BACK.jpg" border="0" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;br /&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;If you are interested to be the owner of this T-Shirt please let us know&lt;br /&gt;&lt;br /&gt;Liron&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1751470255926145608-3412172732694455059?l=mosswat.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mosswat.blogspot.com/feeds/3412172732694455059/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mosswat.blogspot.com/2009/03/off-topic-moss-swat-merchandise.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/3412172732694455059'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/3412172732694455059'/><link rel='alternate' type='text/html' href='http://mosswat.blogspot.com/2009/03/off-topic-moss-swat-merchandise.html' title='Off Topic: MOSS S.W.A.T Merchandise :-)'/><author><name>Liron Leybovich</name><uri>http://www.blogger.com/profile/00183176081710984245</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_X-4C3_-wgx4/Sa-Tqn7RNnI/AAAAAAAAADc/haLXCtYcY18/S220/liron2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_X-4C3_-wgx4/Sa5G2RzznHI/AAAAAAAAADA/Rj8mIagGdLQ/s72-c/MOSS_SWAT_TShirt_FRONT.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1751470255926145608.post-3503260203025558943</id><published>2009-03-01T08:47:00.000-08:00</published><updated>2009-03-01T08:58:45.384-08:00</updated><title type='text'>Update Moss Web.Config V2</title><content type='html'>The last week we spoke about another way to update sharepoint web.config by using custom xml.&lt;br /&gt;I readed an excellent post of &lt;a href="http://www.sharepointofview.fr/gat/archive/2008/05/09/modifier-tous-les-web-config-de-vos-applications-sans-code-1.aspx"&gt;Gaetan Bouveret&lt;/a&gt; that give interesting details:&lt;br /&gt;&lt;br /&gt;Specifically, he explains that we can add an "id" attribut to each node to prevent adding sames nodes twice&lt;br /&gt;&lt;br /&gt;Samples :&lt;br /&gt;&lt;br /&gt;To add a node like add appsetting:&lt;br /&gt;&lt;br /&gt;&lt;pre class="alt"&gt;&amp;lt;add path=&lt;span class="str"&gt;&amp;quot;configuration&amp;quot;&lt;/span&gt; id=&lt;span class="str"&gt;&amp;quot;{72DB2C92-8BC1-4767-A12C-94B67D46D0CF}&amp;quot;&lt;/span&gt;&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;pre&gt;  &amp;lt;appSettings /&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;pre class="alt"&gt; &amp;lt;/add&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;To update a node :&lt;br /&gt;&lt;br /&gt;&lt;pre class="alt"&gt;&amp;lt;update path=&lt;span class="str"&gt;&amp;quot;configuration/system.web&amp;quot;&lt;/span&gt;&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;pre&gt;    &amp;lt;siteMap defaultProvider=&lt;span class="str"&gt;&amp;quot;CurrentNavSiteMapProvider&amp;quot;&lt;/span&gt; enabled=&lt;span class="str"&gt;&amp;quot;true&amp;quot;&lt;/span&gt;/&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;pre class="alt"&gt;&amp;lt;/update&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To delete node :&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&amp;nbsp;&amp;lt;remove path=&lt;span class="str"&gt;&amp;quot;configuration/SharePoint/RuntimeFilter&amp;quot;&lt;/span&gt; &lt;br /&gt;id=&lt;span class="str"&gt;&amp;quot;{0582988F-9C26-4990-8672-0099F4567B03}&amp;quot;&lt;/span&gt; /&amp;gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;Note: The "id" attribut is very important to prevent adding same nodes twice.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1751470255926145608-3503260203025558943?l=mosswat.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mosswat.blogspot.com/feeds/3503260203025558943/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mosswat.blogspot.com/2009/03/update-moss-webconfig-v2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/3503260203025558943'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/3503260203025558943'/><link rel='alternate' type='text/html' href='http://mosswat.blogspot.com/2009/03/update-moss-webconfig-v2.html' title='Update Moss Web.Config V2'/><author><name>Michael Assouline</name><uri>http://www.blogger.com/profile/16748056476257373477</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_D1AoXDUOazY/SYc4F_0g6hI/AAAAAAAAAAM/L0FaQYgUKl4/S220/michael.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1751470255926145608.post-2223497765771232171</id><published>2009-02-28T09:00:00.000-08:00</published><updated>2009-03-01T02:12:38.799-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SPROLEASSIGNMENT'/><category scheme='http://www.blogger.com/atom/ns#' term='PERMISSIONS'/><category scheme='http://www.blogger.com/atom/ns#' term='SPROLEDEFINITION'/><title type='text'>How To Copy Permissions Between Site Collections</title><content type='html'>Hi again,&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;One of the more challenging issues in MOSS is permissions, specially if we need to move them between site collections.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;To add permissions to item\folder\list\site we add &lt;span class="Apple-style-span" style="color: rgb(0, 204, 204);"&gt;SPRoleAssignment &lt;/span&gt;that contains &lt;span class="Apple-style-span" style="color: rgb(0, 204, 204);"&gt;SPUser &lt;/span&gt;(as &lt;span class="Apple-style-span" style="color: rgb(0, 204, 204);"&gt;SPPincipal&lt;/span&gt;), and &lt;span class="Apple-style-span" style="color: rgb(0, 204, 204);"&gt;SPRoleDefinition &lt;/span&gt;that contain the the BasePermissions or the Types (reader/contributor...).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Each role is have diffrent parameters in each site collection, for example my user can be in one site collection &lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 102, 0);"&gt;1;#elad&lt;/span&gt;&lt;/span&gt; and in the other can be&lt;span class="Apple-style-span" style="color: rgb(255, 102, 0);"&gt; &lt;/span&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 102, 0);"&gt;5;#elad&lt;/span&gt;&lt;/span&gt;, the same user but a diffrent id. the same is for definition, contributor for example have the same base permissions in every site collection but have a differnt ID.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So what to do... ?&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;It is eazy, &lt;/div&gt;&lt;div&gt;1. Create a new instant of your role user like this:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 153, 0);"&gt;// role is the role assignment from the old site collection.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(102, 204, 204);"&gt;SPUser &lt;/span&gt;user = role.Member as &lt;span class="Apple-style-span" style="color: rgb(102, 204, 204);"&gt;SPUser&lt;/span&gt;;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;2. Than create a new role assinment&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 153, 0);"&gt;// web is the site in the new site collection&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 204, 204);"&gt;SPRoleAssignment &lt;/span&gt;roleAssignment = new &lt;span class="Apple-style-span" style="color: rgb(0, 204, 204);"&gt;SPRoleAssignment&lt;/span&gt;(&lt;br /&gt;&lt;/div&gt;&lt;div&gt;                                   web.EnsureUser(user.LoginName) as &lt;span class="Apple-style-span" style="color: rgb(0, 204, 204);"&gt;SPPrincipal&lt;/span&gt;); &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Why EnsureUser ? &lt;/div&gt;&lt;div&gt;The EnsureUser method will chack if the user exist in the corrent site and if not will create him as Limited Access permission. (10x to Michael Assouline that show me this method).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;than add the role definitions to the new role assignment,&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;foreach (&lt;span class="Apple-style-span" style="color: rgb(0, 204, 204);"&gt;SPRoleDefinition &lt;/span&gt;roleDefinition &lt;span class="Apple-style-span" style="color: rgb(51, 51, 255);"&gt;in &lt;/span&gt;role.RoleDefinitionBindings)&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 153, 0); "&gt;// we cann't add Limited Access&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;if (roleDefinition.Type != SPRoleType.Guest)&lt;/div&gt;&lt;div&gt;        {&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;   definition = web.RoleDefinitions.GetByType(roleDefinition.Type);&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;   roleAssignment.RoleDefinitionBindings.Add(definition);&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;}&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;3. And now just add the new role to the item,&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;item.RoleAssignments.Add(roleAssignment); &lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1751470255926145608-2223497765771232171?l=mosswat.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mosswat.blogspot.com/feeds/2223497765771232171/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mosswat.blogspot.com/2009/02/how-to-copy-permissions-between-site.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/2223497765771232171'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/2223497765771232171'/><link rel='alternate' type='text/html' href='http://mosswat.blogspot.com/2009/02/how-to-copy-permissions-between-site.html' title='How To Copy Permissions Between Site Collections'/><author><name>Elad Gutman</name><uri>http://www.blogger.com/profile/07870649278230960051</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_No0Z3O8DLWw/SbN_LGGpSNI/AAAAAAAAAAM/jLcqqCc0wlw/S220/%D7%AA%D7%9E%D7%95%D7%A0%D7%94+132.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1751470255926145608.post-8863845286403089168</id><published>2009-02-27T00:37:00.001-08:00</published><updated>2009-02-27T00:42:13.068-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ARCHITECTURE'/><category scheme='http://www.blogger.com/atom/ns#' term='SHAREPOINT'/><category scheme='http://www.blogger.com/atom/ns#' term='OBJECT MODEL'/><category scheme='http://www.blogger.com/atom/ns#' term='MOSS'/><title type='text'>Server and Site Architecture: Object Model</title><content type='html'>&lt;a href="http://4.bp.blogspot.com/_D1AoXDUOazY/Saem7fFhE8I/AAAAAAAAAA4/OrPM_4COobg/s1600-h/map.gif"&gt;&lt;img id="BLOGGER_PHOTO_ID_5307394226766549954" style="FLOAT: left; MARGIN: 0px 10px 10px 0px; WIDTH: 320px; CURSOR: hand; HEIGHT: 293px" alt="" src="http://4.bp.blogspot.com/_D1AoXDUOazY/Saem7fFhE8I/AAAAAAAAAA4/OrPM_4COobg/s320/map.gif" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;An interesting article about Server and Site Architecture Object Model&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;br /&gt; &lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;&lt;br /&gt; &lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms473633.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms473633.aspx&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1751470255926145608-8863845286403089168?l=mosswat.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mosswat.blogspot.com/feeds/8863845286403089168/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mosswat.blogspot.com/2009/02/server-and-site-architecture-object.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/8863845286403089168'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/8863845286403089168'/><link rel='alternate' type='text/html' href='http://mosswat.blogspot.com/2009/02/server-and-site-architecture-object.html' title='Server and Site Architecture: Object Model'/><author><name>Michael Assouline</name><uri>http://www.blogger.com/profile/16748056476257373477</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_D1AoXDUOazY/SYc4F_0g6hI/AAAAAAAAAAM/L0FaQYgUKl4/S220/michael.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_D1AoXDUOazY/Saem7fFhE8I/AAAAAAAAAA4/OrPM_4COobg/s72-c/map.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1751470255926145608.post-8367874420471668915</id><published>2009-02-25T13:32:00.000-08:00</published><updated>2009-02-26T00:35:29.659-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SHAREPOINT'/><category scheme='http://www.blogger.com/atom/ns#' term='WEB.CONFIG'/><category scheme='http://www.blogger.com/atom/ns#' term='MOSS'/><title type='text'>Update Moss Web.Config</title><content type='html'>&lt;strong&gt;1. Programatically using Sharepoint API&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;We can use &lt;strong&gt;SPWebConfigModification&lt;/strong&gt; object like this:&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;This code update CustomErrors value&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;// Get an instance of my local web application&lt;br /&gt;SPWebApplication webApp = new SPSite("http://localhost").WebApplication;&lt;br /&gt;// Create my new modification to set the mode attibute to "Off".&lt;br /&gt;// Example: &lt;customerrors mode="Off"&gt;&lt;br /&gt;SPWebConfigModification modification = new SPWebConfigModification("mode", "system.web/customErrors");&lt;br /&gt;modification.Owner = "SimpleSampleUniqueOwnerValue"; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;modification.Sequence = 0; modification.Type = SPWebConfigModification.SPWebConfigModificationType.EnsureAttribute; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;modification.Value = "Off"; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;// Add my new web.config modification. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;webApp.WebConfigModifications.Add(modification); &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;// Save web.config changes.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;webApp.Farm.Services.GetValue&lt;spwebservice&gt;().ApplyWebConfigModifications(); &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;// Serialize the web application state and propagate changes across the farm.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;webApp.Update(); &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;This code Add safe control entry to the web.config :&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;SPWebService myService = SPWebService.ContentService;&lt;br /&gt;SPWebConfigModification myModification = new SPWebConfigModification();&lt;br /&gt;myModification.Path = "configuration/SharePoint/SafeControls";&lt;br /&gt;myModification.Name = "SafeControl[@Assembly='MyCustomAssembly'][@Namespace='MyCustomNamespace'][@TypeName='*'][@Safe='True']";&lt;br /&gt;myModification.Sequence = 0;&lt;br /&gt;myModification.Owner = WebConfigModificationFeatureReceiver.OwnerId;&lt;br /&gt;myModification.Type = SPWebConfigModification.SPWebConfigModificationType.EnsureChildNode;&lt;br /&gt;myModification.Value = "&lt;safecontrol safe="'True'" typename="'*'" namespace="'MyCustomNamespace'" assembly="'MyCustomAssembly'"&gt;";&lt;br /&gt;myService.WebConfigModifications.Add(myModification);myService.Update(); myService.ApplyWebConfigModifications();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;References :&lt;br /&gt;&lt;a href="http://www.crsw.com/mark/Lists/Posts/Post.aspx?ID=32"&gt;http://www.crsw.com/mark/Lists/Posts/Post.aspx?ID=32&lt;/a&gt;&lt;br /&gt;&lt;a href="http://blogs.devhorizon.com/reza/?p=459"&gt;http://blogs.devhorizon.com/reza/?p=459&lt;/a&gt;&lt;br /&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.administration.spwebconfigmodification.aspx"&gt;http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.administration.spwebconfigmodification.aspx&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;2. Deploying custom XML File in the Sharepoint CONFIG folder ( C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\CONFIG&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;Steps to perform it:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;1. Write an xml file called webconfig.[myname].xml&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;2. Add yours web.config sections into "actions" node:&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&amp;lt;?xml version=”1.0″ encoding=”utf-8″ ?&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;actions&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;add path=”configuration/appSettings”&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;add key=”MyFilePath” value=”C:\temp\path\” /&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/add&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;add path=”configuration”&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;connectionStrings /&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/add&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;add path=”configuration/connectionStrings”&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;remove name=”MySqlServerConnection” /&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;add name=”MySqlServerConnection” connectionString=”server=[server];database=&lt;br /&gt;&lt;br /&gt;db];Integrated Security=SSIP;” providerName=”System.Data.SqlClient” /&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/add&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/actions&amp;gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;3. Copy your xml file into C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\CONFIG folder&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;When you'll create a new web application or extend web application the web.config will be updated with yours sections by merging them into the web.config.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;If you want to immediately apply the changes you have to run : stsadm –o copyappbincontent&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;Reference: &lt;a href="http://claytonj.wordpress.com/2008/03/19/custom-webconfig-settings-in-sharepoint/"&gt;&lt;span style="font-size:85%;"&gt;http://claytonj.wordpress.com/2008/03/19/custom-webconfig-settings-in-sharepoint/&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size:100%;"&gt;3. See also&lt;/span&gt; : &lt;a href="http://blog.thekid.me.uk/archive/2007/03/24/web-config-modification-manager-for-sharepoint.aspx"&gt;http://blog.thekid.me.uk/archive/2007/03/24/web-config-modification-manager-for-sharepoint.aspx&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1751470255926145608-8367874420471668915?l=mosswat.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mosswat.blogspot.com/feeds/8367874420471668915/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mosswat.blogspot.com/2009/02/update-moss-webconfig.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/8367874420471668915'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/8367874420471668915'/><link rel='alternate' type='text/html' href='http://mosswat.blogspot.com/2009/02/update-moss-webconfig.html' title='Update Moss Web.Config'/><author><name>Michael Assouline</name><uri>http://www.blogger.com/profile/16748056476257373477</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_D1AoXDUOazY/SYc4F_0g6hI/AAAAAAAAAAM/L0FaQYgUKl4/S220/michael.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1751470255926145608.post-5816773148627144444</id><published>2009-02-22T05:51:00.000-08:00</published><updated>2009-02-22T07:18:51.699-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SUFFIX'/><category scheme='http://www.blogger.com/atom/ns#' term='FIELDS'/><category scheme='http://www.blogger.com/atom/ns#' term='DOCUMENT LIBRARY'/><category scheme='http://www.blogger.com/atom/ns#' term='SHAREPOINT'/><category scheme='http://www.blogger.com/atom/ns#' term='MOSS'/><title type='text'>Document library internal fields</title><content type='html'>&lt;span class="Apple-style-span" style="font-size: small;"&gt;Recently i was needed to use OpenXml in Moss (hopefully i will write on this soon), one of the issue i needed to handle was the fact that it will only work of office 2007 files and not on pdf/office 2003/txt files and more.&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;After  a short google seach i found all the relevant suffix (&lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/aa338205.aspx"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;http://msdn.microsoft.com/en-us/library/aa338205.aspx&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; , &lt;/span&gt;&lt;a href="http://office.microsoft.com/en-us/word/HA100069351033.aspx"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;http://office.microsoft.com/en-us/word/HA100069351033.aspx&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;), so all i needed is the file suffix. However, i was very &lt;/span&gt;&lt;span class="Apple-style-span" style="  "&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;surprised &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="  ;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;to &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="  ;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;find out that non of the SPFile properties or the SPListItem properties contains the document suffix (the last one make sense).&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="  ;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Then i remembered that sharepoint document library (as so list) have &lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;hidden/frombase/readonly&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; fields that contains all kind of parameters, like:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="  ;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="  ;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;BaseName &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;- D&lt;/span&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;ocument prefix.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="  ;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;FileLeafRef &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;- P&lt;/span&gt;&lt;span class="Apple-style-span" style="font-style: italic; "&gt;&lt;span class="Apple-style-span" style="font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;refix.Suffix.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="  ;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;EncodedAbsUrl &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;-&lt;/span&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; Full document url.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="  ;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;DocIcon &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;- D&lt;/span&gt;&lt;span class="Apple-style-span" style="font-style: italic; "&gt;&lt;span class="Apple-style-span" style="font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;ocument suffix.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="  ;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Author &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;- C&lt;/span&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;reated by.&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="  ;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Editor &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;- M&lt;/span&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;odified by.&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="  ;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;FileDirRef &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;- D&lt;/span&gt;&lt;span class="Apple-style-span" style="font-style: italic; "&gt;&lt;span class="Apple-style-span" style="font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;irectory id and directory name (seperated &lt;/span&gt;&lt;span class="Apple-style-span" style="  font-style: normal; "&gt;&lt;span class="Apple-style-span" style="  font-style: italic; "&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;by  ;#).&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="  ;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;ContentTypeId &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;- C&lt;/span&gt;&lt;span class="Apple-style-span" style="font-style: italic; "&gt;&lt;span class="Apple-style-span" style="font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;ontent type id.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="  ;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;FileSizeDisplay &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;- F&lt;/span&gt;&lt;span class="Apple-style-span" style="font-style: italic; "&gt;&lt;span class="Apple-style-span" style="font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;ile size.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="  ;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;GUID &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;- F&lt;/span&gt;&lt;span class="Apple-style-span" style="font-style: italic; "&gt;&lt;span class="Apple-style-span" style="font-style: normal; "&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;ile &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;guid&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;So i used the DocIcon field to get the suffix and to check if the document support OpenXml.&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1751470255926145608-5816773148627144444?l=mosswat.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mosswat.blogspot.com/feeds/5816773148627144444/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mosswat.blogspot.com/2009/02/document-library-internal-fields.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/5816773148627144444'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/5816773148627144444'/><link rel='alternate' type='text/html' href='http://mosswat.blogspot.com/2009/02/document-library-internal-fields.html' title='Document library internal fields'/><author><name>Elad Gutman</name><uri>http://www.blogger.com/profile/07870649278230960051</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_No0Z3O8DLWw/SbN_LGGpSNI/AAAAAAAAAAM/jLcqqCc0wlw/S220/%D7%AA%D7%9E%D7%95%D7%A0%D7%94+132.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1751470255926145608.post-8751257141282226126</id><published>2009-02-22T05:01:00.000-08:00</published><updated>2009-03-01T02:08:47.967-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SHAREPOINT'/><category scheme='http://www.blogger.com/atom/ns#' term='ERRORS'/><category scheme='http://www.blogger.com/atom/ns#' term='WEB.CONFIG'/><category scheme='http://www.blogger.com/atom/ns#' term='UNEXPECTED ERROR'/><category scheme='http://www.blogger.com/atom/ns#' term='MOSS'/><title type='text'>Not enough details in error message</title><content type='html'>We all have got the famous error message "An unexpected error has occurred", or a message that was to short like "The file is not exist".&lt;br /&gt;&lt;br /&gt;In most cases it will be very helpful if we know more details, specially when getting "An unexpected error has occurred" then doesn't help us at all.&lt;br /&gt;&lt;br /&gt;So to get more details open the web.config, find the root &lt;span style="font-weight:bold;"&gt;configuration\SharePoint\SafeMode&lt;/span&gt; and change the attribute &lt;span class="Apple-style-span" style="font-weight: bold;"&gt;CallStack&lt;/span&gt; from &lt;span class="Apple-style-span" style="font-style: italic;"&gt;false &lt;/span&gt;to &lt;span class="Apple-style-span" style="font-style: italic;"&gt;true&lt;/span&gt;. Then find &lt;span class="Apple-style-span" style="font-weight: bold;"&gt;configuration\system.web\customErrors &lt;/span&gt;and change the attribute &lt;span class="Apple-style-span" style="font-weight: bold;"&gt;mode &lt;/span&gt;from &lt;span class="Apple-style-span" style="font-style: italic;"&gt;on &lt;/span&gt;to &lt;span class="Apple-style-span" style="font-style: italic;"&gt;off&lt;/span&gt;.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now you will get more details to pinpoint your exception.&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;See also:&lt;a href="http://littletalk.wordpress.com/2008/09/30/more-details-about-an-unexpected-error-has-occurred-in-wss-v3/"&gt; http://littletalk.wordpress.com/2008/09/30/more-details-about-an-unexpected-error-has-occurred-in-wss-v3/&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1751470255926145608-8751257141282226126?l=mosswat.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mosswat.blogspot.com/feeds/8751257141282226126/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mosswat.blogspot.com/2009/02/not-enough-details-in-error-message.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/8751257141282226126'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/8751257141282226126'/><link rel='alternate' type='text/html' href='http://mosswat.blogspot.com/2009/02/not-enough-details-in-error-message.html' title='Not enough details in error message'/><author><name>Elad Gutman</name><uri>http://www.blogger.com/profile/07870649278230960051</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_No0Z3O8DLWw/SbN_LGGpSNI/AAAAAAAAAAM/jLcqqCc0wlw/S220/%D7%AA%D7%9E%D7%95%D7%A0%D7%94+132.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1751470255926145608.post-8750574204948130216</id><published>2009-02-21T12:00:00.000-08:00</published><updated>2009-02-21T13:02:32.383-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SHAREPOINT'/><category scheme='http://www.blogger.com/atom/ns#' term='ERRORS'/><category scheme='http://www.blogger.com/atom/ns#' term='BEST PRACTICES'/><category scheme='http://www.blogger.com/atom/ns#' term='MOSS'/><title type='text'>Operation is not valid due to the current state of the object</title><content type='html'>&lt;span style="font-family:arial;"&gt;It's one of the common errors that we get when we developp with sharepoint object model.&lt;br /&gt;&lt;br /&gt;To resolve this error you can check :&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;1. Application Pool Identity&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;When you use sharepoint object model from WEB SERVICE , you have to check that the identity of it application pool has the required rights to call the MOSS methods. In particular, the right to open site(SPite site = new SPsite).&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;strong&gt;2. Disposing of yours Sharepoint Objects&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Check that you have correctly disposed yours Sharepoint Objects.&lt;br /&gt;(see &lt;/span&gt;&lt;a href="http://msdn2.microsoft.com/en-us/library/aa973248.aspx"&gt;&lt;span style="font-family:arial;"&gt;Best Practices: Using Disposable Windows SharePoint Services Objects&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:arial;"&gt; )&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Specifically, if you writed code like this:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;using (SPSite site = new SPSite(SPContext.Current.Site))&lt;br /&gt;{&lt;br /&gt;using (SPWeb web = site.OpenWeb(site.OpenWeb()))&lt;br /&gt;{&lt;br /&gt;string ItemID = web.Lists["myListName"].Items[0]["myItemID"].ToString();&lt;br /&gt;}&lt;br /&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;It's preferable to modify this code by:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;try&lt;br /&gt;{&lt;br /&gt;SPWeb webContext = null;&lt;br /&gt;SPSecurity.RunWithElevatedPrivileges(delegate()&lt;br /&gt;{&lt;br /&gt;using (SPSite site = new SPSite(webContext.Site.ID))&lt;br /&gt;{&lt;br /&gt;using (SPWeb web = site.OpenWeb(webContext.ID))&lt;br /&gt;{&lt;br /&gt;string ItemID = web.Lists["myListName"].Items[0]["myItemID"].ToString();&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;});&lt;br /&gt;}&lt;br /&gt;catch (Exception ex)&lt;br /&gt;{&lt;br /&gt;}&lt;br /&gt;finally&lt;br /&gt;{&lt;br /&gt;if (webContext != null)&lt;br /&gt;webContext.Dispose();&lt;br /&gt;}&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1751470255926145608-8750574204948130216?l=mosswat.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mosswat.blogspot.com/feeds/8750574204948130216/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mosswat.blogspot.com/2009/02/operation-is-not-valid-due-to-current.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/8750574204948130216'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/8750574204948130216'/><link rel='alternate' type='text/html' href='http://mosswat.blogspot.com/2009/02/operation-is-not-valid-due-to-current.html' title='Operation is not valid due to the current state of the object'/><author><name>Michael Assouline</name><uri>http://www.blogger.com/profile/16748056476257373477</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_D1AoXDUOazY/SYc4F_0g6hI/AAAAAAAAAAM/L0FaQYgUKl4/S220/michael.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1751470255926145608.post-6879452404484144043</id><published>2009-02-18T10:29:00.000-08:00</published><updated>2009-02-18T11:52:23.607-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SHAREPOINT'/><category scheme='http://www.blogger.com/atom/ns#' term='MOSS'/><category scheme='http://www.blogger.com/atom/ns#' term='ICON'/><title type='text'>How to add an PDF icon to MOSS document libraries</title><content type='html'>&lt;span style="font-family:arial;"&gt;To specify the .gif file that you want to use for the icon that represents PDF documents in yours Document librairies, follows theses steps:&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:arial;"&gt;&lt;br /&gt;1. Copy the .gif file that you want to use for the icon to the following folder on the server:&lt;br /&gt;Drive:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\Template\Images&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;2. Edit the Docicon.xml file (located on \Program Files\Common Files\Microsoft Shared\Web server extensions\60\Template\Xml or \Program Files\Common Files\Microsoft Shared\Web server extensions\12\Template\Xml ) and add the following line in the &lt; ByExtension &gt; section &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt; key="pdf" value="MyPicture.gif"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;*replace "MyPicture.gif" by the name of your picture&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:arial;"&gt;&lt;br /&gt;3. IISRESET&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Arial;"&gt;Reference : &lt;a href="http://support.microsoft.com/kb/837849"&gt;http://support.microsoft.com/kb/837849&lt;/a&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1751470255926145608-6879452404484144043?l=mosswat.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mosswat.blogspot.com/feeds/6879452404484144043/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mosswat.blogspot.com/2009/02/how-to-add-pdf-icon-to-moss-document.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/6879452404484144043'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/6879452404484144043'/><link rel='alternate' type='text/html' href='http://mosswat.blogspot.com/2009/02/how-to-add-pdf-icon-to-moss-document.html' title='How to add an PDF icon to MOSS document libraries'/><author><name>Michael Assouline</name><uri>http://www.blogger.com/profile/16748056476257373477</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_D1AoXDUOazY/SYc4F_0g6hI/AAAAAAAAAAM/L0FaQYgUKl4/S220/michael.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1751470255926145608.post-2118321879266779554</id><published>2009-02-16T09:46:00.000-08:00</published><updated>2009-02-16T10:00:48.186-08:00</updated><title type='text'>CreatePage doesn't work</title><content type='html'>A strange behaviour we recently bumped into was that the "CreatePage" action redirect a user to the "Access Denide" page eventhough this user is a member of the site contributors.&lt;br /&gt;&lt;br /&gt;In order to solve this situation follow these steps:&lt;br /&gt;&lt;br /&gt;1.      Go to Site Actions -&gt; Site Settings -&gt;Modify all site settings&lt;br /&gt;2.      Go to Galleries -&gt; Master pages and page layouts&lt;br /&gt;3.      From the list toolbar, select Settings -&gt; Document library settings&lt;br /&gt;4.      Select permissions for this document library&lt;br /&gt;5.      Add 'Restricted Read' access to the required groups&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1751470255926145608-2118321879266779554?l=mosswat.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mosswat.blogspot.com/feeds/2118321879266779554/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mosswat.blogspot.com/2009/02/createpage-doesnt-work.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/2118321879266779554'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/2118321879266779554'/><link rel='alternate' type='text/html' href='http://mosswat.blogspot.com/2009/02/createpage-doesnt-work.html' title='CreatePage doesn&apos;t work'/><author><name>Liron Leybovich</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://3.bp.blogspot.com/_wHSnRDvg3jI/SZghW6F1_0I/AAAAAAAAAAM/Wmn-LSbAXNI/S220/liron2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1751470255926145608.post-5568897367730235160</id><published>2009-02-16T03:58:00.000-08:00</published><updated>2009-02-16T04:39:54.902-08:00</updated><title type='text'>How to add SharePoint aspx template to a document library?</title><content type='html'>&lt;p style="font-size:12px; font-family:Tahoma"&gt;&lt;br /&gt;SharePoint allows us to upload to a document library an aspx and html custom pages and view them as SharePoint page.&lt;br /&gt;However, when we tried to upload a custom page with SharePoint master page (like~/_layouts/application.master) or code it didn't worked, and we got a "Configuration Error" page.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="font-size:12px; font-family:Tahoma"&gt;The solution:&lt;br /&gt;&lt;/p&gt;&lt;p style="font-size:12px; font-family:Tahoma"&gt;&lt;br /&gt;1. Add the following to the custom page:&lt;br /&gt;&lt;/p&gt;&lt;p style="font-size:12px; font-family:Tahoma"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&amp;lt;%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"&lt;br /&gt;Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral,&lt;br /&gt;PublicKeyToken=71e9bce111e9429c" %&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;%@ Register Tagprefix="WebPartPages"&lt;br /&gt;Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint,&lt;br /&gt;Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;%@&lt;br /&gt;Register Tagprefix="OSRVWC" Namespace="Microsoft.Office.Server.WebControls"&lt;br /&gt;Assembly="Microsoft.Office.Server, Version=12.0.0.0, Culture=neutral,&lt;br /&gt;PublicKeyToken=71e9bce111e9429c" %&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;%@ Register Tagprefix="SPSWC" Namespace="Microsoft.SharePoint.Portal.WebControls"&lt;br /&gt;Assembly="Microsoft.SharePoint.Portal, Version=12.0.0.0, Culture=neutral,&lt;br /&gt;PublicKeyToken=71e9bce111e9429c" %&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;%@ Register Tagprefix="SEARCHWC"&lt;br /&gt;Namespace="Microsoft.Office.Server.Search.WebControls" Assembly="Microsoft.Office.Server.Search,&lt;br /&gt;Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;%@&lt;br /&gt;Register Tagprefix="PublishingWebControls" Namespace="Microsoft.SharePoint.Publishing.WebControls"&lt;br /&gt;Assembly="Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral,&lt;br /&gt;PublicKeyToken=71e9bce111e9429c" %&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p style="font-size:12px; font-family:Tahoma"&gt;&lt;br /&gt;2. Then open the web.config and replace the tab &lt;span&gt;&amp;lt;PageParserPath/&amp;gt; &lt;/span&gt; with the following path:&lt;/pageparserpath&gt;&lt;/p&gt;&lt;p style="font-size:12px; font-family:Tahoma"&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&amp;lt;PageParserPath&lt;br /&gt;VirtualPath="/sites/*" IncludeSubFolders="true" CompilationMode="Always"&lt;br /&gt;AllowServerSideScript="true" /&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:12px; font-family:Tahoma"&gt;&lt;br /&gt;See also : &lt;a style="font-size:12px" href="http://www.bluedoglimited.com/SharePointThoughts/ViewPost.aspx?ID=242"&gt;http://www.bluedoglimited.com/SharePointThoughts/ViewPost.aspx?ID=242&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1751470255926145608-5568897367730235160?l=mosswat.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mosswat.blogspot.com/feeds/5568897367730235160/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mosswat.blogspot.com/2009/02/how-to-add-sharepoint-aspx-template-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/5568897367730235160'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/5568897367730235160'/><link rel='alternate' type='text/html' href='http://mosswat.blogspot.com/2009/02/how-to-add-sharepoint-aspx-template-to.html' title='How to add SharePoint aspx template to a document library?'/><author><name>Elad Gutman</name><uri>http://www.blogger.com/profile/07870649278230960051</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_No0Z3O8DLWw/SbN_LGGpSNI/AAAAAAAAAAM/jLcqqCc0wlw/S220/%D7%AA%D7%9E%D7%95%D7%A0%D7%94+132.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1751470255926145608.post-1648348708432137616</id><published>2009-02-15T15:22:00.000-08:00</published><updated>2009-02-18T10:48:16.657-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='LISTS'/><category scheme='http://www.blogger.com/atom/ns#' term='SHAREPOINT'/><category scheme='http://www.blogger.com/atom/ns#' term='MOSS'/><title type='text'>Working with large lists in Office SharePoint Server 2007</title><content type='html'>Microsoft published a very interresting white paper about working with large lists in moss:&lt;br /&gt;&lt;a href="http://technet.microsoft.com/en-us/library/cc262813.aspx"&gt;http://technet.microsoft.com/en-us/library/cc262813.aspx&lt;/a&gt;&lt;br /&gt;This white paper compare performance of differents methods that are used when working with SPList:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;SPList with For/Each &lt;/li&gt;&lt;li&gt;SPList with SPQuery &lt;/li&gt;&lt;li&gt;SPList with DataTable&lt;/li&gt;&lt;li&gt;SPListItems with DataTable &lt;/li&gt;&lt;li&gt;Lists Web service&lt;/li&gt;&lt;/ul&gt;&lt;strong&gt;The results show that using SPQuery with indexed columns are recommended to improve performance of retriewing datas from large Sharepoint List.&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1751470255926145608-1648348708432137616?l=mosswat.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mosswat.blogspot.com/feeds/1648348708432137616/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mosswat.blogspot.com/2009/02/working-with-large-lists-in-office.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/1648348708432137616'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/1648348708432137616'/><link rel='alternate' type='text/html' href='http://mosswat.blogspot.com/2009/02/working-with-large-lists-in-office.html' title='Working with large lists in Office SharePoint Server 2007'/><author><name>Michael Assouline</name><uri>http://www.blogger.com/profile/16748056476257373477</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_D1AoXDUOazY/SYc4F_0g6hI/AAAAAAAAAAM/L0FaQYgUKl4/S220/michael.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1751470255926145608.post-6131707994631425012</id><published>2009-02-15T12:26:00.000-08:00</published><updated>2009-02-18T10:49:19.275-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WEBSERVICES'/><category scheme='http://www.blogger.com/atom/ns#' term='SHAREPOINT'/><category scheme='http://www.blogger.com/atom/ns#' term='MOSS'/><title type='text'>Unauthorized (401.1) Exception when calling Sharepoint Web Services</title><content type='html'>We get this error when we work with moss farm deployment scenario that implements load balancing.&lt;br /&gt;In fact, it's a security fix in adress resolution mechanism that prevent a machine to resolve the loopback address from accepting a connection unless that machine name matches the NETBIOS name&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;One solution is to use the server name instead of the load balanced IP.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Another solution is to modify configuration entries on all servers of our farm as described below&lt;/strong&gt;:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Add the DisableLoopbackCheck registry entry discussed in this &lt;a href="http://support.microsoft.com/default.aspx?scid=kb;EN-US;896861" target="_blank"&gt;Microsoft KB article&lt;/a&gt;.&lt;br /&gt;Note: you will need to reboot your server before the DisableLoopbackCheck takes effect.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Be sure to add your load balanced host name for your web farm to the Hosts file on each front end web server. Use the loop-back IP address (127.0.0.1).&lt;br /&gt;This will ensure that each web server looks at itself to access the web services preventing any trips back out to the load-balancer - and possibly calling the web service another web server in the farm. &lt;/li&gt;&lt;/ul&gt;Mark Wagner posted on his blog an article that describes this issue : &lt;a href="http://www.crsw.com/mark/default.aspx"&gt;http://www.crsw.com/mark/default.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;See also &lt;a href="http://support.microsoft.com/default.aspx?scid=kb;EN-US;896861" target="_blank"&gt;Microsoft KB article&lt;/a&gt; :&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;EN-US;896861"&gt;http://support.microsoft.com/default.aspx?scid=kb;EN-US;896861&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1751470255926145608-6131707994631425012?l=mosswat.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mosswat.blogspot.com/feeds/6131707994631425012/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mosswat.blogspot.com/2009/02/unauthorized-4011-exception-when.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/6131707994631425012'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/6131707994631425012'/><link rel='alternate' type='text/html' href='http://mosswat.blogspot.com/2009/02/unauthorized-4011-exception-when.html' title='Unauthorized (401.1) Exception when calling Sharepoint Web Services'/><author><name>Michael Assouline</name><uri>http://www.blogger.com/profile/16748056476257373477</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_D1AoXDUOazY/SYc4F_0g6hI/AAAAAAAAAAM/L0FaQYgUKl4/S220/michael.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1751470255926145608.post-3769408668989196670</id><published>2009-02-15T12:08:00.000-08:00</published><updated>2009-02-18T10:49:48.248-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SHAREPOINT'/><category scheme='http://www.blogger.com/atom/ns#' term='BEST PRACTICES'/><category scheme='http://www.blogger.com/atom/ns#' term='MOSS'/><title type='text'>SharePoint Dispose Checker Tool (SPDisposeCheck)</title><content type='html'>SharePoint Dispose Checker Tool (SPDisposeCheck) is finally available!&lt;br /&gt;You can download it from &lt;a href="http://code.msdn.microsoft.com/SPDisposeCheck" modo="false"&gt;http://code.msdn.microsoft.com/SPDisposeCheck&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;"SPDisposeCheck is a tool to help you to check your assemblies that use the SharePoint API so that you can build better code. It provides assistance in correctly disposing of certain SharePoint objects to help you follow published best practice. This tool may not show all memory leaks in your code. Further investigation is advised if you continue to experience issues." (Paul Andrew)&lt;br /&gt;&lt;br /&gt;For resuming, this tool allows moss developpers to check that they correctly use the recommended best practices, in particular:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://msdn2.microsoft.com/en-us/library/aa973248.aspx"&gt;Best Practices: Using Disposable Windows SharePoint Services Objects&lt;/a&gt;&lt;br /&gt;&lt;a href="http://msdn2.microsoft.com/en-us/library/bb687949.aspx"&gt;Best Practices: Common Coding Issues When Using the SharePoint Object Model&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1751470255926145608-3769408668989196670?l=mosswat.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mosswat.blogspot.com/feeds/3769408668989196670/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mosswat.blogspot.com/2009/02/sharepoint-dispose-checker-tool.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/3769408668989196670'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1751470255926145608/posts/default/3769408668989196670'/><link rel='alternate' type='text/html' href='http://mosswat.blogspot.com/2009/02/sharepoint-dispose-checker-tool.html' title='SharePoint Dispose Checker Tool (SPDisposeCheck)'/><author><name>Michael Assouline</name><uri>http://www.blogger.com/profile/16748056476257373477</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://1.bp.blogspot.com/_D1AoXDUOazY/SYc4F_0g6hI/AAAAAAAAAAM/L0FaQYgUKl4/S220/michael.JPG'/></author><thr:total>0</thr:total></entry></feed>
