<?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 and ASP.NET Blog</title>
	<atom:link href="http://spdeveloper.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://spdeveloper.net</link>
	<description>Microsoft, SharePoint, ASP.NET, Software Solutions</description>
	<lastBuildDate>Wed, 30 Jun 2010 01:47:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<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 into something [...]]]></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>Visual Studio 2010 Visual Web Part Project</title>
		<link>http://spdeveloper.net/2010/06/visual-studio-2010-visual-web-part-project/</link>
		<comments>http://spdeveloper.net/2010/06/visual-studio-2010-visual-web-part-project/#comments</comments>
		<pubDate>Mon, 21 Jun 2010 03:06:19 +0000</pubDate>
		<dc:creator>Gabe Hilado</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Developers]]></category>
		<category><![CDATA[MOSS 2007]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Web Parts]]></category>
		<category><![CDATA[WSP]]></category>

		<guid isPermaLink="false">http://spdeveloper.net/?p=334</guid>
		<description><![CDATA[I am in the process of getting up to speed with the new Visual Studio 2010 IDE and how it can be used to develop custom SharePoint 2010 solutions.
It’s so easy to do a “Hello World” Web part project now. These days, my Hello World projects typically involve opening up a database table and displaying [...]]]></description>
			<content:encoded><![CDATA[<p>I am in the process of getting up to speed with the new <strong>Visual Studio 2010</strong> IDE and how it can be used to develop custom SharePoint 2010 solutions.</p>
<p>It’s so easy to do a “Hello World” Web part project now. These days, my Hello World projects typically involve opening up a database table and displaying records in a table. I was able to do this with minimal coding and got it up and running—a full blown Web part—in under 15 minutes!</p>
<p>I created a sample project that opens up the <a href="http://msftdbprodsamples.codeplex.com/" target="_blank">AdventureWorks</a> database and displays employee records in a table:</p>
<p style="text-align: center;">
<div class="wp-caption aligncenter" style="width: 344px"><a href="http://spdeveloper.net/wp-content/uploads/2010/06/image1.png"><img style="display: block; border: 0px;" title="Sample Visual Web Part Project using Adventure Works Database" src="http://spdeveloper.net/wp-content/uploads/2010/06/image_thumb1.png" border="0" alt="Sample Visual Web Part Project using Adventure Works Database" width="334" height="430" /></a><p class="wp-caption-text">Sample Visual Web Part Project using Adventure Works Database</p></div>
<p style="text-align: left;">The Web-part looks like the following when used inside SharePoint:</p>
<p style="text-align: center;">
<div class="wp-caption aligncenter" style="width: 733px"><a href="http://spdeveloper.net/wp-content/uploads/2010/06/image2.png"><img style="display: inline; border: 0px;" title="AdventureWorks Employees Web Part" src="http://spdeveloper.net/wp-content/uploads/2010/06/image_thumb2.png" border="0" alt="AdventureWorks Employees Web Part" width="723" height="384" /></a><p class="wp-caption-text">AdventureWorks Employees Web Part So far, I like it!Here are my first impressions:SharePoint project templates come out-of-the-box install of VS 2010. After installing VS 2010, the SharePoint project templates are ready for use. No need to do installations of VS-extensions.SharePoint Project Templates in Visual Studio 2010</p></div>
<p style="text-align: center;"> </p>
<ul>
<li>The <strong>Visual Web Part</strong> project cannot be deployed as a “sandboxed solution”. It has to be deployed as a <strong>farm solution</strong>.</li>
<li><strong>Project-debugging became a lot easier</strong> even with a full-blow farm-deployment. Press F5 in the VS 2010 IDE and Visual Studio will build, package, deploy, and activate your feature, and launch the debug-browser all in one click! When you’re done debugging, terminate Internet Explorer, Visual Studio will deactivate and retract the solution out of SharePoint.</li>
<li>IIS-reset (for the target Web app) even for full-blown deployments when debugging is fast!</li>
<li>Remember in VSeWSS 1.3 where you had to Google first <a href="http://www.google.com/#hl=en&amp;rlz=1W1ADRA_en&amp;q=vsewss+1.3+specify+web+part+group+element.xml&amp;aq=f&amp;aqi=&amp;aql=&amp;oq=vsewss+1.3+specify+web+part+group+element.xml&amp;gs_rfai=&amp;fp=7b315f504f01d538" target="_blank">how to specify the group the Web part appears in</a> because it wasn’t so obvious? Well, it got easier in VS 2010! Now, the E<strong>lements.xml</strong> file has a place-holder for the <strong>Web-part group</strong>. All you have to do, is change it from “<em>Custom</em>” to whatever value you want it to be. It’s so visible now you can’t miss it.</li>
</ul>
<p style="text-align: center;">
<div class="wp-caption aligncenter" style="width: 626px"><a href="http://spdeveloper.net/wp-content/uploads/2010/06/image4.png"><img style="display: block; border: 0px;" title="Web-Part Group Place-Holder in Elements.xml File" src="http://spdeveloper.net/wp-content/uploads/2010/06/image_thumb4.png" border="0" alt="Web-Part Group Place-Holder in Elements.xml File" width="616" height="277" /></a><p class="wp-caption-text">Web-Part Group Place-Holder in Elements.xml File</p></div>
<p style="text-align: center;"> </p>
<ul>
<li>You can now <strong>add Web User Controls (ASCX files) into the project!</strong> As a matter of fact, the project template adds one ASCX file for you. This just made Web Part development a HECK of a lot easier! This is HUGE! Back in VS 2008 developing SharePoint 2007 Web parts, there were no designers available. If developers wanted to use ASCX files, they had to create regular ASP.NET Web apps, design the ASCX files there, write the code-behind, compile the project so the code-behind logic gets packaged with the ASCX files, deploy the ASCX files to UserControls folder within the SharePoint virtual Web app folder, deploy and enable Smart Part, add a Smart Part Web part to the SharePoint pages, then finally, hook-up the Smart Part to the ASCX files. Whew!!! Talk about LOTS of steps! In VS 2010, you don’t need Smart Part or that lengthy way to integrate ASCX file in SharePoint anymore. The challenge of “imagining” what your Web part will look like as you write your C# code is no more. The designer is built in to the Visual Web Part project. Leverage your ASP.NET skills to the max.</li>
<li>Despite all the improvements, Web part development veterans should recognize familiar concepts and project files such as Elements.xml, .webpart file, strong-named key file, packages and features. </li>
</ul>
<p>I have many ASP.NET developer friends who didn’t want to get into SharePoint development because:</p>
<ul>
<li>The Web part project wasn’t easy in SharePoint 2007. No designers, hard to design a visual element.</li>
<li>ASP.NET developers got accustomed to easy debugging of their projects by simply pressing F5 key or the play button on the IDE toolbar. In 2007, ASP.NET developers thought deploying the app and then attaching to the w3wp.exe process (multiple manual steps, not one) was too cumbersome.</li>
<li>It took forever to even debug the code because the SharePoint Web app always recycled on deployments.</li>
</ul>
<p>If you are an ASP.NET developer contemplating if you should try SharePoint development, I highly recommend you try it NOW! SharePoint 2010 development feels like traditional ASP.NET development more than ever!</p>
]]></content:encoded>
			<wfw:commentRss>http://spdeveloper.net/2010/06/visual-studio-2010-visual-web-part-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>You can&#8217;t create Web Applications in Central Admin even if you are Farm Admin</title>
		<link>http://spdeveloper.net/2010/06/you-cant-create-web-applications-in-central-admin-even-if-youre-farm-admin/</link>
		<comments>http://spdeveloper.net/2010/06/you-cant-create-web-applications-in-central-admin-even-if-youre-farm-admin/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 19:43:38 +0000</pubDate>
		<dc:creator>Gabe Hilado</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://spdeveloper.net/?p=321</guid>
		<description><![CDATA[Situation: you finished installing SharePoint 2010 on Windows 7. You have ran the SharePoint Products Configuration Wizard. You are finally inside Central Administration 2010 and was surprised that creating new Web Applications is disabled:

What the heck?? You thought you were admin! You check the Farm Administrators list and your account is there. So, what gives??
Windows [...]]]></description>
			<content:encoded><![CDATA[<p>Situation: you finished installing <strong>SharePoint 2010 on Windows 7.</strong> You have ran the SharePoint Products Configuration Wizard. You are finally inside Central Administration 2010 and was surprised that creating new Web Applications is disabled:</p>
<p><a href="http://spdeveloper.net/wp-content/uploads/2010/06/centraladminFarmAdmincantcreatewebapps.png"><img style="display: inline; border: 0px;" title="central-admin-FarmAdmin-cant-create-web-apps" src="http://spdeveloper.net/wp-content/uploads/2010/06/centraladminFarmAdmincantcreatewebapps_thumb.png" border="0" alt="central-admin-FarmAdmin-cant-create-web-apps" width="643" height="366" /></a></p>
<p>What the heck?? You thought you were admin! You check the Farm Administrators list and your account is there. So, what gives??</p>
<p><a href="http://technet.microsoft.com/en-us/magazine/2009.07.uac.aspx" target="_blank">Windows User-Access-Control</a> is getting in the way. Although your account is Farm admin, because of UAC, you’re still not permitted to do stuff in Central Admin like create new Web apps. The fix? <a href="http://support.microsoft.com/kb/975787" target="_blank"><strong>Disable UAC</strong></a> and reboot Windows. After reboot, you should be able to create new Web apps:</p>
<p><a href="http://spdeveloper.net/wp-content/uploads/2010/06/centraladminFarmAdmincancreatewebapps.png"><img style="display: inline; border: 0px;" title="central-admin-FarmAdmin-can-create-web-apps" src="http://spdeveloper.net/wp-content/uploads/2010/06/centraladminFarmAdmincancreatewebapps_thumb.png" border="0" alt="central-admin-FarmAdmin-can-create-web-apps" width="658" height="375" /></a></p>
<p><strong><span style="text-decoration: underline;"><span style="color: #ff0000;">Caution</span></span></strong>: after you have created your Web apps and Site collections in Central Admin, turn on the UAC again and reboot. Turning off UAC for good is not recommended even if it’s annoying.  If you permanently turn off UAC, malware might have a chance to install in your PC (you are admin, no prompts for system mods—yikes!!)</p>
]]></content:encoded>
			<wfw:commentRss>http://spdeveloper.net/2010/06/you-cant-create-web-applications-in-central-admin-even-if-youre-farm-admin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SharePoint 2010 on Windows 7 &#8211; SharePoint Products Configuration Wizard for 1st Time</title>
		<link>http://spdeveloper.net/2010/06/sharepoint-2010-on-windows-7-sharepoint-products-configuration-wizard-for-1st-time/</link>
		<comments>http://spdeveloper.net/2010/06/sharepoint-2010-on-windows-7-sharepoint-products-configuration-wizard-for-1st-time/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 19:25:58 +0000</pubDate>
		<dc:creator>Gabe Hilado</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Developers]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint Installation]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://spdeveloper.net/?p=312</guid>
		<description><![CDATA[The hardest part in installing SharePoint 2010 on Windows 7 is the installation process itself and then configuring the Complete installation on a single-server of the SharePoint Config Database while using local accounts. Once the SharePoint Content DB and the SharePoint Admin Content Databases are created, you can now run psconfigui.exe, SharePoint Products Configuration Wizard.
When [...]]]></description>
			<content:encoded><![CDATA[<p>The hardest part in installing SharePoint 2010 on Windows 7 is the <a href="http://spdeveloper.net/2010/06/install-sharepoint-2010-on-a-macbook-pro/">installation process itself</a> and then configuring the <a href="http://sharepoint.microsoft.com/blogs/fromthefield/Lists/Posts/Post.aspx?ID=112" target="_blank">Complete installation on a single-server</a> of the SharePoint Config Database while using local accounts. Once the SharePoint Content DB and the SharePoint Admin Content Databases are created, you can now run <strong>psconfigui.exe</strong>, SharePoint Products Configuration Wizard.</p>
<p>When you run the PSCONFIGUI, since you already configured the SharePoint config database, will start-off at the following step of the Configuration Wizard. Notice that my database-server and database-name have already been pre-populated. Click Next.</p>
<div class="wp-caption aligncenter" style="width: 483px"><a href="http://spdeveloper.net/wp-content/uploads/2010/06/SPConfigWizardDBSelection.png"><img style="display: block; margin-left: auto; margin-right: auto; border: 0px;" title="SP Configuration Wizard - DB Selection" src="http://spdeveloper.net/wp-content/uploads/2010/06/SPConfigWizardDBSelection_thumb.png" border="0" alt="SP Configuration Wizard - DB Selection" width="473" height="407" /></a><p class="wp-caption-text">SP Configuration Wizard - DB Selection</p></div>
<p style="text-align: center;"> </p>
<p>You get to specify additional information such as Authentication provider (choose NTLM, especially if you do not have domain controller  in your network). You can also choose the port number where Central Admin will run.</p>
<div class="wp-caption aligncenter" style="width: 479px"><a href="http://spdeveloper.net/wp-content/uploads/2010/06/SPConfigWizardcompleting.png"><img style="display: inline; border: 0px;" title="SharePoint Configuration Wizard -Completing" src="http://spdeveloper.net/wp-content/uploads/2010/06/SPConfigWizardcompleting_thumb.png" border="0" alt="SharePoint Configuration Wizard -Completing" width="469" height="403" /></a><p class="wp-caption-text">SharePoint Configuration Wizard -Completing</p></div>
<p>Click Next until it runs the actual  configuration of the Central Admin:</p>
<div class="wp-caption aligncenter" style="width: 476px"><a href="http://spdeveloper.net/wp-content/uploads/2010/06/SPConfigWizardconfiguring.png"><img style="display: block; margin-left: auto; margin-right: auto; border: 0px;" title="SP Configuration Wizard -Configuring" src="http://spdeveloper.net/wp-content/uploads/2010/06/SPConfigWizardconfiguring_thumb.png" border="0" alt="SP Configuration Wizard -Configuring" width="466" height="384" /></a><p class="wp-caption-text">SP Configuration Wizard -Configuring</p></div>
<p>Once the Wizard is finished, run your Central Admin. If things were installed and configured correctly, you should be able to launch Central Admin:</p>
<div class="wp-caption aligncenter" style="width: 526px"><a href="http://spdeveloper.net/wp-content/uploads/2010/06/1sttimeinCentralAdmin2010.png"><img style="display: block; margin-left: auto; margin-right: auto; border: 0px;" title="1st Time in Central Admin 2010" src="http://spdeveloper.net/wp-content/uploads/2010/06/1sttimeinCentralAdmin2010_thumb.png" border="0" alt="1st Time in Central Admin 2010" width="516" height="360" /></a><p class="wp-caption-text">1st Time in Central Admin 2010</p></div>
]]></content:encoded>
			<wfw:commentRss>http://spdeveloper.net/2010/06/sharepoint-2010-on-windows-7-sharepoint-products-configuration-wizard-for-1st-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Errors when installing SharePoint 2010 in Windows 7 Development Environment</title>
		<link>http://spdeveloper.net/2010/06/errors-when-installing-sharepoint-2010-in-windows-7-development-environment/</link>
		<comments>http://spdeveloper.net/2010/06/errors-when-installing-sharepoint-2010-in-windows-7-development-environment/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 18:59:31 +0000</pubDate>
		<dc:creator>Gabe Hilado</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Developers]]></category>
		<category><![CDATA[Power Shell]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint Installation]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://spdeveloper.net/?p=300</guid>
		<description><![CDATA[Here are some of the other errors that I received while creating my SharePoint 2010 environment in Windows 7.
New-SPConfigurationDatabase: Could not load file or assembly ‘Microsoft.IdentityModel, Version 3.5.0.0. The Power Shell looks like the following when you’re running New-SPConfigurationDatabase to configure your SP database for the first time:
The fix: Install Microsoft Identity Framework to address [...]]]></description>
			<content:encoded><![CDATA[<p>Here are some of the other errors that I received while creating my <strong>SharePoint 2010</strong> environment in <strong>Windows 7</strong>.</p>
<p><strong><em>New-SPConfigurationDatabase: Could not load file or assembly ‘Microsoft.IdentityModel, Version 3.5.0.0.</em></strong> The Power Shell looks like the following when you’re running <strong>New-SPConfigurationDatabase</strong> to configure your SP database for the first time:</p>
<div class="wp-caption aligncenter" style="width: 593px"><a href="http://spdeveloper.net/wp-content/uploads/2010/06/couldnotloadMicrosoft.IdentityModel.png"><img style="display: block; margin-left: auto; margin-right: auto; border: 0px;" title="Could not load Microsoft.IdentityModel" src="http://spdeveloper.net/wp-content/uploads/2010/06/couldnotloadMicrosoft.IdentityModel_thumb.png" border="0" alt="Could not load Microsoft.IdentityModel" width="583" height="295" /></a><p class="wp-caption-text">Could not load Microsoft.IdentityModel</p></div>
<p>The fix: Install <a href="http://support.microsoft.com/kb/974405" target="_blank">Microsoft Identity Framework</a> to address this problem.</p>
<p><strong><em>New-SPConfigurationDatabase: The user does not exist or is not unique.</em></strong> You get to the point in the New-SPConfigurationDatabase command-let that asks you for the Farm Credentials. You didn’t fully qualify the username with the domain or computer name.</p>
<div class="wp-caption aligncenter" style="width: 594px"><a href="http://spdeveloper.net/wp-content/uploads/2010/06/NewSPConfigurationDatabaseuserdoesnotexist.png"><img style="display: block; margin-left: auto; margin-right: auto; border: 0px;" title="New-SPConfigurationDatabase - user does not exist" src="http://spdeveloper.net/wp-content/uploads/2010/06/NewSPConfigurationDatabaseuserdoesnotexist_thumb.png" border="0" alt="New-SPConfigurationDatabase - user does not exist" width="584" height="297" /></a><p class="wp-caption-text">New-SPConfigurationDatabase - user does not exist</p></div>
<p style="text-align: center;"> </p>
<p>To fix this, simply make sure that the user account you are specifying for the Farm Credentials is fully-qualified with the domain-name or, if using local accounts, the computer name. Example: “macbookpro\gabe”.</p>
<p><strong>New-SPConfigurationDatabase :  Unknown error (0&#215;80005000) At line: 1 char:20. + New-SPConfigurationDatabase &lt;&lt;&lt;&lt; + CategoryInfo    : InvalidData</strong></p>
<div class="wp-caption aligncenter" style="width: 602px"><a href="http://spdeveloper.net/wp-content/uploads/2010/06/unknownerrorwhenusingnewspconfigurationdatabase.png"><img style="display: block; margin-left: auto; margin-right: auto; border: 0px;" title="Unknown error when running New-SPConfigurationDatabase" src="http://spdeveloper.net/wp-content/uploads/2010/06/unknownerrorwhenusingnewspconfigurationdatabase_thumb.png" border="0" alt="Unknown error when running New-SPConfigurationDatabase" width="592" height="306" /></a><p class="wp-caption-text">Unknown error when running New-SPConfigurationDatabase</p></div>
<p style="text-align: center;"> </p>
<p>This one frustrated the heck out of me. I <a href="http://spdeveloper.net/2010/06/install-sharepoint-2010-on-a-macbook-pro/" target="_blank">configured my Macbook Pro</a> already but I was installing SharePoint 2010 on another PC(has Intel Core i7 processor) in my office when I got this message. I thought the second pass-through would be easier. I already know I must follow every-step of the <a href="http://msdn.microsoft.com/en-us/library/ee554869(office.14).aspx" target="_blank"><strong>SharePoint 2010 on Windows 7</strong> Development Workstation Guide</a>.  So, how can I possibly still mess it up?? You see, I’d get past the Passphrase question and it would process the command for a while and spit out the error message only at the very end. When I look at my SQL Server, the Config database is created but the “SharePoint Admin Content” database has not been created yet. I manually added the user-account to sysadmin group in SQL. I made the  Windows login Local Admin. I serviced-pack the SQL instance at least twice. Still the <strong>InvalidData</strong> error message like above. I uninstalled SharePoint 2010 and re-installed it. When I uninstalled the entire SharePoint 2010 (remember, I was aiming for the “<em>Complete</em>” installation option), I reinstalled the second time just using the “<em>Stand-Alone</em>” install. I was thinking, this sucks, having to use SQL Express because I’m going for Stand-Alone install. I finished the Stand-Alone installation. I go ahead and try to configure it and the psconfigui.exe (SP Product Configuration Wizard) and bam—STILL an error! But this time, the error message was more helpful—it told me that IIS 6 is not installed. I look at my installed Windows 7 features and sure enough, IIS 6 wasn’t installed yet! I was pretty sure I ran everything on the <a href="http://msdn.microsoft.com/en-us/library/ee554869(office.14).aspx" target="_blank">checklist</a> and I couldn’t have missed anything. Obviously, I missed something, and this something was the required Windows Features that must be turned on. So I installed II 6 feature on my Windows 7 and the Stand-Alone configuration worked and I saw the Central Admin. If you get this <strong>Unknown error (0&#215;80005000)</strong>, check your installed Windows Features and make sure you have <strong>IIS 6 Management Console</strong> installed.</p>
<div class="wp-caption aligncenter" style="width: 393px"><a href="http://spdeveloper.net/wp-content/uploads/2010/06/image.png"><img style="display: block; margin-left: auto; margin-right: auto; border: 0px;" title="IIS 6 Management Consol turned-on" src="http://spdeveloper.net/wp-content/uploads/2010/06/image_thumb.png" border="0" alt="IIS 6 Management Consol turned-on" width="383" height="336" /></a><p class="wp-caption-text">IIS 6 Management Consol turned-on</p></div>
<p style="text-align: center;"> </p>
<p>Okay, after going through the stand-alone install and was made to <strong>enable IIS6</strong>, I uninstalled SharePoint 2010, again! Why did I uninstall it? Because it was installed using <em>Stand-Alone</em> install which uses SQL Server Express.  This final time, I was determined to make the <em>Complete</em> installation (<em>can add servers to farm</em>) work. I installed the SharePoint 2010. I ran Power Shell and ran the New-SPConfigurationDatabase command-let and was able to create the configuration database. Yay!!!</p>
<div class="wp-caption aligncenter" style="width: 395px"><a href="http://spdeveloper.net/wp-content/uploads/2010/06/SQLServerafternewConfig.png"><img style="display: block; margin-left: auto; margin-right: auto; border: 0px;" title="SQL Server after successful New-SPConfigurationDatabase" src="http://spdeveloper.net/wp-content/uploads/2010/06/SQLServerafternewConfig_thumb.png" border="0" alt="SQL Server after successful New-SPConfigurationDatabase" width="385" height="248" /></a><p class="wp-caption-text">SQL Server after successful New-SPConfigurationDatabase</p></div>
]]></content:encoded>
			<wfw:commentRss>http://spdeveloper.net/2010/06/errors-when-installing-sharepoint-2010-in-windows-7-development-environment/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Install SharePoint 2010 on a MacBook Pro!</title>
		<link>http://spdeveloper.net/2010/06/install-sharepoint-2010-on-a-macbook-pro/</link>
		<comments>http://spdeveloper.net/2010/06/install-sharepoint-2010-on-a-macbook-pro/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 03:50:21 +0000</pubDate>
		<dc:creator>Gabe Hilado</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint Deployment]]></category>
		<category><![CDATA[Developers]]></category>
		<category><![CDATA[MacBook Pro]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://spdeveloper.net/2010/06/install-sharepoint-2010-on-a-macbook-pro/</guid>
		<description><![CDATA[I’ve been hesitant to install SharePoint 2010 on my computers, virtualized or otherwise, due to what I think to be steep hardware requirements to run SharePoint 2010. My impression was I needed a beast to run SharePoint 2010. I’ve seen demos where the hardware is a LOT better than what I have and demo choked—super [...]]]></description>
			<content:encoded><![CDATA[<p>I’ve been hesitant to <strong>install SharePoint 2010</strong> on my computers, virtualized or otherwise, due to what I think to be steep hardware requirements to run SharePoint 2010. My impression was I needed a beast to run SharePoint 2010. I’ve seen demos where the hardware is a LOT better than what I have and demo choked—super slow response, take forever to reset IIS, etc. So I kept procrastinating to install SharePoint 2010. I’m still shopping around for a super laptop  but the one that I’m eyeing, the <a href="http://www.tomshardware.com/news/Envy-13-Envy-14-Envy-15-Envy-17,10349.html" target="_blank">HP Envy 14</a> won’t be out for another couple of weeks. My best hardware is my “production computer” and it has Intel Core i7 with 6GB of RAM but I really don’t want to put a development SharePoint there. But I need to install SharePoint 2010 now! So, I said, what the hell&#8211; I might as well put the MacBook Pro 13 to the test! My MacBook is configured for dual boot and runs Windows 7 Ultimate on the “Bootcamp” side.</p>
<p>My MacBook Pro 13 Windows (Ultimate) Experience Index looks like the following:</p>
<p style="text-align: center;"><a href="http://spdeveloper.net/wp-content/uploads/2010/06/macbookprowindows7index.png"><img class="aligncenter" style="display: inline; border: 0px;" title="macbook pro windows 7 index" src="http://spdeveloper.net/wp-content/uploads/2010/06/macbookprowindows7index_thumb.png" border="0" alt="MacBook Pro Windows 7 Experience Index" width="563" height="431" /></a></p>
<p> </p>
<p>Not too shabby. Lowest score is the graphics (NVidia 930M) but shouldn’t be an issue with regards to SharePoint and development work in general. See that <strong>Memory</strong> and <strong>Primary hard disk</strong> scoring 5.9? That worried me. The hard drive speed is only 5400 RPM and that could be a bottleneck for database read/writes. I went ahead and installed <strong>SharePoint 2010</strong> on the <strong>MacBook Pro</strong>/<strong>Windows 7</strong> anyway.</p>
<p>Instead of rewriting the steps needed to <strong>install SharePoint 2010 on Windows 7</strong> for a development rig, I will point you to existing resources out there. Too many write-ups regarding this topic already. So here they are, the ones that I’ve tried and tested:</p>
<ul>
<li>If you are going to read anything about installing SharePoint 2010 on Windows 7, this is the resource you want &#8211; <a title="http://msdn.microsoft.com/en-us/library/ee554869(office.14).aspx" href="http://msdn.microsoft.com/en-us/library/ee554869(office.14).aspx">http://msdn.microsoft.com/en-us/library/ee554869(office.14).aspx</a></li>
<li>Execute EVERY step outlined in that walkthrough. Don’t even try to shortcut or think that you can do it without reading any documentation. You may get past the installation but you will pull hair out when it’s time to configure your farm. So just do it, every step in that walkthrough! I will show some of the errors I encountered when I tried to “fast-track” the SharePoint installation.</li>
<li>Here’s another good one &#8211; <a title="http://sharepoint.microsoft.com/blogs/fromthefield/Lists/Posts/Post.aspx?ID=112" href="http://sharepoint.microsoft.com/blogs/fromthefield/Lists/Posts/Post.aspx?ID=112">http://sharepoint.microsoft.com/blogs/fromthefield/Lists/Posts/Post.aspx?ID=112</a>. This one talks about how to configure the scalable farm (not the Stand-Alone setup that uses SQL Express) for development purposes while <strong>using local accounts</strong> (instead of domain accounts). SharePoint 2010 needs domain accounts to configure. If you are building a “SharePoint workstation”, it’s very common to use local accounts instead of domain accounts (maybe because getting in touch with the AD admins is not easy—just create local accounts yourself). See, my MacBook Pro is not joined to a domain. I have to use non-domain accounts. I wouldn’t have been able to configure my “SharePoint farm” to use a true SQL Server 2008 if not for this walkthrough. Remember, if you do a stand-alone install, the Web apps use the SQL Express for the databases—not really  my ideal configuration!!</li>
</ul>
<p>Here’s the first error message I encountered:</p>
<p style="text-align: center;"><a href="http://spdeveloper.net/wp-content/uploads/2010/06/win2008serverr2supportonly.jpg"><img class="aligncenter" style="display: block; border: 0px;" title="win2008server r2 support only" src="http://spdeveloper.net/wp-content/uploads/2010/06/win2008serverr2supportonly_thumb.jpg" border="0" alt="Windows 2008 Server R2 Support Only" width="426" height="183" /></a></p>
<p>I was so excited to install SharePoint 2010 after I got my <a href="https://partner.microsoft.com/40016455" target="_blank">MAPS subscription</a> that I just double-clicked the <strong>setup.exe</strong>. The above message is what I got! You have to edit the <em>\Files\Setup\config,xml</em> of the <strong>SharePoint 2010 install</strong> directory and add the following:</p>
<pre class="brush: xml;">

&lt;Setting Id=&quot;AllowWindowsClientInstall&quot; Value=&quot;True&quot;/&gt;
</pre>
<p>This was mentioned in <strong>Step 2: Install the Prerequisites for SharePoint 2010</strong> of the MSDN walkthrough. Fast-forward to the end of the SharePoint 2010 installation/configuration. In Central Admin, you should see this:</p>
<p style="text-align: center;"><a href="http://spdeveloper.net/wp-content/uploads/2010/06/1sttime-in-Central-Admin-20101.png"><img class="aligncenter size-full wp-image-287" title="1st Time in Central Admin 2010" src="http://spdeveloper.net/wp-content/uploads/2010/06/1sttime-in-Central-Admin-20101.png" alt="1st Time in Central Admin 2010" width="810" height="564" /></a></p>
<p style="text-align: center;"><a href="http://spdeveloper.net/wp-content/uploads/2010/06/1sttime-in-Central-Admin-2010.png"></a></p>
<p>Again, don’t skip any steps—follow each and every one!</p>
<p>In follow-up blog-posts, I’ll show the other errors I received while attempting to install/configure the SharePoint farm and how to address them.</p>
<p><span style="text-decoration: underline;">Update 6/11/2010</span>:  Here&#8217;s the screenshot of the Windows Task Manager of the Macbook Pro when running SharePoint 2010, SQL Server 2008, IIS Management Console, Internet Explorer, and Visual Studio 2010 (debugging/attaching to processes).</p>
<div id="attachment_324" class="wp-caption aligncenter" style="width: 562px"><a href="http://spdeveloper.net/wp-content/uploads/2010/06/task-manager-sites-up-running.png"><img class="size-full wp-image-324" title="Windows 7 Task Manager in Macbook Pro" src="http://spdeveloper.net/wp-content/uploads/2010/06/task-manager-sites-up-running.png" alt="Windows 7 Task Manager in Macbook Pro" width="552" height="444" /></a><p class="wp-caption-text">Windows 7 Task Manager in Macbook Pro</p></div>
]]></content:encoded>
			<wfw:commentRss>http://spdeveloper.net/2010/06/install-sharepoint-2010-on-a-macbook-pro/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>It’s the things you learn after you know it all that count.</title>
		<link>http://spdeveloper.net/2010/06/it%e2%80%99s-the-things-you-learn-after-you-know-it-all-that-count/</link>
		<comments>http://spdeveloper.net/2010/06/it%e2%80%99s-the-things-you-learn-after-you-know-it-all-that-count/#comments</comments>
		<pubDate>Mon, 07 Jun 2010 03:43:29 +0000</pubDate>
		<dc:creator>Gabe Hilado</dc:creator>
				<category><![CDATA[Career]]></category>

		<guid isPermaLink="false">http://spdeveloper.net/?p=261</guid>
		<description><![CDATA[Legenday basketball coach John Wooden died two days ago. If you watch basketball, whether it’s NCAA or NBA, you must have heard of the man. I’ve been reading books on business, leadership, and self-help. I’ve encountered Wooden quotes while reading these books.  Tonight, I was watching the NBA Finals, Game 2, LA versus Boston. In [...]]]></description>
			<content:encoded><![CDATA[<p>Legenday basketball coach <a href="http://www.coachwooden.com/" target="_blank">John Wooden</a> <a href="http://www.latimes.com/news/local/la-me-john-woodenlong-20100605,0,409375.story" target="_blank">died two days ago</a>. If you watch basketball, whether it’s NCAA or NBA, you must have heard of the man. I’ve been reading books on business, leadership, and self-help. I’ve encountered <a href="http://www.brainyquote.com/quotes/authors/j/john_wooden.html" target="_blank">Wooden quotes</a> while reading these books.  Tonight, I was watching the NBA Finals, Game 2, LA versus Boston. In the half-time show, NBA Hall-of-Famers Kareem Abdul Jabbar and Bill Walton shared their experience playing for Wooden. Both of these guys admired the guy for the lessons-about-life that Wooden taught them. Bill Walton said Wooden is known for all his great quotes but there is this one “creed” that Wooden personally gave to him when he lost games as a college ball-player at UCLA: <strong><em>“It’s the things you learn after you know it all that count.” </em></strong>Wow, the line really hit me. I love learning. Especially in this field that I belong in – information technology and software development – you never know it all. There’s always something to learn. There’s always room to absorb more.</p>
<p>Sometimes you get to a point in your career where you think you’ve “mastered” something. Then BAM!—the new version of the framework you’re working with gets overhauled! I have a few friends in the industry who have “cried ‘Uncle’” and promoted themselves to management, thinking that they don’t have to catch up with changes in technology (Web apps, servers, services, etc.) anymore. But you know what? They’re still not done learning. Instead of picking up books on .NET, SharePoint, or Web Services, they have to read books on business management, project management, leadership. It’s competitive anywhere you go, especially in today’s economy. You have to keep your brain in shape and train.  It’s a never-ending process, this thing called <strong>learning</strong>. It can be tough sometimes, all these reading and learning. But I wouldn’t have it any other way. I don’t think I can be in a field where I don’t have to learn anything new in order to be competitive. It would just bore me to death.</p>
<p>In honor of the legendary coach, here&#8217;s a few more of John Wooden quotes (Googled tonight):</p>
<ul>
<li>&#8220;<em>I&#8217;d rather have a lot of talent and a little experience than a lot of experience and a little talent.</em>&#8221; &#8211; when it comes to hiring IT resources, I believe in this. I&#8217;ve recommended someone with less &#8220;time-in-grade&#8221; over someone who had &#8220;twenty years of experience&#8221; many many times because at the end of the day, if you want a project done right, you need to have good people. Years in the industry do count but I&#8217;ll take talent and skills over experience anytime.</li>
<li>&#8220;<em>If you&#8217;re not making mistakes, then you&#8217;re not doing anything. I&#8217;m positive that a doer makes mistakes</em>&#8221; &#8211; if you are a developer, you better make your mistakes during the development phase of the project. I&#8217;ve seen a few guys scared to make mistakes or see bugs in their apps. Mistakes and defects are good, if you can catch them early in the project cycle. If you avoid the defects and issues early on&#8211;uggh!!&#8211;good luck when you encounter issues and defects after you deliver your software!</li>
<li>&#8220;<em>The worst thing about new books is that they keep us from reading the old ones</em>.&#8221; &#8211; Ain&#8217;t that the truth when it comes to technology books?? I have so many books (technology, leadership, business)  in my collection that I still have to read and yet I already know that I&#8217;m about to buy more books. Two books I will need to buy soon&#8211;SharePoint 2010 development and ASP.NET 4.0. In my ideal world, I only work 30 hours a week and learn/study 16 hours a week. The reality is I work average 45 hours a week and maybe study for about 4-6 hours a week. Too many things to catch up on. </li>
<li>&#8220;<em>Never mistake activity for achievement</em>.&#8221; &#8211; I LOVE this one. In other industries, working longer hours almost equate to achieving more than the next guy. In information technology, I see too many people patting themselves in the back for working long hours. For the life of me, I don&#8217;t understand why these people can be proud for taking a long time to solve a problem. Who&#8217;s better, the programmer who can write the solution in 2 hours and is idle for the rest of the day or the programmer who has to work 12 hours (assuming the task and problem set is the same)? It should be obvious, right? What about from an operations type person, like a DBA? Would you rather have a &#8220;lazy DBA&#8221; who sips coffee all day or the DBA who has to work 60 hours every week? I&#8217;ll take the lazy DBA anyday. He&#8217;s probably lazy and not doing anything because his ship is ran tight.  <strong>That&#8217;s achievement</strong>, getting your stuff squared-away. If you have operations people working overtime month after month&#8211;that&#8217;s NOT achievement&#8211;that&#8217;s a hug red flag that they don&#8217;t know what the heck they&#8217;re doing.</li>
</ul>
<p>I’ve never read a John Wooden book. But after getting reminded tonight how wise the guy was, I think I’m going to get <a href="http://www.amazon.com/Wooden-Leadership-Create-Winning-Organization/dp/0071453393/ref=sr_1_2?ie=UTF8&amp;s=books&amp;qid=1275881026&amp;sr=1-2" target="_blank">one of his books</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://spdeveloper.net/2010/06/it%e2%80%99s-the-things-you-learn-after-you-know-it-all-that-count/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>iPhone App Development and .NET Development</title>
		<link>http://spdeveloper.net/2010/05/iphone-app-development-and-net-development/</link>
		<comments>http://spdeveloper.net/2010/05/iphone-app-development-and-net-development/#comments</comments>
		<pubDate>Sun, 23 May 2010 07:21:28 +0000</pubDate>
		<dc:creator>Gabe Hilado</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[iPhone Apps]]></category>
		<category><![CDATA[Mobile]]></category>

		<guid isPermaLink="false">http://spdeveloper.net/?p=256</guid>
		<description><![CDATA[If you are a .NET developer and if you happen to also have a Mac environment, I highly recommend that you learn iPhone development. Why? Read on.
I purchased a Macbook Pro a week ago and started coding an app within the first 2 hours of getting home! I tell you what, I&#8217;ve been a PC [...]]]></description>
			<content:encoded><![CDATA[<p>If you are a .NET developer and if you happen to also have a Mac environment, I highly recommend that you learn iPhone development. Why? Read on.</p>
<p>I purchased a <a href="http://www.apple.com/r/store/government/">Macbook Pro</a> a week ago and started coding an app within the first 2 hours of getting home! I tell you what, I&#8217;ve been a PC for a long, long time and a first-time Mac owner. This Macbook Pro Unibody plus the Snow Leopard OS is a really one sweet device. Am I done with PC laptops? Nope&#8211;I&#8217;m just waiting for the HP Envy 14 series to come out&#8211;16Gb RAM config with newest iCore 7 chip plus SSD drives&#8211;that&#8217;s going to be my configuration for SharePoint 2010 mobile development. Anyway, back to the Macbook. So, I started coding my first night owning the Mac. I saw some samples on the Web and started coding iPhone apps. Holy-moly! I saw and typed keywords that I haven&#8217;t used since college (I think)&#8211;the <em>malloc</em> and <em>dealloc</em> commands/keywords!!! I dreaded those things as a young programmer. Memory leaks, buffer overruns&#8211;yep, I got burned many times when I was starting out and I didn&#8217;t allocate/deallocate memory properly in my programs.</p>
<p>So, <strong>what does iPhone development got to do with .NET development</strong>? Well, technology-wise, they are different worlds. XCode uses Objective-C while .NET (mostly) uses C#. They&#8217;re kind of like distant cousins; they&#8217;re similar in some ways but different in many ways. No, I&#8217;m not recommending you abandon .NET and totally convert to XCode. I&#8217;m recommending that you try iPhone development because it will bring you back to fundamentally sound programming practices. As a developer, I felt like <strong>it brought me back to my roots</strong>.  Developers need to <strong>be mindful of performance and memory use</strong> when developing for the iPhone.  In XCode and .NET, there are garbage collectors. Developers don&#8217;t worry about memory-allocation thanks to the garbage-collectors. iPhone apps don&#8217;t have garbage-collectors. Also, device memory is limited on the iPhone. No gigs of RAM. No swap files. Should you try iPhone development, you will see <em>malloc</em> and <em>dealloc</em> again and you will be constantly asking yourself &#8220;maybe I should clean-up stuff in memory and make room for new objects&#8221;. If you&#8217;ve never seen <em>malloc</em> and <em>dealloc</em>, we&#8217;ll I hope it&#8217;s a fun experience discovering for the first time what it&#8217;s like to develop where you are constrained by limited memory. </p>
<p>.NET developer with a Mac: go try iPhone development. If anything, because you&#8217;re forced to think limited CPU cycles and limited memory, it should improve your overall programming skills!</p>
]]></content:encoded>
			<wfw:commentRss>http://spdeveloper.net/2010/05/iphone-app-development-and-net-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Next Web Conference Amsterdam</title>
		<link>http://spdeveloper.net/2010/05/the-next-web-conference-amsterdam/</link>
		<comments>http://spdeveloper.net/2010/05/the-next-web-conference-amsterdam/#comments</comments>
		<pubDate>Thu, 06 May 2010 00:57:34 +0000</pubDate>
		<dc:creator>Gabe Hilado</dc:creator>
				<category><![CDATA[Web Services]]></category>
		<category><![CDATA[iPhone Apps]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Silverlight]]></category>

		<guid isPermaLink="false">http://spdeveloper.net/?p=243</guid>
		<description><![CDATA[Wow, I had a great time at the The Next Web conference in Amsterdam!! I tell you, I&#8217;ve seen things in Amsterdam that I don&#8217;t think I&#8217;ll ever see in other cities. Fun things! Also now, I can say that I&#8217;ve been to Europe!
I was supposed to go to a SharePoint conference in LA. When [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://spdeveloper.net/wp-content/uploads/2010/06/DSCN2001.jpg"><img class="alignleft size-full wp-image-251" title="The Next Web Conference" src="http://spdeveloper.net/wp-content/uploads/2010/06/DSCN2001.jpg" alt="The Next Web Conference" width="800" height="600" /></a>Wow, I had a great time at the <a href="http://thenextweb.com/">The Next Web</a> conference in Amsterdam!! I tell you, I&#8217;ve seen things in Amsterdam that I don&#8217;t think I&#8217;ll ever see in other cities. Fun things! Also now, I can say that I&#8217;ve been to Europe!</p>
<p>I was supposed to go to a SharePoint conference in LA. When I saw that there was a tech conference in Amsterdam, since I&#8217;ve never been to Amsterdam, I decided signing up for The Next Web. A part of me wishes that I was in LA and participated in all the SharePoint 2010 boot camp-style sessions there. But I&#8217;m very happy I attended The Next Web; something different, something fresh. You see training and all that is nice but sometimes you get tunneled-vision for a particular technology. It depends on the personality of the person I suppose. With me, I get so focused on a particular subject/technology that I sometimes lose track of the &#8220;big picture&#8221;. ASP.NET 4.0, SharePoint 2010, Silverlight&#8211;lots of stuff to master on the Microsoft technologies and I tend to hone on these things. Sometimes you just have to take a &#8220;step back&#8221; to gain new perspective on things. Going to Amsterdam gave me perspective in more ways than one! I&#8217;ll get up to speed on Microsoft technologies like I always do.</p>
<p>One of the themes at the The Next Web 2010 conference is this gradual but definite move towards mobile devices. Most speakers and many startups that presented had some sort of mobile angle.  I have a very good friend, damn fine ASP.NET and SharePoint developer, and once when I told him that I&#8217;m thinking about developing mobile phone apps. He asked me &#8220;why bother building apps that a 17 year-old can hack and build?&#8221;  There is some truth to the question he asked but he is incorrect.  I went to youtube.com one time to see if I can find some iPhone coding tutorial. First video I picked was done by some 13 year-old or 14 year-old kid. The kid was enthused but man, was it a pain to follow a presentation/tutorial that is scattered and unorganized. Yeah, so teens can build iPhone apps. So what? Apps are mostly free now you say? Well, there are different business/pricing models for apps that are coming about due to mobile apps. Traditional software vendors are used to the &#8220;licensing&#8221; or &#8220;subscription&#8221; business models. In mobile apps, you can be creative how you get rewarded. Some people get paid real money for &#8220;virtual chickens&#8221;&#8211;can you believe that?? Anyway, back to the mobile stuff&#8211;there are stand-alone apps such as games and utility-apps, but there&#8217;s another category of mobile apps which really caught my attention. These are the front-end mobile apps for existing services or aggregation of existing services on the Web. Examples: Facebook app is client to the FB Web API, Tweetdeck is client for Twitter API, etc. Which brings me to the other theme that I picked up on The Next Web Conference: <strong>services</strong>.</p>
<p>Amazon.com Chief Technology Officer <a href="http://www.allthingsdistributed.com/">Werner Vogels</a> spoke at the conference. He spoke about what he sees as the future of apps&#8211;apps will be aggregation of existing services on Web. &#8220;<strong><em>Don&#8217;t re-invent what&#8217;s already out there</em></strong>.&#8221; You can&#8217;t help but think maybe he&#8217;s just trying to hype up cloud-computing, services, etc., since Amazon provides S3 cloud-computing. Lol. But I see the appreciation of the trend and I agree with him. Mash-up these; mash-up that. The word &#8220;app&#8221; truly has evolved over time. It used to be just a computer program. If you ask  a Java developer or .NET developer what is an app to them, they&#8217;ll probably give you Web app or Desktop app as answers. All kinds of developers from Java, .NET, to PHP know what a Web service is or what API is and know how to consume them. Yet, a lot of &#8220;apps&#8221; (Web applications) are still being developed with no API (especially in the world of custom-built applications). Without getting into a debate whether an API should be opened up for other apps, apps should use its own API. Even if no other app use that API other than that one app itself, the API, if made, is at least available and can be opened up for other apps should the need arise in the future. Take SharePoint for example: it is a Web application but underneath all that glitz is a set of services. Each SharePoint site has WSDLs available for discovery for developers wanting to hookup to SharePoint API. In SharePoint, themes and branding are nice but not as important as the content itself. I just want to be able to get my tasks, calendars, and documents.</p>
<p>And you know what the funny thing is? Since the inception of Web services a decade or so ago, the promise of system integration, where all kinds of different applications and domains are integrating with each other, is just being appreciated now. It&#8217;s been 10 years man since Web services came about. More in the app-development community are appreciating services (it&#8217;s assumed it&#8217;s on the Web!)</p>
<p>Rich apps (<strong>iPhone</strong>, <strong>Android,</strong> <strong>Silverlight</strong>) for front-end. Web Services (REST, SOAP) for back-end. Yes, it seems trivial just to say that but you know what, I&#8217;m glad I attended these sessions at The Next Web conference. Again, it was a nice step-back from .NET and SharePoint and get a fresh-perspective on application development.</p>
]]></content:encoded>
			<wfw:commentRss>http://spdeveloper.net/2010/05/the-next-web-conference-amsterdam/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using a Feature-Receiver to modify the Web.Config File</title>
		<link>http://spdeveloper.net/2010/04/using-a-feature-receiver-to-modify-the-web-config-file/</link>
		<comments>http://spdeveloper.net/2010/04/using-a-feature-receiver-to-modify-the-web-config-file/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 20:26:43 +0000</pubDate>
		<dc:creator>Gabe Hilado</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://spdeveloper.net/?p=221</guid>
		<description><![CDATA[We had a previous SharePoint project where we installed a custom HTTPModule to the SharePoint Web application. Since the SharePoint manifest file cannot inject entries into the httpModules section of the Web.config file (the manifest file can only insert entries inside the SharePoint section of the Web.config such SafeControl entries), we had to use a [...]]]></description>
			<content:encoded><![CDATA[<p>We had a previous SharePoint project where we installed a custom HTTPModule to the SharePoint Web application. Since the SharePoint manifest file cannot inject entries into the <em>httpModules</em> section of the <strong>Web.config</strong> file (the manifest file can only insert entries inside the SharePoint section of the Web.config such SafeControl entries), we had to use a custom <strong>feature-receiver</strong> class, based on the <strong>SPFeatureReceiver</strong>.<strong> </strong>The custom feature-receiver class did it&#8217;s job nicely; whenever the feature got activated, the required entry in the <em>httpModules</em> section of the Web.config file got inserted.</p>
<p>Sequence property of the WebConfigModification can be used to figure out the uninstall order.</p>
<p>Unnamed sections such as <em><strong>connectionStrings</strong></em> and <em><strong>bindings</strong></em> sections, appear to have an XPATH expression that may result in duplicate matching. But, the <strong>ApplyWebConfigModifications</strong> method of the WebConfigModifications object will do it correctly as long as:</p>
<ul>
<li>EnsureChildNode is used as the type</li>
<li>Add/Remove in order that is logical. Example: add <em>connectionStrings</em> section first then the <em>add</em> elements inside the connectionString section.</li>
<li>If you are worried that de-activating a feature will obliterate the connectionStrings section because your feature created it, don&#8217;t. SharePoint will only take out the connectionStrings if there are no other entries created by the <strong>ApplyWebConfigModifications</strong> inside the connectionStrings section. If other features inserted 1 or more connection-string entries there, your feature-receiver will not remove the connectionStrings section. Now, if the connectionString section got edited manually, the SharePoint WebConfigModifcations object will not know this and it doesn&#8217;t matter how many child-nodes there are inside the  connectionString object. The root element (connectionString) in this case will be removed because in SharePoint&#8217;s perspective, there are no existing Web-config modifications inside connectionString.</li>
</ul>
<p><span style="text-decoration: underline;">Conclusion</span>: if you are going to adopt feature-receivers to install web.config entries such as connection-strings and bindings (for Service-References), you must also adopt to policy to discourage manual insert/modification of the web.config entries. Be consistent.</p>
]]></content:encoded>
			<wfw:commentRss>http://spdeveloper.net/2010/04/using-a-feature-receiver-to-modify-the-web-config-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
