<?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>mylifeinaminute.com &#187; Visual Studio 2008</title>
	<atom:link href="http://www.mylifeinaminute.com/category/microsoft/visual-studio-2008/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mylifeinaminute.com</link>
	<description>You can learn a lot in a minute</description>
	<lastBuildDate>Wed, 18 Jan 2012 02:33:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>SharePoint Solution Downloader</title>
		<link>http://www.mylifeinaminute.com/2009/08/21/sharepoint-solution-downloader/</link>
		<comments>http://www.mylifeinaminute.com/2009/08/21/sharepoint-solution-downloader/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 22:22:24 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[Sharepoint Server]]></category>
		<category><![CDATA[Visual Studio 2008]]></category>
		<category><![CDATA[Windows SharePoint Services]]></category>
		<category><![CDATA[codeplex]]></category>
		<category><![CDATA[moss 2007]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[sharepoint administration]]></category>
		<category><![CDATA[SharePoint Solution Packages]]></category>

		<guid isPermaLink="false">http://www.mylifeinaminute.com/?p=401</guid>
		<description><![CDATA[One of my pain points as a SharePoint &#8220;administrator&#8221; is having to deal with deployments of solution packages to my environment without the best change management. This means that I often see packages making their way in to the environment without any thought given to keeping the package in case it needs to be reapplied [...]]]></description>
			<content:encoded><![CDATA[<p>One of my pain points as a SharePoint &#8220;administrator&#8221; is having to deal with deployments of solution packages to my environment without the best change management. This means that I often see packages making their way in to the environment without any thought given to keeping the package in case it needs to be reapplied at a later time (Note: I&#8217;m not the only one who controls what goes into the environment).</p>
<p>The solution? I whipped up a Windows application so download one, several, or all of the solution packages currently stored in the farm configuration database.</p>
<p>I have posted the application to <a title="SharePoint Solution Downloader" href="http://spsolutiondownloader.codeplex.com/">CodePlex</a> @ <a title="SharePoint Solution Downloader" href="http://spsolutiondownloader.codeplex.com/">http://spsolutiondownloader.codeplex.com/</a>.</p>
<p style="text-align: center;"><a href="/images/2009/08/spdownloader_download.jpg" target="_blank" rel="lightbox[401]"><img class="aligncenter size-medium wp-image-402" title="SharePoint Solution Downloader" src="http://www.mylifeinaminute.com/images/2009/08/spdownloader_download-300x155.jpg" alt="SharePoint Solution Downloader" width="300" height="155" /></a></p>
<p>The application must be run in the context of a Farm Administrator (i.e. right-click, <em>Run As&#8230;</em>) on a server in the farm for which you wish to download the solution package(s) from and requires the .NET Framework 3.5.</p>
<p>I would love some feedback from the community as to whether or not this useful. I have some other little apps in mind I could put together with the proper motivation.</p>
<p><map name='google_ad_map_401_0feb153b14d1a0fb'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/401?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_401_0feb153b14d1a0fb' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=401&amp;url= http%3A%2F%2Fwww.mylifeinaminute.com%2F2009%2F08%2F21%2Fsharepoint-solution-downloader%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://www.mylifeinaminute.com/2009/08/21/sharepoint-solution-downloader/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>In Case You Missed It &#8211; Content Deployment Webcast</title>
		<link>http://www.mylifeinaminute.com/2009/01/07/in-case-you-missed-it-content-deployment-webcast/</link>
		<comments>http://www.mylifeinaminute.com/2009/01/07/in-case-you-missed-it-content-deployment-webcast/#comments</comments>
		<pubDate>Wed, 07 Jan 2009 16:45:09 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[MSDN]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[Server 2008]]></category>
		<category><![CDATA[Sharepoint Server]]></category>
		<category><![CDATA[Visual Studio 2005]]></category>
		<category><![CDATA[Visual Studio 2008]]></category>
		<category><![CDATA[content deployment]]></category>
		<category><![CDATA[moss 2007]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://www.mylifeinaminute.com/?p=294</guid>
		<description><![CDATA[Spencer Harbar presented an excellent webcast on content deployment in SharePoint 2007 yesterday. If you&#8217;ve ever wanted to learn more about it, now is the time. Go check it out.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.harbar.net/">Spencer Harbar</a> presented an excellent webcast on <a title="Plan content deployment" href="http://technet.microsoft.com/en-us/library/cc263428.aspx">content deployment</a> in <a href="/tag/moss-2007/">SharePoint 2007</a> yesterday. If you&#8217;ve ever wanted to learn more about it, now is the time.</p>
<p><a href="http://www.harbar.net/archive/2009/01/07/content-deployment-webcast-now-available-on-demand.aspx">Go check it out</a>.</p>
<p><map name='google_ad_map_294_0feb153b14d1a0fb'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/294?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_294_0feb153b14d1a0fb' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=294&amp;url= http%3A%2F%2Fwww.mylifeinaminute.com%2F2009%2F01%2F07%2Fin-case-you-missed-it-content-deployment-webcast%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://www.mylifeinaminute.com/2009/01/07/in-case-you-missed-it-content-deployment-webcast/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Some Background on CAS Policies</title>
		<link>http://www.mylifeinaminute.com/2008/12/31/some-background-on-cas-policies/</link>
		<comments>http://www.mylifeinaminute.com/2008/12/31/some-background-on-cas-policies/#comments</comments>
		<pubDate>Wed, 31 Dec 2008 16:26:38 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[Office]]></category>
		<category><![CDATA[Sharepoint Server]]></category>
		<category><![CDATA[Visual Studio 2005]]></category>
		<category><![CDATA[Visual Studio 2008]]></category>
		<category><![CDATA[Windows SharePoint Services]]></category>
		<category><![CDATA[CAS]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint Solution Packages]]></category>

		<guid isPermaLink="false">http://www.mylifeinaminute.com/?p=275</guid>
		<description><![CDATA[Reza Alirezaei has a good post on the behind the scenes of CAS policies and SharePoint. Check it out.]]></description>
			<content:encoded><![CDATA[<p><a href="http://blogs.devhorizon.com/reza/" title="Reza Alirezaei's Blog">Reza Alirezaei</a> has a good post on the behind the scenes of CAS policies and SharePoint.
<p><a href="http://blogs.devhorizon.com/reza/?p=785" title="Behind the Scences: CAS in Solution Packages">Check it out.</a></p>
<p><map name='google_ad_map_275_0feb153b14d1a0fb'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/275?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_275_0feb153b14d1a0fb' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=275&amp;url= http%3A%2F%2Fwww.mylifeinaminute.com%2F2008%2F12%2F31%2Fsome-background-on-cas-policies%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://www.mylifeinaminute.com/2008/12/31/some-background-on-cas-policies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HubKey&#8217;s Development Hole</title>
		<link>http://www.mylifeinaminute.com/2008/12/23/hubkeys-development-hole/</link>
		<comments>http://www.mylifeinaminute.com/2008/12/23/hubkeys-development-hole/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 21:08:35 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[Sharepoint Server]]></category>
		<category><![CDATA[Visual Studio 2005]]></category>
		<category><![CDATA[Visual Studio 2008]]></category>
		<category><![CDATA[Windows SharePoint Services]]></category>
		<category><![CDATA[APIs]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[hubkey]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://www.mylifeinaminute.com/?p=262</guid>
		<description><![CDATA[Over at the Development Hole, the HubKey crew has been busy building out a SharePoint API that mimics the internal SharePoint object model. If you have ever felt the pain of having to have a SharePoint instance/farm/installation available to run your code again, you&#8217;ll appreciate what HubKey is doing. You can grab a beta of [...]]]></description>
			<content:encoded><![CDATA[<p>Over at the <a href="http://geek.hubkey.com" title="Development Hole">Development Hole</a>, the <a href="http://www.hubkey.com/" title="HubKey">HubKey</a> crew has been busy building out a <a href="http://geek.hubkey.com/2008/11/sharepoint-api-client-side-object-model.html" title="SharePoint API: A client-side object model">SharePoint API</a> that mimics the internal SharePoint object model.</p>
<p>If you have ever felt the pain of having to have a SharePoint instance/farm/installation available to run your code again, you&#8217;ll appreciate what <a href="http://www.hubkey.com/" title="HubKey">HubKey</a> is doing.  You can grab a beta of their API <a href="http://www.hubkey.com/contact.aspx">here</a> (select HubKey SharePoint API as your interest).</p>
<p><map name='google_ad_map_262_0feb153b14d1a0fb'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/262?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_262_0feb153b14d1a0fb' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=262&amp;url= http%3A%2F%2Fwww.mylifeinaminute.com%2F2008%2F12%2F23%2Fhubkeys-development-hole%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://www.mylifeinaminute.com/2008/12/23/hubkeys-development-hole/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updating User Profile Properties for the Current User</title>
		<link>http://www.mylifeinaminute.com/2008/12/16/updating-user-profile-properties-for-the-current-user/</link>
		<comments>http://www.mylifeinaminute.com/2008/12/16/updating-user-profile-properties-for-the-current-user/#comments</comments>
		<pubDate>Tue, 16 Dec 2008 16:46:48 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[MSDN]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[Sharepoint Server]]></category>
		<category><![CDATA[TechNet]]></category>
		<category><![CDATA[Visual Studio 2005]]></category>
		<category><![CDATA[Visual Studio 2008]]></category>
		<category><![CDATA[Windows SharePoint Services]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[moss 2007]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint Profile Management]]></category>

		<guid isPermaLink="false">http://www.mylifeinaminute.com/?p=256</guid>
		<description><![CDATA[Updates to a user&#8217;s profile properties can be performed with the following:]]></description>
			<content:encoded><![CDATA[<p>Updates to a user&#8217;s profile properties can be performed with the following:</p>
<p><span id="more-256"></span></p>
<pre>
<pre class="brush: csharp; title: ; notranslate">
SPSite site = SPContext.GetContext(HttpContext.Current).Site;
                ServerContext serverContext = ServerContext.GetContext(site);

                UserProfileManager profileManager = new UserProfileManager(serverContext);
                UserProfile currentUserProfile = profileManager.GetUserProfile(System.Web.HttpContext.Current.User.Identity.Name);

                if (this.chkTerms.Checked)
                    currentUserProfile[&quot;TermsOfUseAccepted&quot;].Value = &quot;true&quot;;
                else
                    currentUserProfile[&quot;TermsOfUseAccepted&quot;].Value = &quot;false&quot;;

                currentUserProfile[&quot;SecurityQuestion1&quot;].Value = this.lstQuestion1.SelectedItem.Text + &quot;|&quot; + Server.HtmlEncode(this.txtQuestion1Ans.Text);
                currentUserProfile[&quot;SecurityQuestion2&quot;].Value = this.lstQuestion2.SelectedItem.Text + &quot;|&quot; + Server.HtmlEncode(this.txtQuestion2Ans.Text);
                currentUserProfile[&quot;SecurityQuestion3&quot;].Value = this.lstQuestion3.SelectedItem.Text + &quot;|&quot; + Server.HtmlEncode(this.txtQuestion3Ans.Text);

                currentUserProfile.Commit();

                site.RootWeb.Dispose();
                site.Dispose();
</pre>
</pre>
<p><map name='google_ad_map_256_0feb153b14d1a0fb'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/256?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_256_0feb153b14d1a0fb' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=256&amp;url= http%3A%2F%2Fwww.mylifeinaminute.com%2F2008%2F12%2F16%2Fupdating-user-profile-properties-for-the-current-user%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://www.mylifeinaminute.com/2008/12/16/updating-user-profile-properties-for-the-current-user/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Retrieving User Profile Properties for the Current User</title>
		<link>http://www.mylifeinaminute.com/2008/12/16/retrieving-user-profile-properties-for-the-current-user/</link>
		<comments>http://www.mylifeinaminute.com/2008/12/16/retrieving-user-profile-properties-for-the-current-user/#comments</comments>
		<pubDate>Tue, 16 Dec 2008 16:42:10 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[MSDN]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[Sharepoint Server]]></category>
		<category><![CDATA[TechNet]]></category>
		<category><![CDATA[Visual Studio 2005]]></category>
		<category><![CDATA[Visual Studio 2008]]></category>
		<category><![CDATA[Windows SharePoint Services]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[moss 2007]]></category>
		<category><![CDATA[Shared Services Provider]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint Profile Management]]></category>
		<category><![CDATA[SharePoint User Management]]></category>

		<guid isPermaLink="false">http://www.mylifeinaminute.com/?p=254</guid>
		<description><![CDATA[Retrieving a user&#8217;s profile properties can be achieved with the following block: Note that this buids on Creating Custom Profile Properties Through Code.]]></description>
			<content:encoded><![CDATA[<p>Retrieving a user&#8217;s profile properties can be achieved with the following block:</p>
<p><span id="more-254"></span></p>
<pre>
<pre class="brush: csharp; title: ; notranslate">
SPSite site = SPContext.GetContext(HttpContext.Current).Site;
            ServerContext serverContext = ServerContext.GetContext(site);

            UserProfileManager profileManager = new UserProfileManager(serverContext);
            UserProfile currentUserProfile = null;

            if (profileManager.UserExists(System.Web.HttpContext.Current.User.Identity.Name))
                currentUserProfile = profileManager.GetUserProfile(System.Web.HttpContext.Current.User.Identity.Name);
            else
                currentUserProfile = profileManager.CreateUserProfile(System.Web.HttpContext.Current.User.Identity.Name);

            string termsOfUseAnswered = (string)currentUserProfile[&quot;TermsOfUseAccepted&quot;].Value;
            string securityQuestion1 = (string)currentUserProfile[&quot;SecurityQuestion1&quot;].Value;
            string securityQuestion2 = (string)currentUserProfile[&quot;SecurityQuestion2&quot;].Value;
            string securityQuestion3 = (string)currentUserProfile[&quot;SecurityQuestion3&quot;].Value;
</pre>
</pre>
<p>Note that this buids on <a href="/2008/12/16/creating-custom-profile-properties-through-code-c/" title="Creating Custom Profile Properties Through Code (C#)">Creating Custom Profile Properties Through Code</a>.</p>
<p><map name='google_ad_map_254_0feb153b14d1a0fb'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/254?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_254_0feb153b14d1a0fb' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=254&amp;url= http%3A%2F%2Fwww.mylifeinaminute.com%2F2008%2F12%2F16%2Fretrieving-user-profile-properties-for-the-current-user%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://www.mylifeinaminute.com/2008/12/16/retrieving-user-profile-properties-for-the-current-user/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating Custom Profile Properties through Code (C#)</title>
		<link>http://www.mylifeinaminute.com/2008/12/16/creating-custom-profile-properties-through-code-c/</link>
		<comments>http://www.mylifeinaminute.com/2008/12/16/creating-custom-profile-properties-through-code-c/#comments</comments>
		<pubDate>Tue, 16 Dec 2008 16:27:21 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[MSDN]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[Sharepoint Server]]></category>
		<category><![CDATA[TechNet]]></category>
		<category><![CDATA[Visual Studio 2005]]></category>
		<category><![CDATA[Visual Studio 2008]]></category>
		<category><![CDATA[Windows SharePoint Services]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[moss 2007]]></category>
		<category><![CDATA[Shared Services Provider]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint Profile Management]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://www.mylifeinaminute.com/?p=248</guid>
		<description><![CDATA[I recently needed to add several custom profile properties through a web part for tracking a users&#8217; security preferences for a particular web application. The following is the method used to create four new properties in the SSP: Note that the current context (HttpContext.Current) needs to be saved off, set to null, then reinstated upon [...]]]></description>
			<content:encoded><![CDATA[<p>I recently needed to add several custom profile properties through a web part for tracking a users&#8217; security preferences for a particular web application.</p>
<p>The following is the method used to create four new properties in the SSP:</p>
<p><span id="more-248"></span></p>
<pre>
<pre class="brush: csharp; title: ; notranslate">
private void VerifyCreateBaseProfileProperties()
        {
            SPSite site = SPContext.GetContext(HttpContext.Current).Site;
            Guid siteId = site.ID;
            HttpContext savedContext = HttpContext.Current;

            SPSecurity.RunWithElevatedPrivileges(delegate()
            {
                using (SPSite elevatedSite = new SPSite(siteId))
                {
                    try
                    {
                        HttpContext.Current = null;

                        elevatedSite.AllowUnsafeUpdates = true;
                        elevatedSite.RootWeb.AllowUnsafeUpdates = true;

                        ServerContext serverContext = ServerContext.GetContext(elevatedSite);

                        UserProfileManager profileManager = new UserProfileManager(serverContext);
                        UserProfileConfigManager profileConfigManager = new UserProfileConfigManager(serverContext);
                        PropertyCollection propertyCollection = profileConfigManager.GetProperties();

                        bool question1Exists = false;
                        bool question2Exists = false;
                        bool question3Exists = false;
                        bool termsOfUseExists = false;

                        foreach (Property property in profileManager.Properties)
                        {
                            switch (property.Name)
                            {
                                case &quot;SecurityQuestion1&quot;:
                                    question1Exists = true;
                                    break;
                                case &quot;SecurityQuestion2&quot;:
                                    question2Exists = true;
                                    break;
                                case &quot;SecurityQuestion3&quot;:
                                    question3Exists = true;
                                    break;
                                case &quot;TermsOfUseAccepted&quot;:
                                    termsOfUseExists = true;
                                    break;
                            }
                        }

                        if (!question1Exists)
                        {
                            Property question1 = propertyCollection.Create(false);
                            question1.Name = &quot;SecurityQuestion1&quot;;
                            question1.DisplayName = &quot;Security Question 1&quot;;
                            question1.Type = &quot;string&quot;;
                            question1.PrivacyPolicy = PrivacyPolicy.OptIn;
                            question1.DefaultPrivacy = Privacy.Private;
                            question1.Description = &quot;Security Question 1&quot;;
                            question1.IsSearchable = false;
                            question1.IsVisibleOnEditor = false;
                            question1.IsAlias = false;
                            question1.Length = 100;
                            question1.IsUserEditable = true;
                            propertyCollection.Add(question1);
                        }
                        if (!question2Exists)
                        {
                            Property question2 = propertyCollection.Create(false);
                            question2.Name = &quot;SecurityQuestion2&quot;;
                            question2.DisplayName = &quot;Security Question 2&quot;;
                            question2.Type = &quot;string&quot;;
                            question2.PrivacyPolicy = PrivacyPolicy.OptIn;
                            question2.DefaultPrivacy = Privacy.Private;
                            question2.Description = &quot;Security Question 2&quot;;
                            question2.IsSearchable = false;
                            question2.IsVisibleOnEditor = false;
                            question2.IsAlias = false;
                            question2.Length = 100;
                            question2.IsUserEditable = true;
                            propertyCollection.Add(question2);
                        }
                        if (!question3Exists)
                        {
                            Property question3 = propertyCollection.Create(false);
                            question3.Name = &quot;SecurityQuestion3&quot;;
                            question3.DisplayName = &quot;Security Question 3&quot;;
                            question3.Type = &quot;string&quot;;
                            question3.PrivacyPolicy = PrivacyPolicy.OptIn;
                            question3.DefaultPrivacy = Privacy.Private;
                            question3.Description = &quot;Security Question 3&quot;;
                            question3.IsSearchable = false;
                            question3.IsVisibleOnEditor = false;
                            question3.IsAlias = false;
                            question3.Length = 100;
                            question3.IsUserEditable = true;
                            propertyCollection.Add(question3);
                        }
                        if (!termsOfUseExists)
                        {
                            Property termsofUsequestion = propertyCollection.Create(false);
                            termsofUsequestion.Name = &quot;TermsOfUseAccepted&quot;;
                            termsofUsequestion.DisplayName = &quot;Terms Of Use Accepted&quot;;
                            termsofUsequestion.Type = &quot;string&quot;;
                            termsofUsequestion.PrivacyPolicy = PrivacyPolicy.OptIn;
                            termsofUsequestion.DefaultPrivacy = Privacy.Private;
                            termsofUsequestion.Description = &quot;Terms Of Use Accepted&quot;;
                            termsofUsequestion.IsSearchable = false;
                            termsofUsequestion.IsVisibleOnEditor = false;
                            termsofUsequestion.IsAlias = false;
                            termsofUsequestion.Length = 10;
                            termsofUsequestion.IsUserEditable = true;
                            propertyCollection.Add(termsofUsequestion);
                        }
                    }
                    catch (Exception exc)
                    {
                    }
                    finally
                    {
                        elevatedSite.Dispose();
                    }
                }
            });

            site.Dispose();
            HttpContext.Current = savedContext;
        }
</pre>
</pre>
<p>Note that the current context (HttpContext.Current) needs to be saved off, set to null, then reinstated upon the completion of the method.</p>
<p><map name='google_ad_map_248_0feb153b14d1a0fb'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/248?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_248_0feb153b14d1a0fb' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=248&amp;url= http%3A%2F%2Fwww.mylifeinaminute.com%2F2008%2F12%2F16%2Fcreating-custom-profile-properties-through-code-c%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://www.mylifeinaminute.com/2008/12/16/creating-custom-profile-properties-through-code-c/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Isolator For SharePoint Follow-up</title>
		<link>http://www.mylifeinaminute.com/2008/12/02/isolator-for-sharepoint-follow-up/</link>
		<comments>http://www.mylifeinaminute.com/2008/12/02/isolator-for-sharepoint-follow-up/#comments</comments>
		<pubDate>Tue, 02 Dec 2008 14:00:08 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Visual Studio 2008]]></category>
		<category><![CDATA[Isolator]]></category>
		<category><![CDATA[Typemock]]></category>
		<category><![CDATA[Unit Testing]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://www.mylifeinaminute.com/?p=225</guid>
		<description><![CDATA[In a follow-up to the previous post relating to Isolator for SharePoint (by Typemock), I was one of the lucky 50 to win a full license.  I suppose it is time to get on to some unit testing.]]></description>
			<content:encoded><![CDATA[<p>In a follow-up to the previous post relating to <a title="Isolator for SharePoint by Typemock" href="/2008/11/24/isolator-for-sharepoint-by-typemock/">Isolator for SharePoint (by Typemock)</a>, I was one of the lucky 50 to win a full license.  I suppose it is time to get on to some unit testing.</p>
<p><map name='google_ad_map_225_0feb153b14d1a0fb'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/225?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_225_0feb153b14d1a0fb' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=225&amp;url= http%3A%2F%2Fwww.mylifeinaminute.com%2F2008%2F12%2F02%2Fisolator-for-sharepoint-follow-up%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://www.mylifeinaminute.com/2008/12/02/isolator-for-sharepoint-follow-up/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Microsoft Web Platform Installer</title>
		<link>http://www.mylifeinaminute.com/2008/12/01/microsoft-web-platform-installer/</link>
		<comments>http://www.mylifeinaminute.com/2008/12/01/microsoft-web-platform-installer/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 15:24:21 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Internet Information Services]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Server 2003]]></category>
		<category><![CDATA[Server 2008]]></category>
		<category><![CDATA[Vista]]></category>
		<category><![CDATA[Visual Studio 2008]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Web Platform Installer]]></category>

		<guid isPermaLink="false">http://www.mylifeinaminute.com/?p=223</guid>
		<description><![CDATA[Microsoft has just released the Web Platform Installer (RC1).   What is the Web Platform Installer you ask?  From Microsoft: &#8220;The Web Platform Installer (Web PI) is a simple tool that installs Microsoft&#8217;s entire Web Platform, including IIS7, Visual Web Developer 2008 Express Edition, SQL Server 2008 Express Edition and the .NET Framework. Using the Web [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Microsoft" href="/tag/microsoft/">Microsoft</a> has just released the <a title="Microsoft Web Platform Installer (RC1)" href="http://www.microsoft.com/web/channel/products/WebPlatformInstaller.aspx">Web Platform Installer (RC1)</a>.   What is the <a title="Microsoft Web Platform Installer (RC1)" href="http://www.microsoft.com/web/channel/products/WebPlatformInstaller.aspx">Web Platform Installer</a> you ask?  From <a title="Microsoft" href="/tag/microsoft/">Microsoft</a>:</p>
<blockquote><p>&#8220;The Web Platform Installer (Web PI) is a simple tool that installs Microsoft&#8217;s entire Web Platform, including IIS7, Visual Web Developer 2008 Express Edition, SQL Server 2008 Express Edition and the .NET Framework. Using the Web Platform Installer’s user interface, you can choose to install either specific products or the entire Microsoft Web Platform onto your computer. The Web PI also helps keep your products up to date by always offering the latest additions to the Web Platform.&#8221;</p></blockquote>
<p>The Web PI certainly looks promising as a quick ramp-up when setting up a development environment (or even a one-off server environment).</p>
<p><map name='google_ad_map_223_0feb153b14d1a0fb'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/223?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_223_0feb153b14d1a0fb' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=223&amp;url= http%3A%2F%2Fwww.mylifeinaminute.com%2F2008%2F12%2F01%2Fmicrosoft-web-platform-installer%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://www.mylifeinaminute.com/2008/12/01/microsoft-web-platform-installer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Isolator for SharePoint by Typemock</title>
		<link>http://www.mylifeinaminute.com/2008/11/24/isolator-for-sharepoint-by-typemock/</link>
		<comments>http://www.mylifeinaminute.com/2008/11/24/isolator-for-sharepoint-by-typemock/#comments</comments>
		<pubDate>Tue, 25 Nov 2008 01:46:27 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[Sharepoint Server]]></category>
		<category><![CDATA[Visual Studio 2005]]></category>
		<category><![CDATA[Visual Studio 2008]]></category>
		<category><![CDATA[Windows SharePoint Services]]></category>
		<category><![CDATA[Isolator]]></category>
		<category><![CDATA[moss 2007]]></category>
		<category><![CDATA[Patterns & Practices]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint Guidance]]></category>
		<category><![CDATA[Typemock]]></category>
		<category><![CDATA[Unit Testing]]></category>

		<guid isPermaLink="false">http://www.mylifeinaminute.com/?p=220</guid>
		<description><![CDATA[Typemock have just released their newest product, Isolator for SharePoint.  Isolator is required to run the unit tests included in the latest release from the Patterns &#38; Practices group for SharePoint guidance.  Oh, and did I mention that you might be able to snag a full license? Typemock are offering their new product for unit [...]]]></description>
			<content:encoded><![CDATA[<p>Typemock have just released their newest product, <a title="Isolator for SharePoint" href="http://www.typemock.com/sharepointpage.php?utm_source=sp_bb&amp;utm_medium=blog_4sp&amp;utm_campaign=sp_bb">Isolator for SharePoint</a>.  Isolator is required to run the unit tests included in the latest release from the <a title="patterns &amp; practices SharePoint Guidance" href="http://www.codeplex.com/spg">Patterns &amp; Practices group for SharePoint guidance</a>.  Oh, and did I mention that you might be able to snag a full license?</p>
<p>Typemock are offering their new product for <a href="http://www.typemock.com/sharepointpage.php?utm_source=sp_bb&amp;utm_medium=blog_4sp&amp;utm_campaign=sp_bb">unit testing SharePoint</a> called Isolator For SharePoint, for a special introduction price. it is the only tool that allows you to <a href="http://blog.typemock.com/2008/11/newisolatorforsharepointtoolforunittest.html?utm_source=typeblog&amp;utm_medium=sp_bb&amp;utm_campaign=typeblog">unit test SharePoint</a> without a SharePoint server. To learn more <a href="http://www.typemock.com/sharepointpage.php?utm_source=sp_bb&amp;utm_medium=blog_4sp&amp;utm_campaign=sp_bb">click here</a>.   <strong>The first 50 bloggers </strong>who blog this text in their blog and tell us about it, will get <span style="color: #ff0000;">a Full Isolator license, Free</span>. for rules and info <a href="http://blog.typemock.com/2008/11/newisolatorforsharepointtoolforunittest.html">click here</a>.</p>
<p><map name='google_ad_map_220_0feb153b14d1a0fb'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/220?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_220_0feb153b14d1a0fb' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=220&amp;url= http%3A%2F%2Fwww.mylifeinaminute.com%2F2008%2F11%2F24%2Fisolator-for-sharepoint-by-typemock%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://www.mylifeinaminute.com/2008/11/24/isolator-for-sharepoint-by-typemock/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Served from: www.mylifeinaminute.com @ 2012-02-07 16:34:45 by W3 Total Cache -->
