<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://www.sharepointblogs.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Robert J Wheeler</title><link>http://www.sharepointblogs.com/wheeler/default.aspx</link><description>...a blog to remember...</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP2 (Build: 20611.960)</generator><item><title>SharePoint Backup Error</title><link>http://www.sharepointblogs.com/wheeler/archive/2007/10/11/sharepoint-backup-error-access-to-the-path-x-is-denied.aspx</link><pubDate>Thu, 11 Oct 2007 10:55:00 GMT</pubDate><guid isPermaLink="false">1f6a1193-f4bb-4480-a5ae-b538d8b20f46:7173</guid><dc:creator>Robert J Wheeler</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.sharepointblogs.com/wheeler/rsscomments.aspx?PostID=7173</wfw:commentRss><comments>http://www.sharepointblogs.com/wheeler/archive/2007/10/11/sharepoint-backup-error-access-to-the-path-x-is-denied.aspx#comments</comments><description>&lt;div&gt;&lt;font face="Tahoma" size="2"&gt;Recently a colleague had a client who had errors performing backups and restores in Central Administration.&amp;nbsp; The jobs showed as failed, the timer would seemingly hang, and you could not delete the job.&amp;nbsp; He said the account used was a local admin, was an admin in SQL, et cetera.&amp;nbsp; Although an account may be a local administrator, that does not mean the account is not affected by policies.&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;font face="Tahoma" size="2"&gt;Here is what I suggested that they do with the server administrator.&amp;nbsp; (I like to let them run the commands with me, since they generally will insist that it should work, and they can see potentially where the policy needs to be changed).&lt;br /&gt;&lt;br /&gt;To test if the user has access to perform a backup, use the account&amp;nbsp;SharePoint has&amp;nbsp;and run the stsadm utility for a backup.&lt;br /&gt;&lt;/div&gt;&lt;/font&gt;
&lt;div&gt;
&lt;div&gt;&lt;font face="Tahoma" size="2"&gt;If you see a message like this:&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face="times new roman,times"&gt;C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN&amp;gt;stsadm -o backup -backupmethod full -directory &amp;quot;&lt;/font&gt;&lt;a href="https://owa.uniqueworld.net/OWA/redir.aspx?URL=file%3a%2f%2fvanilla%2fBackup" target="_blank"&gt;&lt;font face="times new roman,times" color="#0000ff"&gt;\\vanilla\Backup&lt;/font&gt;&lt;/a&gt;&lt;font face="times new roman,times"&gt;&amp;quot;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face="times new roman,times"&gt;Access to the path &amp;#39;\\vanilla\Backup\spbrtoc.xml&amp;#39; is denied.&lt;br /&gt;&lt;/font&gt;&lt;br /&gt;&lt;font face="times new roman,times"&gt;C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face="Tahoma" size="2"&gt;then you are failing with the permission to access the UNC path.&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face="Tahoma" size="2"&gt;You should&amp;nbsp;get the service account that was used to connect to the database in the original instance (or one with little policy limitations).&amp;nbsp; L&lt;/font&gt;&lt;font face="Tahoma" size="2"&gt;og onto the server&amp;nbsp;using this account.&amp;nbsp; The account should be able to access the database server from the SharePoint server running the sts&amp;nbsp;commands, and be able to do the reverse; go from SQL to the SharePoint server.&amp;nbsp; This will give the stsadm utility the service account to&amp;nbsp;use with the connection object.&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face="Tahoma" size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;font face="Tahoma" size="2"&gt;If you can perform the backup procedure of a site you will have found your problem.&amp;nbsp; To fix you will need to check the policies for the account that is registered with SharePoint.&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;font face="Tahoma" size="2"&gt;If you can execute the stsadm utility and begin the process of backup, then watch the commands that scroll through the window - there will be some SQL statements for the execution of the backup.&amp;nbsp; You can analyse these further to see which part of the connection is failing.&amp;nbsp; And read the log files.&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face="Tahoma" size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;
			&lt;hr&gt;&lt;span style="font-size:10pt;"&gt;Posted on &lt;a href="http://www.sharepointblogs.com/"&gt;SharePoint Blogs&lt;/a&gt;&lt;/span&gt;
		  &lt;img src="http://www.sharepointblogs.com/aggbug.aspx?PostID=7173" width="1" height="1"&gt;</description><category domain="http://www.sharepointblogs.com/wheeler/archive/tags/user+account/default.aspx">user account</category><category domain="http://www.sharepointblogs.com/wheeler/archive/tags/access/default.aspx">access</category><category domain="http://www.sharepointblogs.com/wheeler/archive/tags/backup/default.aspx">backup</category></item><item><title>Dynamic CAML Query</title><link>http://www.sharepointblogs.com/wheeler/archive/2007/08/28/dynamic-caml-query.aspx</link><pubDate>Tue, 28 Aug 2007 05:04:00 GMT</pubDate><guid isPermaLink="false">1f6a1193-f4bb-4480-a5ae-b538d8b20f46:4872</guid><dc:creator>Robert J Wheeler</dc:creator><slash:comments>4</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.sharepointblogs.com/wheeler/rsscomments.aspx?PostID=4872</wfw:commentRss><comments>http://www.sharepointblogs.com/wheeler/archive/2007/08/28/dynamic-caml-query.aspx#comments</comments><description>&lt;p class="NoSpacing" style="MARGIN:0cm 0cm 0pt;"&gt;&lt;font face="Calibri" size="3"&gt;Occasionally the need arises to build dynamic CAML queries in order to get items from a SharePoint list.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;This was the case recently while delivering a solution for a customer.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;In my solution I used a combination of controls including ASP .NET and SharePoint controls.&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;
