<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Gabe Hilado&#039;s SharePoint &#38; ASP.NET Blog &#187; STSADM</title>
	<atom:link href="http://spdeveloper.net/tag/stsadm/feed/" rel="self" type="application/rss+xml" />
	<link>http://spdeveloper.net</link>
	<description>Microsoft, SharePoint, ASP.NET, Software Solutions</description>
	<lastBuildDate>Thu, 29 Sep 2011 15:13:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Internal 500 Error When Changing the URL to a Badly-Formed Value</title>
		<link>http://spdeveloper.net/2010/06/internal-500-error-when-changing-the-url-to-a-badly-formed-value/</link>
		<comments>http://spdeveloper.net/2010/06/internal-500-error-when-changing-the-url-to-a-badly-formed-value/#comments</comments>
		<pubDate>Thu, 24 Jun 2010 18:30:44 +0000</pubDate>
		<dc:creator>Gabe Hilado</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[Content Management Systems]]></category>
		<category><![CDATA[STSADM]]></category>
		<category><![CDATA[WSS 3.0]]></category>

		<guid isPermaLink="false">http://spdeveloper.net/?p=349</guid>
		<description><![CDATA[Interesting issue we had to troubleshoot today. This issue is related to SharePoint 2007.  Say you have a sub-site in a SharePoint site collection (let&#8217;s call it &#8220;Subsite A&#8221;) and the user/admin changes the URL of the site to something malformed, what happens? We start &#8220;Subsite A&#8221; like the following: Then, we change the URL [...]]]></description>
			<content:encoded><![CDATA[<p>Interesting issue we had to troubleshoot today. This issue is related to SharePoint 2007.  Say you have a sub-site in a SharePoint site collection (let&#8217;s call it &#8220;Subsite A&#8221;) and the user/admin changes the URL of the site to something malformed, what happens?</p>
<p>We start &#8220;Subsite A&#8221; like the following:</p>
<p><img class=" alignnone" title="Sample SharePoint Web Site" src="http://spdeveloper.net/wp-content/uploads/2010/06/062410_1829_Internal5001.png" alt="" width="628" height="393" /></p>
<p>Then, we <strong>change the URL into something malformed</strong> (deliberately for this exercise). See the Web Site Address field below? We&#8217;re purposely putting in a bad value (the end-user accidentally did it in the real-world scenario).</p>
<p><img class=" alignnone" title="Changing the Web Site URL with Badly-Formed Value" src="http://spdeveloper.net/wp-content/uploads/2010/06/062410_1829_Internal5002.png" alt="" width="628" height="416" /></p>
<p>After you click the <em>Save</em> button on the <em>Title, Description, and Icon</em> Settings Page, you get the following error on the browser:</p>
<p><strong><em>This error (HTTP 500 Internal Server Error) means that the website you are visiting had a server problem which prevented the webpage from displaying.<br />
</em></strong></p>
<p>Trying to access the site yields HTTP 500 error:</p>
<p><img class=" alignnone" title="Internal 500 error when you try to access the SharePoint site" src="http://spdeveloper.net/wp-content/uploads/2010/06/062410_1829_Internal5003.png" alt="" width="628" height="408" /></p>
<p>You think maybe you can rename using SharePoint Designer. But SP Designer throws you an error message instead:</p>
<p><img class=" alignnone" title="Server error: The version of the Windows SharePoint Services running on the server is more recent than the version of the SharePoint Designer you are using. You need a more recent version of the SharePoint Designer." src="http://spdeveloper.net/wp-content/uploads/2010/06/062410_1829_Internal5004.png" alt="" width="628" height="363" /></p>
<p><strong><em>Server error: The version of the Windows SharePoint Services running on the server is more recent than the version of the SharePoint Designer you are using. You need a more recent version of the SharePoint Designer.</em></strong></p>
<p>But the SharePoint Designer error message is misleading&#8211;the SharePoint site is MOSS 2007. It&#8217;s the bad URL causing this.</p>
<p>You can fix this by using <strong>STSADM renameweb</strong> command. In the screenshot below, I rename the badly-formed URL to its original URL using <strong>STSADM renameWeb</strong>:</p>
<p><img src="http://spdeveloper.net/wp-content/uploads/2010/06/062410_1829_Internal5005.png" alt="" /></p>
<p>The site owner accidentally put in a bad URL and that is why we&#8217;re using STSADM to fix it. It&#8217;s hard to mess-up the site-collection URL. But if you need to change the URL of a site-collection, you can use <strong>STSADM renamesite</strong>.</p>
<p>For more details on how to use these commands, visit:</p>
<ul>
<li><a href="http://support.microsoft.com/kb/939535">How to use the new &#8220;renamesite&#8221; operation to change the URL of a host-named site collection in Windows SharePoint Services 3.0.</a></li>
<li><a href="http://technet.microsoft.com/en-us/library/cc287716(office.12).aspx">Renameweb Stsadm operation (Windows SharePoint Services)</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://spdeveloper.net/2010/06/internal-500-error-when-changing-the-url-to-a-badly-formed-value/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SharePoint &#8220;Developers&#8221; and &#8220;Administrators&#8221;</title>
		<link>http://spdeveloper.net/2010/04/sharepoint-developers-and-administrators/</link>
		<comments>http://spdeveloper.net/2010/04/sharepoint-developers-and-administrators/#comments</comments>
		<pubDate>Fri, 02 Apr 2010 02:25:11 +0000</pubDate>
		<dc:creator>Gabe Hilado</dc:creator>
				<category><![CDATA[Career]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Administrators]]></category>
		<category><![CDATA[Business]]></category>
		<category><![CDATA[Developers]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[SharePoint Installation]]></category>
		<category><![CDATA[STSADM]]></category>
		<category><![CDATA[Web Parts]]></category>
		<category><![CDATA[WSP]]></category>

		<guid isPermaLink="false">http://spdeveloper.net/?p=208</guid>
		<description><![CDATA[I was viewing my blog today and noticed the tag cloud on my sidebar. The most prominent tags are &#8220;SharePoint&#8221;, &#8220;Developers&#8221;, and &#8220;Administrators&#8221;. SharePoint. Developers. Administrators. From time to time, I will meet SharePoint professionals in networking events or when interviewing job applicants at a customer site and I will ask what their SharePoint experience [...]]]></description>
			<content:encoded><![CDATA[<p>I was viewing my blog today and noticed the tag cloud on my sidebar. The most prominent tags are &#8220;SharePoint&#8221;, &#8220;Developers&#8221;, and &#8220;Administrators&#8221;. <strong>SharePoint</strong>. <strong>Developers</strong>. <strong>Administrators</strong>.</p>
<p>From time to time, I will meet SharePoint professionals in networking events or when interviewing job applicants at a customer site and I will ask what their SharePoint experience is like. &#8220;Oh I am a <strong>SharePoint Developer</strong>&#8220;. Then I find out that the extent of their development experience revolves around master-page and page-layout design, style/CSS customizations, and graphical/logo design. Basically, branding tasks. And then there is the &#8220;<strong>SharePoint Administrator</strong>&#8220;. &#8220;Oh, I am the site collection administrator and manage user-permissions, site-collection features, and sometimes recycle items for end-users from the Recycling Bin.&#8221;</p>
<p>I think people are calling themselves SharePoint Developer more than they should. In my opinion, a SharePoint developer is someone who can develop Web parts, workflows, user-controls, Web controls, ASPX pages, client-side scripting, and complete SharePoint solutions. In addition, they also understand deployment options such as creating solution packages. If your experience around SharePoint is limited to CSS, branding, and design stuff, you&#8217;re a <strong>designer</strong>, buddy; not a <strong>developer</strong>, but a <strong>designer</strong>.</p>
<p>Now, let&#8217;s talk about the &#8220;SharePoint Administrator&#8221;. Yes, to a point, the site-collection administrator is an administrator. But to me, and again, this is just my opinion, farm admins are the real SharePoint administrators. To call yourself a SharePoint administrator, especially on job interviews, you better know your SharePoint deployment scenarios, Central Admin, SharePoint disaster/recovery procedures, IIS, SQL Server, Windows Server OS, and the beloved &#8220;stsadm&#8221; command.</p>
<p>Sometimes I will encounter resumes where the job applicant puts &#8220;<strong>SharePoint Developer</strong>&#8221; or &#8220;<strong>SharePoint Administrator</strong>&#8221; in their work history but nothing in the roles and responsibilities indicate the degree of technical expertise required to be called a &#8220;real SharePoint Developer&#8221; or a &#8220;real SharePoint Administrator&#8221;! </p>
<p>The point I&#8217;m trying to make is please, please, please&#8211;do not inflate your work experience, especially when applying for jobs. You might fool the recruiters but you&#8217;re not going to fool the technical leads. Please be honest in your resumes because people will catch you if you think the inflated titles will make you a better candidate for a job.</p>
<p>Honesty people!</p>
]]></content:encoded>
			<wfw:commentRss>http://spdeveloper.net/2010/04/sharepoint-developers-and-administrators/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>May 2 SharePoint Saturday Session – Building and Deploying Custom SharePoint Application Pages</title>
		<link>http://spdeveloper.net/2009/05/may-2-sharepoint-saturday-session-%e2%80%93-building-and-deploying-custom-sharepoint-application-pages/</link>
		<comments>http://spdeveloper.net/2009/05/may-2-sharepoint-saturday-session-%e2%80%93-building-and-deploying-custom-sharepoint-application-pages/#comments</comments>
		<pubDate>Tue, 05 May 2009 13:23:00 +0000</pubDate>
		<dc:creator>Gabe Hilado</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[ASCX]]></category>
		<category><![CDATA[ASPX Page]]></category>
		<category><![CDATA[Deployment]]></category>
		<category><![CDATA[Manifest File]]></category>
		<category><![CDATA[STSADM]]></category>
		<category><![CDATA[User Control]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[VS 2005]]></category>
		<category><![CDATA[VS 2008]]></category>
		<category><![CDATA[Web Control]]></category>

		<guid isPermaLink="false">http://spdeveloper.net/?p=8</guid>
		<description><![CDATA[In my previous post, I listed the sessions that I attended on SharePoint Saturday. Michael Lotter’s session was about building and deploying custom SharePoint Application Pages. Out-of-the-box pages suffice for more SharePoint users. But at some point, your customers or organization will want to add custom ASPX pages into SharePoint. This topic is relevant to [...]]]></description>
			<content:encoded><![CDATA[<p>In my <a href="http://spdeveloper.net/2009/05/sharepoint-saturday-may-2-2009/">previous post</a>, I listed the sessions that I attended on SharePoint Saturday. <a href="http://blog.michaellotter.com/">Michael Lotter’s</a> session was about building and deploying custom SharePoint Application Pages. Out-of-the-box pages suffice for more SharePoint users. But at some point, your customers or organization will want to add custom ASPX pages into SharePoint. This topic is relevant to teams wanting to create custom ASPX pages in SharePoint.</p>
<p>The basic ideas for building and deploying custom SharePoint Application Pages:</p>
<ol>
<li>Create a VS 2005 or VS 2008 solution</li>
<li>Edit your ASPX pages, edit your code-behind</li>
<li>Compile the solution—you should get the DLL files and the ASPX and/or ASCX files plus resource files such as images files (GIF, JPG, etc.)</li>
<li>Create a new WSP Solution project in VS 2005 or VS 2008 using VSeWSS, Andrew Connell’s STSDEV, or Codeplex WSP Builder.</li>
<li>In the WSP Solution, you put the ASPX and ASCX pages that you are trying to deploy.</li>
<li>Also, the DLL that was compiled from Step 1 has to be included in the WSP Solution.</li>
<li>Depending on which WSP tool you are using, the files location in the WSP solution might differ from one tool to another. But the key things you specify in the WSP Solution are the following: Manifest file and DDF file. If you have other things to add such as custom actions, you will also need to specify the Features file. The Manifest file specifies where the files in the WSP package will go.</li>
<li>Compile the WSP solution.</li>
<li>Run STSADM on the WSP file to deploy your custom files and pages.</li>
</ol>
<p>Here&#8217;s a sample Manifest file:</p>
<p style="font-family:courier new;background-color:#fff;color:Blue"><span style="font-family:courier new;background-color:#fff;color:Blue">&lt;<span style="color:#660000;">Solution</span> <span style="color:#ff0000;">SolutionId</span>=&#8221;AAEC1250-5354-7839-F94F-50307E84AF1B&#8221; <span style="color:#ff0000;">xmlns</span>=&#8221;http://schemas.microsoft.com/sharepoint/&#8221;&gt;<br />
&lt;<span style="color:#660000;">FeatureManifests</span>&gt;<br />
&lt;<span style="color:#660000;">FeatureManifest</span> <span style="color:#ff0000;">Location</span>=&#8221;FeatureLibrary\feature.xml&#8221;/&gt;<br />
&lt;/<span style="color:#660000;">FeatureManifests</span>&gt;<br />
&lt;<span style="color:#660000;">TemplateFiles</span>&gt;<br />
&lt;<span style="color:#660000;">TemplateFile</span> <span style="color:#ff0000;">Location</span>=&#8221;ControlTemplates\Zenpo\myZenpoControl.ascx&#8221;/&gt;<br />
&lt;<span style="color:#660000;">TemplateFile</span> <span style="color:#ff0000;">Location</span>=&#8221;Layouts\Zenpo\myZenpoPage.aspx&#8221;/&gt;<br />
&lt;<span style="color:#660000;">TemplateFile</span> <span style="color:#ff0000;">Location</span>=&#8221;Layouts\Zenpo\myZenpoBanner.JPG&#8221;/&gt; &lt;/<span style="color:#660000;">TemplateFiles</span> &gt;<br />
&lt;<span style="color:#660000;">Assemblies</span>&gt;<br />
&lt;<span style="color:#660000;">Assembly</span> <span style="color:#ff0000;">DeploymentTarget</span>=&#8221;GlobalAssemblyCache&#8221; <span style="color:#ff0000;">Location</span>=&#8221;ZenpoSoftware.Sharepoint.myFeature.dll&#8221;/&gt;<br />
&lt;/<span style="color:#660000;">Assemblies</span>&gt;<br />
&lt;/<span style="color:#660000;">Solution</span>&gt;<br />
</span></p>
<p>In the example manifest file above, my files went to the Layouts, Images, and ControlTemplates folder. Meanwhile, I specify that my custom assembly file should go to the GAC.</p>
<p>If you are creating custom pages or Web controls with no code-behind files (as-in it’s just all ASPX code or maybe a little bit of in-line server-side scripting), you can skip steps 1-3 and start at step 4 right away.</p>
<p>One thing worth nothing is if you’re going to deploy files to the 12-hive folder, it’s best that you create your own folder. In my example above, I specify in the manifest file that a “Zenpo” folder be created in the Layouts, ControlTemplates, and Images folder.</p>
<p>In the session, Michael Lotter deployed custom pages to the Layouts folder. He also had custom actions specified in the Elements.xml file that made the Site Actions menu include links to his custom pages.</p>
<p>It was a good session for those who have not yet done deployment of custom SharePoint pages in SharePoint. I will admit I was looking for something a bit more advanced but overall, the session was good since people who have never done this before can go back to their shop and should be able to build and deploy custom application pages.</p>
]]></content:encoded>
			<wfw:commentRss>http://spdeveloper.net/2009/05/may-2-sharepoint-saturday-session-%e2%80%93-building-and-deploying-custom-sharepoint-application-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Summary of some basic STSADM commands</title>
		<link>http://spdeveloper.net/2009/04/summary-of-some-basic-stsadm-commands/</link>
		<comments>http://spdeveloper.net/2009/04/summary-of-some-basic-stsadm-commands/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 17:44:00 +0000</pubDate>
		<dc:creator>Gabe Hilado</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[Export]]></category>
		<category><![CDATA[Import]]></category>
		<category><![CDATA[Restore]]></category>
		<category><![CDATA[STSADM]]></category>

		<guid isPermaLink="false">http://spdeveloper.net/?p=4</guid>
		<description><![CDATA[I told you about the WSS 2.0 upgrade that I did yesterday. I had to rely on good old &#8220;STSADM&#8217; to extract the data out of the WSS 2.0 environment and restore it in WSS 3.0. For WSS 3.0 and MOSS 2007, STSADM can be be found in the 12-hive bin folder, which is typically [...]]]></description>
			<content:encoded><![CDATA[<p>I told you about the <a href="http://www.spdeveloper.com/2009/04/upgraded-customers-wss-20-to-wss-30.html">WSS 2.0 upgrade that I did yesterday</a>. I had to rely on good old &#8220;STSADM&#8217; to extract the data out of the WSS 2.0 environment and restore it in WSS 3.0. For WSS 3.0 and MOSS 2007, STSADM can be be found in the 12-hive bin folder, which is typically located at <em>C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN</em>. For WSS 2.0, STSADM can be found in <em>C:\Program Files\Common Files\Microsoft Shared\web server extenstions\60\BIN</em>.</p>
<p>If you want a straight and fast backup and restore, use the stsadm backup and restore operations.</p>
<p>To back up a site, go to the 12-hive bin folder and type the following command:</p>
<p><span style="font-family:courier new;">stsadm -o backup -url </span><a href="http://mysite/"><span style="font-family:courier new;">http://mysite</span></a><span style="font-family:courier new;"> -filename myfile.dat</span></p>
<p>Then to restore your backup, use the following command:</p>
<p><span style="font-family:courier new;">stsadm -o restore -url </span><a href="http://mysite/"><span style="font-family:courier new;">http://mysite</span></a><span style="font-family:courier new;"> -filename myfile.dat</span></p>
<p>Notes about using STSADM backup and restore commands:</p>
<ol>
<li>Security settings (owners and permission levels) and other user-informated (Created By and Modified By fields) will carry over when you restore it.</li>
<li>This is faster than using STSADM export/import operations.</li>
<li>You can only do this on a top-level site. Say you want to get a subsite inside your site-collection, forget it&#8211;this operation can only get that subsite by backing up and restoring the whole site collection.</li>
<li>Point is, backup/restore is not granular. It&#8217;s an all-or-nothing backup and restore of a site collection.</li>
</ol>
<p>If you want to get &#8216;somewhat&#8217; granular, you can use STSADM export/import command. I say &#8216;somewhat granular&#8217; because you can&#8217;t really drill down to list or library level. But if you have many subsites and you just want to backup and restore (or migrate) a few, then STSADM export/import will be for you.</p>
<p>To export a sub-site, go to the 12-hive bin folder and type the following command:</p>
<p><span style="font-family:courier new;">stsadm -o export-url </span><a href="http://myserver/mysite"><span style="font-family:courier new;">http://myserver/mysite</span></a><span style="font-family:courier new;"> -filename myfile.dat</span></p>
<p>Then to &#8220;restore your backup&#8221;, use the import command:</p>
<p><span style="font-family:courier new;">stsadm -o import-url </span><a href="http://myserver/mysite"><span style="font-family:courier new;">http://myserver/mysite</span></a><span style="font-family:courier new;"> -filename myfile.dat</span></p>
<p>Notes about STSADM export/import command:</p>
<ol>
<li>Slower than using backup/restore</li>
<li>Security settings and other user information (Last Modified By, Created By, etc.) do not carry over to the new site. I didn&#8217;t had a chance to test this operation with a site that uses some type of approval workflow&#8211;I don&#8217;t think the &#8220;Assigned To&#8221; properties will stick with export/import simply based on the observed behavior on standard documents and list libraries.</li>
<li>Yes, you can export a sub-site so that you don&#8217;t have to export the whole site-collection. But you can&#8217;t export a library or list or document. You say &#8220;why not just template the site and include the content in the template&#8221;. You got size-limitations there bud and you won&#8217;t be able to &#8216;template&#8217; a site and include its content if the library or list has too many files.</li>
</ol>
<p>By the way, I&#8217;ve only shown examples using the required parameters -url and -filename. There are other optional paramters to use when using these STSADM commands. For full details, visit the Microsoft page <a href="http://technet.microsoft.com/en-us/library/cc263384.aspx">Index of STSADM Operations and properties (Office SharePoint Server)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://spdeveloper.net/2009/04/summary-of-some-basic-stsadm-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

