<?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>John Scott&#039;s SharePoint Kool-Aid</title>
	<atom:link href="http://vspug.com/jscott/feed/" rel="self" type="application/rss+xml" />
	<link>http://vspug.com/jscott</link>
	<description>It&#039;s time to drink the Kool-Aid</description>
	<lastBuildDate>Wed, 10 Feb 2010 12:02:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>March 10th, 2010 &#8211; Introduction to SharePoint 2010 @ Wheeling , WV AITP Event</title>
		<link>http://vspug.com/jscott/2010/02/09/20100310event/</link>
		<comments>http://vspug.com/jscott/2010/02/09/20100310event/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 02:23:31 +0000</pubDate>
		<dc:creator>John Scott</dc:creator>
				<category><![CDATA[Presentations]]></category>
		<category><![CDATA[SharePoint 2010]]></category>

		<guid isPermaLink="false">http://vspug.com/jscott/?p=19</guid>
		<description><![CDATA[Learn how to leverage Microsoft SharePoint to gain better control over your content, streamline your business process, and share information with others in your organization.  In this introduction will also go over the many new features and enhancements that will be included in SharePoint 2010 that is being released later this year and compare the difference between the versions of SharePoint that are available]]></description>
			<content:encoded><![CDATA[<p><strong>Interest in finding out more about Microsoft SharePoint?</strong></p>
<p><a title="Wheeling AITP - March 2010 Meeting - Introduction to SharePoint" href="http://www.aitp-wheeling.org/Events.html" target="_blank">I will be presenting at the March 2010, Wheeling, WV Association of IT Professionals (AITP) meeting.</a></p>
<p>Learn how to leverage Microsoft SharePoint to gain better control over your content, streamline your business process, and share information with others in your organization.  In this introduction will also go over the many new features and enhancements that will be included in SharePoint 2010 that is being released later this year and compare the difference between the versions of SharePoint that are available.</p>
]]></content:encoded>
			<wfw:commentRss>http://vspug.com/jscott/2010/02/09/20100310event/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Title, description and navigation Link in List Settings Throws a &#039;value does not fall within the expected range&#039; Exception</title>
		<link>http://vspug.com/jscott/2009/06/30/title-description-and-navigation-link-in-list-settings-throws-a-value-does-not-fall-within-the-expected-range-exception/</link>
		<comments>http://vspug.com/jscott/2009/06/30/title-description-and-navigation-link-in-list-settings-throws-a-value-does-not-fall-within-the-expected-range-exception/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 18:40:00 +0000</pubDate>
		<dc:creator>John Scott</dc:creator>
		
		<guid isPermaLink="false"></guid>
		<description><![CDATA[Recently I migrated a site from Development to Testing and then to Production using the SharePoint Deployment Wizard (&#160;http://www.codeplex.com/SPDeploymentWizard&#160;) from CodePlex.&#160; For the most part everything migrated over smooth.
I have a subsite that is for all the InfoPath Forms.&#160;&#160; All the InfoPath forms are displayed in a web browser using forms services.&#160; Each form has [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I migrated a site from Development to Testing and then to Production using the SharePoint Deployment Wizard (&nbsp;<a href="http://www.codeplex.com/SPDeploymentWizard"><span style="color:#0033cc;">http://www.codeplex.com/SPDeploymentWizard</span></a>&nbsp;) from CodePlex.&nbsp; For the most part everything migrated over smooth.</p>
<p>I have a subsite that is for all the InfoPath Forms.&nbsp;&nbsp; All the InfoPath forms are displayed in a web browser using forms services.&nbsp; Each form has a workflow that is kicked off when a form is submitted.&nbsp;&nbsp; This all still worked.&nbsp; </p>
<p>But when you click on the &#39;<span style="text-decoration:underline;">Title, description and navigation</span>&#39; Link in List Settings for the forms libraries for the 2 sites where it was migrated to (testing and production) you get the following error&#8230;</p>
<p>Value does not fall within the expected range.&nbsp;&nbsp; at Microsoft.SharePoint.SPListTemplateCollection.FindServerTemplate(Guid featureId, Int32 templateType) <br />&nbsp;&nbsp; at Microsoft.SharePoint.SPList.get_ServerTemplate() <br />&nbsp;&nbsp; at Microsoft.SharePoint.SPList.get_OnQuickLaunch() <br />&nbsp;&nbsp; at Microsoft.SharePoint.ApplicationPages.ListGeneralSettingsPage.OnLoad(EventArgs e) <br />&nbsp;&nbsp; at System.Web.UI.Control.LoadRecursive() <br />&nbsp;&nbsp; at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)</p>
<p>It turned out that the &#39;Office SharePoint Server Enterpirese Site features&#39; feature wasn&#39;t activated in the new site.&nbsp; </p>
<p>This wasn&#39;t the logical place for me to look at first since&#8230;</p>
<ol>
<li>I assumed the deployment tool would of activated it.</li>
<li>The forms were rendering in a web page and could be submitted.&nbsp; Only this one list setting link didn&#39;t work.</li>
</ol>
<p>I hope if your having this issue, this helps you out.</p>
]]></content:encoded>
			<wfw:commentRss>http://vspug.com/jscott/2009/06/30/title-description-and-navigation-link-in-list-settings-throws-a-value-does-not-fall-within-the-expected-range-exception/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Programatically using OOTB SharePoint Error Handling</title>
		<link>http://vspug.com/jscott/2009/04/10/ootb-sharepoint-error-handling-in-code/</link>
		<comments>http://vspug.com/jscott/2009/04/10/ootb-sharepoint-error-handling-in-code/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 13:00:00 +0000</pubDate>
		<dc:creator>John Scott</dc:creator>
		
		<guid isPermaLink="false"></guid>
		<description><![CDATA[Okay, so if you get an error in your custom code that you want to handle&#160;using&#160;the &#34;out of the box&#34; SharePoint mechanisms, use the following lines of code&#8230;&#160;&#160;
Make sure you only call the &#39;TransferToErrorPage&#39; method if you are handling errors in the a user interface (web part, page, etc&#8230;).&#160; Don&#39;t call&#160;that method&#160;in a workflow, event [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-size:x-small;"><span style="font-family:arial,helvetica,sans-serif;"><span style="font-size:small;">Okay, so if you get an error in your custom code that you want to handle&nbsp;using&nbsp;the &quot;out of the box&quot; SharePoint mechanisms, use the following lines of code&#8230;&nbsp;&nbsp;</span></span></span></p>
<p><span style="font-family:arial,helvetica,sans-serif;"><span style="font-size:small;">Make sure you only call the <em>&#39;</em><em>TransferToErrorPage&#39;</em> method if you are handling errors in the a user interface (web part, page, etc&#8230;).&nbsp; Don&#39;t call&nbsp;that method&nbsp;in a workflow, event handler, etc&#8230;</span></span></p>
<p><span style="font-family:arial,helvetica,sans-serif;"><span style="font-size:x-small;"></span></span></p>
<p><span style="font-size:x-small;"></span></p>
<p><p><code><span style="font-size:x-small;color:#008000;"><span style="font-size:x-small;color:#008000;">//This will write to SharePoint&#39;s log files.</span></span></code> </p>
<p><span style="font-size:x-small;">Microsoft.Office.Server.Diagnostics.</span><span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">PortalLog</span></span><span style="font-size:x-small;">.LogString(</span><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">&quot;Your Error Message&quot;</span></span><span style="font-size:x-small;">);<span style="font-size:x-small;"> </span></span></p>
<p><code></p>
<p><span style="font-size:x-small;color:#008000;"><span style="font-size:x-small;color:#008000;">//This will redirect you to SharePoint&#39;s error page.</span></span></p>
<p><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"><span style="font-size:x-small;"></p>
<p>Microsoft.SharePoint.Utilities.<span style="font-size:x-small;color:#2b91af;"><span style="font-size:x-small;color:#2b91af;">SPUtility</span></span><span style="font-size:x-small;">.TransferToErrorPage(</span><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;">&quot;Message to display on the page&quot;</span></span><span style="font-size:x-small;">);</span></p>
<p></span></span></span></span></p>
<p></code></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</p>
<p><span style="font-size:x-small;"></span></p>
]]></content:encoded>
			<wfw:commentRss>http://vspug.com/jscott/2009/04/10/ootb-sharepoint-error-handling-in-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Turn off the &quot;Powered by Forms Services&quot; Logo on InfoPath Web Forms</title>
		<link>http://vspug.com/jscott/2009/03/19/turn-off-the-quot-powered-by-forms-services-quot-logo-on-infopath-web-forms/</link>
		<comments>http://vspug.com/jscott/2009/03/19/turn-off-the-quot-powered-by-forms-services-quot-logo-on-infopath-web-forms/#comments</comments>
		<pubDate>Thu, 19 Mar 2009 14:42:00 +0000</pubDate>
		<dc:creator>John Scott</dc:creator>
		
		<guid isPermaLink="false"></guid>
		<description><![CDATA[I don&#39;t understand why Microsoft stuck&#160;that&#160;logo on all the web based InfoPath forms by default.&#160; I could maybe see the reasoning if Forms Services was free and came with WSS but it&#39;s a freakin MOSS Enterprise Feature.&#160; Go figure.
Anyway, on my quest to find out how to turn it off, I came across a Microsoft [...]]]></description>
			<content:encoded><![CDATA[<p>I don&#39;t understand why Microsoft stuck&nbsp;that&nbsp;logo on all the web based InfoPath forms by default.&nbsp; I could <em>maybe </em>see the reasoning if Forms Services was free and came with WSS but it&#39;s a freakin MOSS Enterprise Feature.&nbsp; Go figure.</p>
<p>Anyway, on my quest to find out how to turn it off, I came across a Microsoft Hotfix that is suppose to resolve this issue.&nbsp; Not the way to go.&nbsp; The hotfix must of been meant for a version of InfoPath forms services / MOSS&nbsp;prior to SP1.&nbsp; </p>
<p>Then I found this blog by Michael Yeager: <a href="http://blogs.msdn.com/michael_yeager/archive/2008/12/01/using-stsadm-to-set-form-services-properties.aspx">Using STSADM to set Form Services Properties</a> (<a href="http://blogs.msdn.com/michael_yeager/archive/2008/12/01/using-stsadm-to-set-form-services-properties.aspx">http://blogs.msdn.com/michael_yeager/archive/2008/12/01/using-stsadm-to-set-form-services-properties.aspx</a>) that explained some STSADM options for Form Services.</p>
<p>To turn it off run, you simply run&#8230; <span style="font-size:x-small;"><strong>stsadm -o setformsserviceproperty -pn AllowBranding -pv false</strong></span></p>
<p><span style="font-size:x-small;">Thanks Again MY</span></p>
]]></content:encoded>
			<wfw:commentRss>http://vspug.com/jscott/2009/03/19/turn-off-the-quot-powered-by-forms-services-quot-logo-on-infopath-web-forms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Forcing the download of a SharePoint Document</title>
		<link>http://vspug.com/jscott/2008/12/19/forcing-the-download-of-a-sharepoint-document/</link>
		<comments>http://vspug.com/jscott/2008/12/19/forcing-the-download-of-a-sharepoint-document/#comments</comments>
		<pubDate>Fri, 19 Dec 2008 17:09:00 +0000</pubDate>
		<dc:creator>John Scott</dc:creator>
		
		<guid isPermaLink="false"></guid>
		<description><![CDATA[Recently, I implemented MOSS 2007 as a web content manager for a client&#39;s public website.&#160; One of the things they wanted was the ability to force the &#34;Save As&#8230;&#34; dialog for certain documents (in this case, they were media files).&#160; 
The requirements were to get this working for Internet Explorer 7 and FireFox 2 and [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, I implemented MOSS 2007 as a web content manager for a client&#39;s public website.&nbsp; One of the things they wanted was the ability to force the &quot;Save As&#8230;&quot; dialog for certain documents (in this case, they were media files).&nbsp; </p>
<p>The requirements were to get this working for Internet Explorer 7 and FireFox 2 and above, although I think this will work for most if not all the browsers.&nbsp; We tested on a couple others but I don&#39;t remember for sure if Chrome and/or Safari were on that list.</p>
<p>The code below assumes that the web path to the file that needs to be downloaded is passed in via the &#39;file&#39; URL parameter.</p>
<p><code><font color="#0000ff" size="2"><font color="#0000ff" size="2">void</font></font><font size="2"> Page_Load(</font><font color="#0000ff" size="2"><font color="#0000ff" size="2">object</font></font><font size="2"> sender, System.</font><font color="#2b91af" size="2"><font color="#2b91af" size="2">EventArgs</font></font><font size="2"> e) <br />{<br />&nbsp;&nbsp;&nbsp; </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">if</font></font><font size="2"> (Request.QueryString[</font><font color="#a31515" size="2"><font color="#a31515" size="2">&quot;file&quot;</font></font><font size="2">] != </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">null</font></font><font size="2">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DownloadFile(Request.QueryString[</font><font color="#a31515" size="2"><font color="#a31515" size="2">&quot;file&quot;</font></font><font size="2">].ToString());<br />} </font></code></p>
<p><code></font></font><font size="2"></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">private</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">void</font></font><font size="2"> DownloadFile(</font><font color="#0000ff" size="2"><font color="#0000ff" size="2">string</font></font><font size="2"> fileName)<br />{<br />&nbsp;&nbsp;&nbsp; </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">string</font></font><font size="2"> path = System.Web.</font><font color="#2b91af" size="2"><font color="#2b91af" size="2">HttpContext</font></font><font size="2">.Current.Server.MapPath( fileName ); <br />&nbsp;&nbsp;&nbsp; </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">string</font></font><font size="2"> name = System.IO.</font><font color="#2b91af" size="2"><font color="#2b91af" size="2">Path</font></font><font size="2">.GetFileName( path ); </font></font><font size="2"></font></code><code><font size="2"></p>
<p>&nbsp;&nbsp;&nbsp; Microsoft.SharePoint.SPFile spFile = <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Microsoft.SharePoint.SPContext.Current.Web.GetFile(fileName);</p>
<p>&nbsp;&nbsp;&nbsp; Response.ClearHeaders();<br />&nbsp;&nbsp;&nbsp; Response.ClearContent();</p>
<p>&nbsp;&nbsp;&nbsp; Response.ContentType = </font><font color="#a31515" size="2"><font color="#a31515" size="2">&quot;application/force-download&quot;</font></font><font size="2">;<br />&nbsp;&nbsp;&nbsp; Response.AppendHeader( </font><font color="#a31515" size="2"><font color="#a31515" size="2">&quot;content-disposition&quot;</font></font><font size="2">, </font><font color="#a31515" size="2"><font color="#a31515" size="2">&quot;attachment; filename=&quot;</font></font><font size="2"> + name );<br />&nbsp;&nbsp;&nbsp; Response.BinaryWrite(spFile.OpenBinary()); <br />&nbsp;&nbsp;&nbsp; Response.End(); <br />}</font></p>
<p></code>Off the top of my head, I can think of 3 different ways you could use this code.&nbsp; </p>
<ol>
<li>Using SharePoint Designer, put this&nbsp;code in the code behind for a page in the site.</li>
<li>Create a page in visual studio, use a web deployment project to compile it to a DLL, Deploy the web page somewhere under the _layouts folder, and deploy the DLL to the Bin or the GAC.&nbsp; See <a href="/jscott/archive/2008/04/15/integrating-asp-net-2-0-web-pages-into-sharepoint-2007.aspx">/jscott/archive/2008/04/15/integrating-asp-net-2-0-web-pages-into-sharepoint-2007.aspx</a>&nbsp;for more details</li>
<li>Create a HttpModule that will execute the above code.</li>
</ol>
<p>To keep it simple for the non-technical&nbsp;content administrators, we went with option 1.&nbsp; This option is my least favorite technically but I think the easist for the end user.&nbsp; We create a SaveFile.aspx page in SharePoint designer and stuck it in the top most level of the&nbsp;root site (<font color="#ff0000"><em><u>NOT in the pages library)</u></em></font>.&nbsp;</p>
<p>So the file is at <a href="http://www._company_.com/">www._company_.com</a><a href="http://www.!company!.com/SaveFile.aspx">/SaveFile.aspx</a>.</p>
<p>We then would have the content administrators link to the document like they normally would throught the publishing GUI.&nbsp; The URL would be something like, <a href="http://www._company_.com/">www._company_.com</a><a href="http://www.%3ccompany%3e.com/site1/Documents/Medai.wmv">/site1/Documents/Medai.wmv</a></p>
<p>Then we would have them insert <strong><u>/SaveFile.aspx?file=</u></strong> right after <a href="http://www._company_.com/">www._company_.com</a><a href="http://www.%3ccompany%3e.com/"></a>&nbsp;resulting in <a href="http://www._company_.com/">www._company_.com</a><a href="http://www.%3ccompany%3e.com/SaveFile.aspx?file=/site1/Documents/Medai.wmv">/SaveFile.aspx?file=/site1/Documents/Medai.wmv</a></p>
<p>Hope this helps</p>
]]></content:encoded>
			<wfw:commentRss>http://vspug.com/jscott/2008/12/19/forcing-the-download-of-a-sharepoint-document/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>AITP Pittsburgh Chapter</title>
		<link>http://vspug.com/jscott/2008/12/19/aitp-pittsburgh-chapter/</link>
		<comments>http://vspug.com/jscott/2008/12/19/aitp-pittsburgh-chapter/#comments</comments>
		<pubDate>Fri, 19 Dec 2008 16:44:00 +0000</pubDate>
		<dc:creator>John Scott</dc:creator>
		
		<guid isPermaLink="false"></guid>
		<description><![CDATA[I will be presenting a SharePoint 101 lesson on January 19th, 200 at the AITP Pittsburgh Chapter.&#160; This presentation will be a high level look at SharePoint to introduce organizations to why they should be utilizing SharePoint.&#160; It will be similar to the presentation I did at the Wheeling AITP chapter.

SharePoint 101
Interested in learning why [...]]]></description>
			<content:encoded><![CDATA[<p>I will be presenting a SharePoint 101 lesson on January 19th, 200 at the <a href="http://www.aitp-pgh.org/" target="_blank">AITP Pittsburgh Chapter</a>.&nbsp; This presentation will be a high level look at SharePoint to introduce organizations to why they should be utilizing SharePoint.&nbsp; It will be similar to the presentation I did at the <a href="http://www.aitp.org/organization/chapters/chapterhome.jsp?chapter=209" target="_blank">Wheeling AITP chapter</a>.</p>
<p><font></p>
<p><font><strong><u>SharePoint 101</u></strong></font></p>
<p style="MARGIN:0in 0in 0pt;"><font>Interested in learning why SharePoint Server 2007 is Microsoft&#39;s fastest growing product ever?&nbsp; Want to see how other companies are using SharePoint to meet their business needs?&nbsp; Do you want to learn the differences between Windows SharePoint Services 3.0 (WSS) and Microsoft SharePoint Server 2007?&nbsp; Curious to see how your organization could benefit from SharePoint?&nbsp; Discover the answers to these questions and more at SharePoint 101.</font></p>
<p></font></p>
]]></content:encoded>
			<wfw:commentRss>http://vspug.com/jscott/2008/12/19/aitp-pittsburgh-chapter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Passed the 70-541 and 70-542 exams</title>
		<link>http://vspug.com/jscott/2008/12/19/passed-the-70-541-and-70-542-exams/</link>
		<comments>http://vspug.com/jscott/2008/12/19/passed-the-70-541-and-70-542-exams/#comments</comments>
		<pubDate>Fri, 19 Dec 2008 16:11:00 +0000</pubDate>
		<dc:creator>John Scott</dc:creator>
		
		<guid isPermaLink="false"></guid>
		<description><![CDATA[I finally got around to taking the two development SharePoint exams.&#160; I was a little worried because I&#39;m a horrible test taker and these were my first certification test but&#160;I passed them both on the first shot.&#160; Next up are the configuration ones.&#160; &#160;For anyone thinking about taking the exams I recommend taking the 70-541 [...]]]></description>
			<content:encoded><![CDATA[<p>I finally got around to taking the two development SharePoint exams.&nbsp; I was a little worried because I&#39;m a horrible test taker and these were my first certification test but&nbsp;I passed them both on the first shot.&nbsp; Next up are the configuration ones.&nbsp; &nbsp;For anyone thinking about taking the exams I recommend taking the 70-541 exam and then the 70-542.&nbsp;&nbsp;&nbsp; </p>
<p><strong><a title="Preparation Guide for Exam 70-541" href="http://www.microsoft.com/learning/en/us/exams/70-541.mspx" target="_blank">70-541: TS: Microsoft Windows SharePoint Services 3.0 &#8211; Application Development</a></strong>&nbsp;<br />This exam covers only WSS items.&nbsp; No BDC, no Forms Services, no excel services, etc&#8230;&nbsp; The book <span class="DetailPagesBlackColorMedSubHeading" id="labelExamTitle">Inside <a title="Inside Microsoftr Windowsr SharePointr Services 3.0 " href="http://www.microsoft.com/learning/en/us/books/9692.aspx" target="_blank">Microsoftr Windowsr SharePointr Services 3.0</a></span> was very helpful for this exam.&nbsp; Through the consulting company I work for, I also has access to <a href="https://www.microsoftelearning.com/eLearning/offerDetail.aspx?offerPriceId=138235" target="_blank">Microsoft eLearning &#8211; </a><span class="pageTitle"><a href="https://www.microsoftelearning.com/eLearning/offerDetail.aspx?offerPriceId=138235" target="_blank">Collection 5385: Developing Solutions with Microsoft Windows SharePoint Services 3.0 and Visual Studio 2005</a>.&nbsp; This was helpful but did not come close to going over everything on the test.&nbsp; I would not recommend spending your own money on it.&nbsp; If you can get it through work great.&nbsp; There is also the <a href="https://www.microsoftelearning.com/eLearning/offerDetail.aspx?offerPriceId=138291" target="_blank">Microsoft eLearning &#8211; </a><span class="pageTitle"><a href="https://www.microsoftelearning.com/eLearning/offerDetail.aspx?offerPriceId=138291" target="_blank">Collection 5392: Developing and Extending Microsoft Windows SharePoint Services 3.0 with Visual Studio 2005</a> that looks like it covers the other topics on the test.&nbsp; For some reason, I couldn&#39;t get these throught work so I can&#39;t comment on it.&nbsp; If I could do it again, I would just purchase <a title="Inside Microsoftr Windowsr SharePointr Services 3.0 " href="http://www.microsoft.com/learning/en/us/books/9692.aspx" target="_blank">Microsoftr Windowsr SharePointr Services 3.0</a>&nbsp;and skip the eLearning stuff.&nbsp; Also, feel free to skip the chapters that talk about AJAX.&nbsp; That is not on the test.</span></span></p>
<p><span class="pageTitle"><span class="pageTitle"><a title="Preparation Guide for Exam 70-542" href="http://www.microsoft.com/learning/en/us/exams/70-542.mspx" target="_blank"><strong>70-542: TS: Microsoft Office SharePoint Server 2007 &#8211; Application Development</strong></a></span></span><span class="pageTitle"><span class="pageTitle"><br />This exam covers only the technologies NOT found in WSS.&nbsp; BDC, forms services, excel services, etc&#8230;&nbsp; The book <span class="DetailPagesBlackColorMedSubHeading" id="labelExamTitle"><a title="Inside Microsoftr Office SharePointr Server 2007 " href="http://www.microsoft.com/learning/en/us/books/10472.aspx" target="_blank">Inside Microsoftr Office SharePointr Server 2007</a></span>&nbsp;was very helpful for this exam.&nbsp; The Microsoft Study guide site also recommends <span class="DetailPagesBlackColorMedSubHeading" id="labelExamTitle">Inside the <a href="http://www.microsoft.com/learning/en/us/books/12195.aspx" target="_blank">Index and Search Engines: Microsoftr Office SharePointr Server 2007</a>&nbsp;for this test.&nbsp; Don&#39;t bother.&nbsp;&nbsp;I&#39;m not saying it&#39;s a bad book, but everything you need to know for this exam you can get from the first book.</span></span></span></p>
<p><span class="pageTitle"><span class="pageTitle"><span class="DetailPagesBlackColorMedSubHeading">Unfortunately I don&#39;t think I&#39;m allowed to disclose too much information about the questions on the actual tests so I hope this helps.</span></span></span></p>
<p><span class="pageTitle"><span class="pageTitle"><span class="DetailPagesBlackColorMedSubHeading">Good Luck to anyone planning on taking the tests.</span></span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://vspug.com/jscott/2008/12/19/passed-the-70-541-and-70-542-exams/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Presenting at the Greater Wheeling Chapter of the Association of Information Technology Professionals</title>
		<link>http://vspug.com/jscott/2008/08/20/presenting-at-the-greater-wheeling-chapter-of-the-association-of-information-technology-professionals/</link>
		<comments>http://vspug.com/jscott/2008/08/20/presenting-at-the-greater-wheeling-chapter-of-the-association-of-information-technology-professionals/#comments</comments>
		<pubDate>Thu, 21 Aug 2008 00:09:00 +0000</pubDate>
		<dc:creator>John Scott</dc:creator>
		
		<guid isPermaLink="false"></guid>
		<description><![CDATA[I will be presenting a SharePoint 101 lesson on September 10th.&#160; This lesson will be more of a high level look at SharePoint to introduce organizations to why they should be drinking the SharePoint Kool-Aid.
You can get more details http://www.aitp-wheeling.org/

SharePoint 101
Interested in learning why SharePoint Server 2007 is Microsoft&#39;s fastest growing product ever?&#160; Want to [...]]]></description>
			<content:encoded><![CDATA[<p>I will be presenting a SharePoint 101 lesson on September 10th.&nbsp; This lesson will be more of a high level look at SharePoint to introduce organizations to why they should be drinking the SharePoint Kool-Aid.</p>
<p>You can get more details <a href="http://www.aitp-wheeling.org/">http://www.aitp-wheeling.org/</a></p>
<p><font></p>
<p><font><strong><u>SharePoint 101</u></strong></font></p>
<p style="MARGIN:0in 0in 0pt;"><font>Interested in learning why SharePoint Server 2007 is Microsoft&#39;s fastest growing product ever?&nbsp; Want to see how other companies are using SharePoint to meet their business needs?&nbsp; Do you want to learn the differences between Windows SharePoint Services 3.0 (WSS) and Microsoft SharePoint Server 2007?&nbsp; Curious to see how your organization could benefit from SharePoint?&nbsp; Discover the answers to these questions and more at SharePoint 101.</font></p>
<p></font></p>
]]></content:encoded>
			<wfw:commentRss>http://vspug.com/jscott/2008/08/20/presenting-at-the-greater-wheeling-chapter-of-the-association-of-information-technology-professionals/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Son of the The Dreaded &#039;Server Out Of Memory&#039; Exception &#8211; &#039;The data source control failed to execute the insert command&#039; Exception</title>
		<link>http://vspug.com/jscott/2008/07/12/son-of-the-the-dreaded-server-out-of-memory-exception-the-data-source-control-failed-to-execute-the-insert-command-exception/</link>
		<comments>http://vspug.com/jscott/2008/07/12/son-of-the-the-dreaded-server-out-of-memory-exception-the-data-source-control-failed-to-execute-the-insert-command-exception/#comments</comments>
		<pubDate>Sat, 12 Jul 2008 23:37:00 +0000</pubDate>
		<dc:creator>John Scott</dc:creator>
		
		<guid isPermaLink="false"></guid>
		<description><![CDATA[Here is the exception details&#8230;


Server Error in &#39;/&#39; Application. 


The data source control failed to execute the insert command. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
Exception Details: Microsoft.SharePoint.WebPartPages.DataFormWebPartException: The data [...]]]></description>
			<content:encoded><![CDATA[<p>Here is the exception details&#8230;</p>
<hr />
<blockquote><p><span></p>
<h1><font color="#ff0000">Server Error in &#39;/&#39; Application.</font> </p>
<hr />
</h1>
<h2><i><font color="#663300">The data source control failed to execute the insert command.</font></i> </h2>
<p></span><font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "><b>Description: </b>An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. </p>
<p><b>Exception Details: </b>Microsoft.SharePoint.WebPartPages.DataFormWebPartException: The data source control failed to execute the insert command.</p>
<p><b>Source Error:</b> </p>
<table bgcolor="#ffffcc">
<tr>
<td class="  "><code>An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.</code> </td>
</tr>
</table>
</blockquote>
<hr />
<p>If you are getting this exception and you are using a Custom List Form (DataFormWebPart) to add/edit a list item and the user who is adding/editing the list item is anonymous and&#8230;</p>
<ol>
<li>A workflow is set to&nbsp;start whenever a list item is created and/or updated <strong><u>OR</u></strong>
<li>A custom event receiver is handling the created or updating event for that list</li>
</ol>
<p>You are really getting <a title="The Dreaded &#39;Server Out Of Memory&#39; Exception" href="/jscott/archive/2008/07/12/the-dreaded-server-out-of-memory-exception.aspx">The Dreaded &#39;Server Out Of Memory&#39; Exception</a>.&nbsp; A different exception is being thrown because you are using a Custom List Form but it&#39;s still the same problem under the hood.</p>
<p>To verify this, try to add/edit an item in your list using the default list editor.&nbsp; <a title="The Dreaded &#39;Server Out Of Memory&#39; Exception" href="/jscott/archive/2008/07/12/the-dreaded-server-out-of-memory-exception.aspx">If you get a&nbsp;&#39;Server Out Of Memory&#39; Exception, read this</a>.</p>
<p></font></p>
]]></content:encoded>
			<wfw:commentRss>http://vspug.com/jscott/2008/07/12/son-of-the-the-dreaded-server-out-of-memory-exception-the-data-source-control-failed-to-execute-the-insert-command-exception/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Dreaded &#039;Server Out Of Memory&#039; Exception</title>
		<link>http://vspug.com/jscott/2008/07/12/the-dreaded-server-out-of-memory-exception/</link>
		<comments>http://vspug.com/jscott/2008/07/12/the-dreaded-server-out-of-memory-exception/#comments</comments>
		<pubDate>Sat, 12 Jul 2008 18:04:00 +0000</pubDate>
		<dc:creator>John Scott</dc:creator>
		
		<guid isPermaLink="false"></guid>
		<description><![CDATA[Here is the exception details&#8230;


Server Error in &#39;/&#39; Application. 


Server Out Of MemoryThere is no memory on the server to run your program. Please contact your administrator with this problem. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and [...]]]></description>
			<content:encoded><![CDATA[<p>Here is the exception details&#8230;</p>
<hr />
<blockquote><p><span></p>
<h1><font color="#ff0000">Server Error in &#39;/&#39; Application.</font> </p>
<hr />
</h1>
<h2><font color="#663300"><i>Server Out Of Memory<br /></i></font><font color="#663300"><i><br />There is no memory on the server to run your program. Please contact your administrator with this problem.</i> </font></h2>
<p></span><font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "><b>Description: </b>An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. </p>
<p><b>Exception Details: </b>System.OutOfMemoryException: Server Out Of Memory</p>
<p>There is no memory on the server to run your program. Please contact your administrator with this problem.</p>
<p><b>Source Error:</b> </p>
<table bgcolor="#ffffcc">
<tr>
<td class="  "><code>An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. </code></td>
</tr>
</table>
</blockquote>
<hr />
<p>If a list item is being created or edited by a user who is anonymous and&#8230;</p>
<ol>
<li>A workflow is set to&nbsp;start whenever a list item is created and/or updated&nbsp;<strong><u>OR</u></strong>&nbsp; </li>
<li>A custom event receiver is handling the created or updating event for the lsit&nbsp;</li>
</ol>
<p><em>[We could probably draw the conclusion that any situation&nbsp;where a custom event receiver or a worflow is executed by the anonymous user will fail.]</em></p>
<p>So here is the <strong>bad news</strong>&#8230; as of right now, I have never found a fix for this.&nbsp; I had opened a support case with Microsoft and they acknowledged it was an issue but never gave me any confirmation if and when it will be fixed.</p>
<p>And here is the <font color="#ff0000"><strong>worse news</strong></font><font color="#000000">&#8230; if you are getting this error because you associated a workflow to a list (reason #1 above), this list will never be able to have an item created/updated by an anonymous user.&nbsp; I told the workflow not to run when an item is created or updated.&nbsp; <strong><em>Didn&#39;t work.</em></strong>&nbsp; I deleted the workflow.&nbsp; <strong><em>Didn&#39;t work.</em></strong>&nbsp;&nbsp;I tried to back up the list as a template&nbsp;and restore it (with and&nbsp;without the data).&nbsp; <strong><em>Didn&#39;t&nbsp;work.</em></strong>&nbsp; I tried to go into the&nbsp;database and delete any associations I could find.&nbsp; <strong><em>Didn&#39;t work.</em></strong>&nbsp; I tried&nbsp;a few other things but nothing worked.&nbsp;&nbsp;</font></p>
<p><font color="#000000">I eventually had to recreate all my lists (close to 30) and recreate all the workflows for them, making sure not to set them up to start when an item is created or updated.&nbsp; In my case, I only wanted to start the workflow when an item was created so I ended up putting a Yes/No field in every list indicating whether or not the workflow had been started for it and default it to no.&nbsp; I then created a console application that that would get all list items that had that new field set to &#39;No&#39; and fire off the workflows manually.&nbsp; I scheduled the console application to run as the SharePoint Administrator in 30 minutes intervals throughtout the day.&nbsp; </font></p>
<p>In hind sight, If I would of known about this issue up front, I would of created a custom web part or ASP.NET page to do the data entry and just did the actual list manipulation with elevated privelages.</p>
<p>Eventually Microsoft got back to me with this workaround&#8230; Use Forms Based Authentication instead of Windows Authentication and create a &#39;Visitor&#39; Account that anonymouse users would use (without them knowing).&nbsp; Anonymous users would automatically get logged in as &#39;Visitor&#39; by a HttpModule.&nbsp; The project had already come to an end so I never tried it.&nbsp; But here it is for your viewing pleasure&#8230;</p>
<blockquote>
<p><span style="FONT-FAMILY:&#39;Calibri&#39;,&#39;sans-serif&#39;;"><font>Here is a sample of an HTTP module that can be set up with forms based authentication (FBA) so that it logs you in as a visitor account by default. This enables you to control the visitor account just like a normal user account (since it is authenticated), and is transparent to the Sharepoint server. </font></span></p>
<p><span style="FONT-FAMILY:&#39;Calibri&#39;,&#39;sans-serif&#39;;"><font>This code has not been extensively tested, so don&#39;t deploy straight to your production environment, test it out thoroughly first.</font></span> <span style="FONT-FAMILY:&#39;Calibri&#39;,&#39;sans-serif&#39;;"><font>Be sure to set up an account called &quot;Visitor&quot; (It&#39;s hard coded that in the sample).</font></span> <br /><span style="COLOR:#76923c;FONT-FAMILY:&#39;Calibri&#39;,&#39;sans-serif&#39;;"><font><code>//=================================</font></span><br /><span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:&#39;Courier New&#39;;">using</span><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;"> System;</span><br /><span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:&#39;Courier New&#39;;">using</span><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;"> System.Security;</span><br /><span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:&#39;Courier New&#39;;">using</span><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;"> System.Security.Principal;</span><br /><span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:&#39;Courier New&#39;;">using</span><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;"> System.Web;</span><br /><span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:&#39;Courier New&#39;;">using</span><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;"> System.Web.Security;</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;</span><br /><span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:&#39;Courier New&#39;;">namespace</span><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;"> HTTPAnonAuth</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">{</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;&nbsp;&nbsp; <span style="COLOR:blue;">class</span> <span style="COLOR:#2b91af;">AnonModule</span> : <span style="COLOR:#2b91af;">IHttpModule</span></span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;&nbsp;&nbsp; {</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="COLOR:blue;">public</span> <span style="COLOR:blue;">void</span> Init(<span style="COLOR:#2b91af;">HttpApplication</span> app)</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; app.AuthenticateRequest +=</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (<span style="COLOR:blue;">new</span> <span style="COLOR:#2b91af;">EventHandler</span>(<span style="COLOR:blue;">this</span>.Application_AuthenticateRequest));</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; app.PreSendRequestHeaders +=</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (<span style="COLOR:blue;">new</span> <span style="COLOR:#2b91af;">EventHandler</span>(<span style="COLOR:blue;">this</span>.Application_PreSendRequestHeaders));</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="COLOR:blue;">private</span> <span style="COLOR:blue;">void</span> Application_AuthenticateRequest(<span style="COLOR:blue;">object</span> sender, <span style="COLOR:#2b91af;">EventArgs</span> e)</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="COLOR:#2b91af;">HttpApplication</span> app = (<span style="COLOR:#2b91af;">HttpApplication</span>)sender;</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="COLOR:blue;">if</span> (app.User == <span style="COLOR:blue;">null</span>)</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="COLOR:blue;">string</span>[] roles = <span style="COLOR:blue;">new</span> <span style="COLOR:blue;">string</span>[1];</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; roles[0] = <span style="COLOR:#a31515;">&quot;GuestUser&quot;</span>;</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="COLOR:#2b91af;">GenericIdentity</span> id = <span style="COLOR:blue;">new</span> <span style="COLOR:#2b91af;">GenericIdentity</span>(<span style="COLOR:#a31515;">&quot;Visitor&quot;</span>,<span style="COLOR:#a31515;">&quot;Forms&quot;</span>);</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="COLOR:#2b91af;">GenericPrincipal</span> p = <span style="COLOR:blue;">new</span> <span style="COLOR:#2b91af;">GenericPrincipal</span>(id, roles);</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; app.Context.User = p;</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="COLOR:blue;">private</span> <span style="COLOR:blue;">void</span> Application_PreSendRequestHeaders(<span style="COLOR:blue;">object</span> sender, <span style="COLOR:#2b91af;">EventArgs</span> e)</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="COLOR:#2b91af;">HttpApplication</span> app = (<span style="COLOR:#2b91af;">HttpApplication</span>)sender;</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="COLOR:blue;">if</span> (app.Response.RedirectLocation != <span style="COLOR:blue;">null</span>)</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="COLOR:blue;">if</span> (app.Response.RedirectLocation.Contains(<span style="COLOR:#a31515;">&quot;AccessDenied.aspx?Source&quot;</span>) </span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &amp;&amp; app.User.Identity.Name == <span style="COLOR:#a31515;">&quot;Visitor&quot;</span>)</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; app.Response.Redirect(<span style="COLOR:#a31515;">&quot;/_layouts/login.aspx?ReturnUrl=&quot;</span> + app.Request.RawUrl);</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="COLOR:blue;">public</span> <span style="COLOR:blue;">void</span> Dispose()</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">&nbsp;&nbsp;&nbsp; }</span><br /><span style="FONT-SIZE:10pt;FONT-FAMILY:&#39;Courier New&#39;;">}</span><br /><span style="COLOR:#76923c;FONT-FAMILY:&#39;Calibri&#39;,&#39;sans-serif&#39;;"><font>//=================================</code></font></span>&nbsp;&nbsp;</font></p></blockquote>
<p>If you do end up using the HttpModule route <strong>OR</strong> find a better workaround <strong>OR</strong> find a fix, please let me know about it.</p>
]]></content:encoded>
			<wfw:commentRss>http://vspug.com/jscott/2008/07/12/the-dreaded-server-out-of-memory-exception/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