&lt;p class="NoSpacing" style="MARGIN:0cm 0cm 0pt;"&gt;&lt;font face="Calibri" size="3"&gt;In my solution I created a form which posted to the server the values which were to be used for the query.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;For the solution I decided to use a string builder function and a string array to store the values, and then I looped through the results and used those which contained values to build the CAML query.&lt;/font&gt;&lt;/p&gt;
&lt;p class="NoSpacing" style="MARGIN:0cm 0cm 0pt;"&gt;&lt;font face="Calibri" size="3"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="NoSpacing" style="MARGIN:0cm 0cm 0pt;"&gt;&lt;font face="Calibri" size="3"&gt;&lt;a class="" title="Dynamic CAML Query" href="http://www.sharepointblogs.com/wheeler/pages/dynamic-caml-query.aspx"&gt;Read the article&lt;/a&gt;&lt;/font&gt;&lt;/p&gt;
			&lt;hr&gt;&lt;span style="font-size:10pt;"&gt;Posted on &lt;a href="http://www.sharepointblogs.com/"&gt;SharePoint Blogs&lt;/a&gt;&lt;/span&gt;
		  &lt;img src="http://www.sharepointblogs.com/aggbug.aspx?PostID=4872" width="1" height="1"&gt;</description><category domain="http://www.sharepointblogs.com/wheeler/archive/tags/lists/default.aspx">lists</category><category domain="http://www.sharepointblogs.com/wheeler/archive/tags/CAML/default.aspx">CAML</category><category domain="http://www.sharepointblogs.com/wheeler/archive/tags/query/default.aspx">query</category><category domain="http://www.sharepointblogs.com/wheeler/archive/tags/SharePoint/default.aspx">SharePoint</category></item><item><title>How To Access the Controls In A Master Page</title><link>http://www.sharepointblogs.com/wheeler/archive/2007/08/23/how-to-access-the-controls-in-a-master-page.aspx</link><pubDate>Wed, 22 Aug 2007 23:12:00 GMT</pubDate><guid isPermaLink="false">1f6a1193-f4bb-4480-a5ae-b538d8b20f46:4669</guid><dc:creator>Robert J Wheeler</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.sharepointblogs.com/wheeler/rsscomments.aspx?PostID=4669</wfw:commentRss><comments>http://www.sharepointblogs.com/wheeler/archive/2007/08/23/how-to-access-the-controls-in-a-master-page.aspx#comments</comments><description>&lt;p&gt;Ever wonder how to access the placeholders in a Sharepoint&amp;nbsp;masterpage and add new controls programmatically?&amp;nbsp; Let&amp;#39;s assume you are adding a Label control with some text to display.&amp;nbsp; You could create the control and then call the master page from within your ASPX page.&amp;nbsp; When SharePoint renders the page you can programmatically add the control.&amp;nbsp; To catch the error if one is generated, use the InnerException.Message to see what it is since SharePoint will return a very generic message.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;Label&lt;/font&gt; label = new &lt;font color="#0000cc"&gt;Label&lt;/font&gt;();&lt;br /&gt;label.Text = &amp;quot;Something to display&amp;quot;;&lt;br /&gt;&lt;br /&gt;&lt;font color="#0000ff"&gt;try&lt;/font&gt;&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.Master.FindControl(&amp;quot;&lt;font color="#330000"&gt;PlaceHolderMain&lt;/font&gt;&amp;quot;).Controls.Add(label);&lt;br /&gt;}&lt;br /&gt;&lt;font color="#0000ff"&gt;catch&lt;/font&gt;&lt;font color="#000000"&gt; (&lt;font color="#006600"&gt;Exception&lt;/font&gt; ex)&lt;/font&gt;&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Response.Write(ex.InnerException.Message);&lt;br /&gt;}&lt;/p&gt;&lt;/blockquote&gt;
			&lt;hr&gt;&lt;span style="font-size:10pt;"&gt;Posted on &lt;a href="http://www.sharepointblogs.com/"&gt;SharePoint Blogs&lt;/a&gt;&lt;/span&gt;
		  &lt;img src="http://www.sharepointblogs.com/aggbug.aspx?PostID=4669" width="1" height="1"&gt;</description><category domain="http://www.sharepointblogs.com/wheeler/archive/tags/placeholder/default.aspx">placeholder</category><category domain="http://www.sharepointblogs.com/wheeler/archive/tags/inline+code/default.aspx">inline code</category><category domain="http://www.sharepointblogs.com/wheeler/archive/tags/masterpage/default.aspx">masterpage</category><category domain="http://www.sharepointblogs.com/wheeler/archive/tags/programmatically+add+controls/default.aspx">programmatically add controls</category></item><item><title>Create Wizards in SharePoint</title><link>http://www.sharepointblogs.com/wheeler/archive/2007/08/23/create-wizards-in-sharepoint.aspx</link><pubDate>Wed, 22 Aug 2007 23:01:00 GMT</pubDate><guid isPermaLink="false">1f6a1193-f4bb-4480-a5ae-b538d8b20f46:4667</guid><dc:creator>Robert J Wheeler</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.sharepointblogs.com/wheeler/rsscomments.aspx?PostID=4667</wfw:commentRss><comments>http://www.sharepointblogs.com/wheeler/archive/2007/08/23/create-wizards-in-sharepoint.aspx#comments</comments><description>&lt;p&gt;Recently I developed a wizard using SharePoint lists.&amp;nbsp; The challange was to use only WSS 3.0, no compiled code, and it needed to be designed so that users could manage the questions themselves.&amp;nbsp; The extra limitations were that the solution had to be provided using only the basic templates (Surveys were no available) and it needed to be generic enough to cover a wide range of questions.&lt;br /&gt;&lt;br /&gt;To see how this was accomplished, and in a very short time,&amp;nbsp;read my article&amp;nbsp;&lt;a href="http://www.sharepointblogs.com/wheeler/pages/create-wizard-functionality-with-sharepoint-lists.aspx"&gt;Create Wizard Functionality With SharePoint Lists&lt;/a&gt;&lt;/p&gt;
			&lt;hr&gt;&lt;span style="font-size:10pt;"&gt;Posted on &lt;a href="http://www.sharepointblogs.com/"&gt;SharePoint Blogs&lt;/a&gt;&lt;/span&gt;
		  &lt;img src="http://www.sharepointblogs.com/aggbug.aspx?PostID=4667" width="1" height="1"&gt;</description><category domain="http://www.sharepointblogs.com/wheeler/archive/tags/custom+masterpage/default.aspx">custom masterpage</category><category domain="http://www.sharepointblogs.com/wheeler/archive/tags/Wizard/default.aspx">Wizard</category><category domain="http://www.sharepointblogs.com/wheeler/archive/tags/inline+code/default.aspx">inline code</category><category domain="http://www.sharepointblogs.com/wheeler/archive/tags/lists/default.aspx">lists</category></item><item><title>Adding file shares to Enterprise Search</title><link>http://www.sharepointblogs.com/wheeler/archive/2007/08/03/adding-file-shares-to-enterprise-search.aspx</link><pubDate>Fri, 03 Aug 2007 03:45:00 GMT</pubDate><guid isPermaLink="false">1f6a1193-f4bb-4480-a5ae-b538d8b20f46:3863</guid><dc:creator>Robert J Wheeler</dc:creator><slash:comments>13</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.sharepointblogs.com/wheeler/rsscomments.aspx?PostID=3863</wfw:commentRss><comments>http://www.sharepointblogs.com/wheeler/archive/2007/08/03/adding-file-shares-to-enterprise-search.aspx#comments</comments><description>&lt;p&gt;&lt;font face="arial,helvetica,sans-serif"&gt;Adding file shares to search within MOSS is relatively easy.&amp;nbsp; The results of searching within the scope of the file share will display the links as &amp;#39;file://...&amp;#39; and will display the first few lines of the content.&lt;/font&gt;&lt;/p&gt;&lt;font face="arial,helvetica,sans-serif"&gt;&lt;/font&gt;&lt;font face="arial,helvetica,sans-serif"&gt;For this example, on the SharePoint Server, create a shared folder: i.e. C:\Shared =&amp;gt; &lt;/font&gt;&lt;a&gt;&lt;font face="arial,helvetica,sans-serif" color="#0000ff"&gt;\\[server]\Shared&lt;/font&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;font face="arial,helvetica,sans-serif"&gt;Open the SharePoint Central Administration and navigate to the Shared Services where the index will be created.&amp;nbsp; Click on the Search Settings link under the Search section.&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;font face="arial,helvetica,sans-serif"&gt;&lt;/font&gt;&lt;font face="arial,helvetica,sans-serif"&gt;We want to add the shared drive as a content source but we do not want to add it more than once.&amp;nbsp; When satified that the source is unique and can be access for crawling, click the link next to Content Sources.&amp;nbsp; This will get us into the Manage Content Sources screen where we will add a new content source.&amp;nbsp; Click New Content Source from the menu to add the source.&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;font face="arial,helvetica,sans-serif"&gt;&lt;/font&gt;&lt;font face="arial,helvetica,sans-serif"&gt;Give the source a name: e.g. Shared Drive Content and then select File Shares from the options below.&amp;nbsp; Enter the start address for the content which should be the one that was created earlier: i.e. &lt;/font&gt;&lt;a&gt;&lt;font face="arial,helvetica,sans-serif" color="#0000ff"&gt;\\[server]\Shared&lt;/font&gt;&lt;/a&gt;&lt;font face="arial,helvetica,sans-serif"&gt;.&amp;nbsp; Choose whether or not to crawl sub-folders or just the share itself.&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;font face="arial,helvetica,sans-serif"&gt;&lt;/font&gt;&lt;font face="arial,helvetica,sans-serif"&gt;When finished, click OK which will take you back to the ‘Content Sources’ page.&amp;nbsp; Click on the content source created to show the context menu and select &amp;quot;Start Full Crawl&amp;quot;.&amp;nbsp; This will begin the process of indexing the items on the shared drive.&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;font face="arial,helvetica,sans-serif"&gt;&lt;/font&gt;&lt;font face="arial,helvetica,sans-serif"&gt;Next we will add a scope which will use the content source created above. Back on the Search Settings page, scroll down to Scopes and click the link next to the item &amp;#39;Scopes&amp;#39;.&amp;nbsp; You will find the content sources and the number of files created next to them.&amp;nbsp; Click &amp;#39;New Scope&amp;#39; and enter a Title for this.&amp;nbsp; Click Okay to save.&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;font face="arial,helvetica,sans-serif"&gt;Back on the View Scopes page you will see the scope that was just added with a link to &amp;#39;Add Rules&amp;#39;.&amp;nbsp; Click this link to add the content source.&amp;nbsp; On the Add Scope&amp;nbsp;Rules page select Content Source, and select the source created above.&amp;nbsp; Click OK to save.&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;font face="arial,helvetica,sans-serif"&gt;&lt;/font&gt;&lt;font face="arial,helvetica,sans-serif"&gt;Navigate back to the Search Settings page and scroll down to Scopes again.&amp;nbsp; Click &amp;#39;Start Update Now&amp;#39; which will update the scopes that were added.&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;font face="arial,helvetica,sans-serif"&gt;Navigate to the site that will use the new scope and click Site Settings -&amp;gt; Manage All Settings -&amp;gt; Search Scopes.&amp;nbsp; Create or select the group that will use the scope created.&amp;nbsp; You will see the list of scopes included in the group, and all scopes that are available to use, and the order of preference.&amp;nbsp; Select the scope created and click OK.&lt;/font&gt;&lt;font face="arial,helvetica,sans-serif"&gt;At this point the scope is added and the drop-down list next to the search box will display the name.&amp;nbsp; Select this scope and then search for the items.&lt;/font&gt; 
&lt;p&gt;&lt;font face="arial,helvetica,sans-serif"&gt;Notice that the results are returned like other search results with a hyperlink pointing the files.&amp;nbsp; This is all well and useful except what about security on the file share?&amp;nbsp; What about results that we do not want people without access rights to see?&amp;nbsp; This will be explained in the next part &amp;#39;Using Folder Access Permissions with Shared Drive Indexes in MOSS&amp;#39;.&lt;/font&gt;&lt;/p&gt;&lt;font face="arial,helvetica,sans-serif"&gt;&amp;nbsp;&lt;/font&gt;
			&lt;hr&gt;&lt;span style="font-size:10pt;"&gt;Posted on &lt;a href="http://www.sharepointblogs.com/"&gt;SharePoint Blogs&lt;/a&gt;&lt;/span&gt;
		  &lt;img src="http://www.sharepointblogs.com/aggbug.aspx?PostID=3863" width="1" height="1"&gt;</description><category domain="http://www.sharepointblogs.com/wheeler/archive/tags/Indexing/default.aspx">Indexing</category><category domain="http://www.sharepointblogs.com/wheeler/archive/tags/Shared+Drive/default.aspx">Shared Drive</category></item></channel></rss>