<?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>Nebulae Spiral &#187; Uncategorized</title>
	<atom:link href="http://inmyshadow.net/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://inmyshadow.net</link>
	<description>Spiralling Golden... and maybe blogging about code.</description>
	<lastBuildDate>Tue, 23 Dec 2008 04:17:18 +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>Body Moving</title>
		<link>http://inmyshadow.net/2008/07/29/body-moving/</link>
		<comments>http://inmyshadow.net/2008/07/29/body-moving/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 05:43:08 +0000</pubDate>
		<dc:creator>Nebulae</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://inmyshadow.net/?p=57</guid>
		<description><![CDATA[Your body is not a thing separate from your Self, it is the physical manifestation of who you are. You are much more vast than your body can hold at this time—but your body is a manifestation of the aspect of yourself that you are concerned with at this time and place. Take a moment [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>Your body is not a thing separate from your Self, it is the physical manifestation of who you are. You are much more vast than your body can hold at this time—but your body is a manifestation of the aspect of yourself that you are concerned with at this time and place. Take a moment and breathe into your feet, feel the seat beneath you, feel your eyes focus as you read the words on this page (yes you can feel your eyes focus, if you take notice).</p>
<p>The other misunderstanding is about unconditional love. Unconditional love it not forced love. There is nothing forceful about it. It is love allowed, it is acceptance. Unconditional love of your body is loving acceptance for your body, no matter what your body looks like or feels like.</p>
<p><a href="http://cathybreshears.wordpress.com/">Body Moving</a>.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://inmyshadow.net/2008/07/29/body-moving/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sharepoint Workflow &#8211; When you just can&#8217;t create a task.</title>
		<link>http://inmyshadow.net/2008/07/27/sharepoint-workflow-when-you-just-cant-create-a-task/</link>
		<comments>http://inmyshadow.net/2008/07/27/sharepoint-workflow-when-you-just-cant-create-a-task/#comments</comments>
		<pubDate>Sun, 27 Jul 2008 20:41:56 +0000</pubDate>
		<dc:creator>Nebulae</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[moss]]></category>
		<category><![CDATA[sharepoint]]></category>

		<guid isPermaLink="false">http://inmyshadow.net/?p=21</guid>
		<description><![CDATA[I&#8217;ve been writing sharepoint applications for quite some time.  In fact, I consider myself pretty damn good at it.  Somehow though, I&#8217;ve been able to avoid writing much workflow all this time.  Event Handlers have been all I needed to this point.
I&#8217;ve never wanted to beat my head into a wall so much as this [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been writing sharepoint applications for quite some time.  In fact, I consider myself pretty damn good at it.  Somehow though, I&#8217;ve been able to avoid writing much workflow all this time.  Event Handlers have been all I needed to this point.</p>
<p>I&#8217;ve never wanted to beat my head into a wall so much as this last weeks adventure into workflow.  The infamous Julie kremer, who i hold in the highest of esteem as a friend and teacher, wrote a workflow for the OfficeLive app that Ive been working on for the last 5 or so months ( I think we&#8217;re on version 5 at this point, we iterate fast ) that takes a solution submitted by a small business owner and kicks off a workflow to have it approved before it shows up in the small business portal search &#8211; <a title="http://www.officelivepartnerdirectory.com" href="http://www.officelivepartnerdirectory.com/US/Pages/default.aspx" target="_blank">http://www.officelivepartnerdirectory.com</a>.</p>
<p>My task is to create a workflow that the company object will pass through for approval.  The goal is to catch any offensive company names or logos from showing up in the portal.  This seems pretty easy, logistical, shouldn&#8217;t be a problem right?</p>
<p>Well, right off the bat I was getting an exception in mscorlib</p>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;">Exception has been thrown by the target of an invocation.
   <span style="color: #0000FF;">at</span> <span style="color: #000000;">System</span>.<span style="color: #0000FF;">RuntimeMethodHandle</span>._InvokeMethodFast<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">Object</span> target, <span style="color: #FF0000;">Object</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> arguments, SignatureStruct<span style="color: #008000;">&amp;</span>amp<span style="color: #008000;">;</span> sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner<span style="color: #000000;">&#41;</span>
   at <span style="color: #000000;">System</span>.<span style="color: #0000FF;">RuntimeMethodHandle</span>.<span style="color: #0000FF;">InvokeMethodFast</span><span style="color: #000000;">&#40;</span><span style="color: #FF0000;">Object</span> target, <span style="color: #FF0000;">Object</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner<span style="color: #000000;">&#41;</span>
   at <span style="color: #000000;">System.<span style="color: #0000FF;">Reflection</span></span>.<span style="color: #0000FF;">RuntimeMethodInfo</span>.<span style="color: #0000FF;">Invoke</span><span style="color: #000000;">&#40;</span><span style="color: #FF0000;">Object</span> obj, BindingFlags invokeAttr, Binder binder, <span style="color: #FF0000;">Object</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> parameters, CultureInfo culture, Boolean skipVisibilityChecks<span style="color: #000000;">&#41;</span>
   at <span style="color: #000000;">System.<span style="color: #0000FF;">Reflection</span></span>.<span style="color: #0000FF;">RuntimeMethodInfo</span>.<span style="color: #0000FF;">Invoke</span><span style="color: #000000;">&#40;</span><span style="color: #FF0000;">Object</span> obj, BindingFlags invokeAttr, Binder binder, <span style="color: #FF0000;">Object</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> parameters, CultureInfo culture<span style="color: #000000;">&#41;</span>
   at <span style="color: #000000;">System</span>.<span style="color: #0000FF;">RuntimeType</span>.<span style="color: #0000FF;">InvokeMember</span><span style="color: #000000;">&#40;</span><span style="color: #FF0000;">String</span> name, BindingFlags bindingFlags, Binder binder, <span style="color: #FF0000;">Object</span> target, <span style="color: #FF0000;">Object</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> providedArgs, ParameterModifier<span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> modifiers, CultureInfo culture, <span style="color: #FF0000;">String</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> namedParams<span style="color: #000000;">&#41;</span>
   at <span style="color: #000000;">System</span>.<span style="color: #0000FF;">Workflow</span>.<span style="color: #0000FF;">Activities</span>.<span style="color: #0000FF;">CallExternalMethodActivity</span>.<span style="color: #0000FF;">Execute</span><span style="color: #000000;">&#40;</span>ActivityExecutionContext executionContext<span style="color: #000000;">&#41;</span>
   at <span style="color: #000000;">System</span>.<span style="color: #0000FF;">Workflow</span>.<span style="color: #0000FF;">ComponentModel</span>.<span style="color: #0000FF;">ActivityExecutor</span>`1.<span style="color: #0000FF;">Execute</span><span style="color: #000000;">&#40;</span>T activity, ActivityExecutionContext executionContext<span style="color: #000000;">&#41;</span>
   at <span style="color: #000000;">System</span>.<span style="color: #0000FF;">Workflow</span>.<span style="color: #0000FF;">ComponentModel</span>.<span style="color: #0000FF;">ActivityExecutor</span>`1.<span style="color: #0000FF;">Execute</span><span style="color: #000000;">&#40;</span>Activity activity, ActivityExecutionContext executionContext<span style="color: #000000;">&#41;</span>
   at <span style="color: #000000;">System</span>.<span style="color: #0000FF;">Workflow</span>.<span style="color: #0000FF;">ComponentModel</span>.<span style="color: #0000FF;">ActivityExecutorOperation</span>.<span style="color: #0000FF;">Run</span><span style="color: #000000;">&#40;</span>IWorkflowCoreRuntime workflowCoreRuntime<span style="color: #000000;">&#41;</span>
   at <span style="color: #000000;">System</span>.<span style="color: #0000FF;">Workflow</span>.<span style="color: #0000FF;">Runtime</span>.<span style="color: #0000FF;">Scheduler</span>.<span style="color: #0000FF;">Run</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></pre></div></div>

<p>I added a fault handler to the workflow and bubbled up the inner exception to see what the deal was:</p>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF;">private</span> <span style="color: #0600FF;">void</span> code_HandleAllExceptions_ExecuteCode<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">object</span> sender, EventArgs e<span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#123;</span>
    WriteException<span style="color: #000000;">&#40;</span>faultHandlerActivity1_Fault1, <span style="color: #666666;">&quot;An error was handled by fault hander. &quot;</span> <span style="color: #008000;">+</span> faultHandlerActivity1_Fault1.<span style="color: #0000FF;">InnerException</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
<span style="color: #000000;">&#125;</span>
<span style="color: #0600FF;">private</span> <span style="color: #0600FF;">static</span> <span style="color: #0600FF;">void</span> WriteException<span style="color: #000000;">&#40;</span>Exception e, <span style="color: #FF0000;">string</span> message<span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#123;</span>
    WriteTrace<span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;CompanyWF ERROR: &quot;</span> <span style="color: #008000;">+</span> message <span style="color: #008000;">+</span> <span style="color: #666666;">&quot; &quot;</span> <span style="color: #008000;">+</span> e.<span style="color: #0000FF;">Message</span> <span style="color: #008000;">+</span> <span style="color: #666666;">&quot;<span style="color: #008080; font-weight: bold;">\n</span>&quot;</span> <span style="color: #008000;">+</span> e.<span style="color: #0000FF;">StackTrace</span>, <span style="color: #666666;">&quot;ERROR&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #0600FF;">private</span> <span style="color: #0600FF;">static</span> <span style="color: #0600FF;">void</span> WriteInfo<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">string</span> message<span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#123;</span>
    WriteTrace<span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;CompanyWF: &quot;</span> <span style="color: #008000;">+</span> message, <span style="color: #666666;">&quot;INFO&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #0600FF;">private</span> <span style="color: #0600FF;">static</span> <span style="color: #0600FF;">void</span> WriteTrace<span style="color: #000000;">&#40;</span> <span style="color: #FF0000;">string</span> message, <span style="color: #FF0000;">string</span> level <span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#123;</span>
    Trace.<span style="color: #0000FF;">WriteLine</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;[&quot;</span><span style="color: #008000;">+</span>DateTime.<span style="color: #0000FF;">Now</span><span style="color: #008000;">+</span><span style="color: #666666;">&quot;] &quot;</span> <span style="color: #008000;">+</span> message, level<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

<p>which then reported a null reference exception:</p>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #000000;">&#91;</span><span style="color: #FF0000;">4120</span><span style="color: #000000;">&#93;</span> ERROR<span style="color: #008000;">:</span> <span style="color: #000000;">&#91;</span><span style="color: #FF0000;">7</span><span style="color: #008000;">/</span><span style="color: #FF0000;">25</span><span style="color: #008000;">/</span><span style="color: #FF0000;">2008</span> <span style="color: #FF0000;">10</span><span style="color: #008000;">:</span><span style="color: #FF0000;">36</span><span style="color: #008000;">:</span><span style="color: #FF0000;">46</span> AM<span style="color: #000000;">&#93;</span> CompanyWF ERROR<span style="color: #008000;">:</span> An error was handled by fault hander. <span style="color: #000000;">System</span>.<span style="color: #0000FF;">NullReferenceException</span><span style="color: #008000;">:</span> <span style="color: #FF0000;">Object</span> reference not set to an instance of an <span style="color: #FF0000;">object</span>.
<span style="color: #000000;">&#91;</span><span style="color: #FF0000;">4120</span><span style="color: #000000;">&#93;</span>    at Microsoft.<span style="color: #0000FF;">SharePoint</span>.<span style="color: #0000FF;">Workflow</span>.<span style="color: #0000FF;">SPWorkflowTask</span>.<span style="color: #0000FF;">SetWorkflowData</span><span style="color: #000000;">&#40;</span>SPListItem task, Hashtable newValues, Boolean ignoreReadOnly<span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#91;</span><span style="color: #FF0000;">4120</span><span style="color: #000000;">&#93;</span>    at Microsoft.<span style="color: #0000FF;">SharePoint</span>.<span style="color: #0000FF;">Workflow</span>.<span style="color: #0000FF;">SPWinOETaskService</span>.<span style="color: #0000FF;">UpdateTaskInternal</span><span style="color: #000000;">&#40;</span>Guid taskId, SPWorkflowTaskProperties properties, Boolean fSetWorkflowFinalize, Boolean fCreating, HybridDictionary specialPermissions<span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#91;</span><span style="color: #FF0000;">4120</span><span style="color: #000000;">&#93;</span>    at Microsoft.<span style="color: #0000FF;">SharePoint</span>.<span style="color: #0000FF;">Workflow</span>.<span style="color: #0000FF;">SPWinOETaskService</span>.<span style="color: #0000FF;">CreateTaskWithContentTypeInternal</span><span style="color: #000000;">&#40;</span>Guid taskId, SPWorkflowTaskProperties properties, Boolean useDefaultContentType, SPContentTypeId ctid, HybridDictionary specialPermissions<span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#91;</span><span style="color: #FF0000;">4120</span><span style="color: #000000;">&#93;</span>    at Microsoft.<span style="color: #0000FF;">SharePoint</span>.<span style="color: #0000FF;">Workflow</span>.<span style="color: #0000FF;">SPWinOETaskService</span>.<span style="color: #0000FF;">CreateTask</span><span style="color: #000000;">&#40;</span>Guid taskId, SPWorkflowTaskProperties properties, HybridDictionary specialPermissions<span style="color: #000000;">&#41;</span> Exception has been thrown by the target of an invocation.
<span style="color: #000000;">&#91;</span><span style="color: #FF0000;">4120</span><span style="color: #000000;">&#93;</span>    at <span style="color: #000000;">System</span>.<span style="color: #0000FF;">RuntimeMethodHandle</span>._InvokeMethodFast<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">Object</span> target, <span style="color: #FF0000;">Object</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> arguments, SignatureStruct<span style="color: #008000;">&amp;</span>amp<span style="color: #008000;">;</span> sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner<span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#91;</span><span style="color: #FF0000;">4120</span><span style="color: #000000;">&#93;</span>    at <span style="color: #000000;">System</span>.<span style="color: #0000FF;">RuntimeMethodHandle</span>.<span style="color: #0000FF;">InvokeMethodFast</span><span style="color: #000000;">&#40;</span><span style="color: #FF0000;">Object</span> target, <span style="color: #FF0000;">Object</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner<span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#91;</span><span style="color: #FF0000;">4120</span><span style="color: #000000;">&#93;</span>    at <span style="color: #000000;">System.<span style="color: #0000FF;">Reflection</span></span>.<span style="color: #0000FF;">RuntimeMethodInfo</span>.<span style="color: #0000FF;">Invoke</span><span style="color: #000000;">&#40;</span><span style="color: #FF0000;">Object</span> obj, BindingFlags invokeAttr, Binder binder, <span style="color: #FF0000;">Object</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> parameters, CultureInfo culture, Boolean skipVisibilityChecks<span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#91;</span><span style="color: #FF0000;">4120</span><span style="color: #000000;">&#93;</span>    at <span style="color: #000000;">System.<span style="color: #0000FF;">Reflection</span></span>.<span style="color: #0000FF;">RuntimeMethodInfo</span>.<span style="color: #0000FF;">Invoke</span><span style="color: #000000;">&#40;</span><span style="color: #FF0000;">Object</span> obj, BindingFlags invokeAttr, Binder binder, <span style="color: #FF0000;">Object</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> parameters, CultureInfo culture<span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#91;</span><span style="color: #FF0000;">4120</span><span style="color: #000000;">&#93;</span>    at <span style="color: #000000;">System</span>.<span style="color: #0000FF;">RuntimeType</span>.<span style="color: #0000FF;">InvokeMember</span><span style="color: #000000;">&#40;</span><span style="color: #FF0000;">String</span> name, BindingFlags bindingFlags, Binder binder, <span style="color: #FF0000;">Object</span> target, <span style="color: #FF0000;">Object</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> providedArgs, ParameterModifier<span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> modifiers, CultureInfo culture, <span style="color: #FF0000;">String</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> namedParams<span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#91;</span><span style="color: #FF0000;">4120</span><span style="color: #000000;">&#93;</span>    at <span style="color: #000000;">System</span>.<span style="color: #0000FF;">Workflow</span>.<span style="color: #0000FF;">Activities</span>.<span style="color: #0000FF;">CallExternalMethodActivity</span>.<span style="color: #0000FF;">Execute</span><span style="color: #000000;">&#40;</span>ActivityExecutionContext executionContext<span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#91;</span><span style="color: #FF0000;">4120</span><span style="color: #000000;">&#93;</span>    at <span style="color: #000000;">System</span>.<span style="color: #0000FF;">Workflow</span>.<span style="color: #0000FF;">ComponentModel</span>.<span style="color: #0000FF;">ActivityExecutor</span>`1.<span style="color: #0000FF;">Execute</span><span style="color: #000000;">&#40;</span>T activity, ActivityExecutionContext executionContext<span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#91;</span><span style="color: #FF0000;">4120</span><span style="color: #000000;">&#93;</span>    at <span style="color: #000000;">System</span>.<span style="color: #0000FF;">Workflow</span>.<span style="color: #0000FF;">ComponentModel</span>.<span style="color: #0000FF;">ActivityExecutor</span>`1.<span style="color: #0000FF;">Execute</span><span style="color: #000000;">&#40;</span>Activity activity, ActivityExecutionContext executionContext<span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#91;</span><span style="color: #FF0000;">4120</span><span style="color: #000000;">&#93;</span>    at <span style="color: #000000;">System</span>.<span style="color: #0000FF;">Workflow</span>.<span style="color: #0000FF;">ComponentModel</span>.<span style="color: #0000FF;">ActivityExecutorOperation</span>.<span style="color: #0000FF;">Run</span><span style="color: #000000;">&#40;</span>IWorkflowCoreRuntime workflowCoreRuntime<span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#91;</span><span style="color: #FF0000;">4120</span><span style="color: #000000;">&#93;</span>    at <span style="color: #000000;">System</span>.<span style="color: #0000FF;">Workflow</span>.<span style="color: #0000FF;">Runtime</span>.<span style="color: #0000FF;">Scheduler</span>.<span style="color: #0000FF;">Run</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></pre></div></div>

<p>One of the properties I was trying to push into the ExtendedProperties propertybag was null, I changed that and we were past this exception.  The lesson here is to grab the InnerException of your fault handler and hope that it returns something descriptive, i guess :-)</p>
<p>In case you are wondering, the trace viewer i use is called DebugView, brought to my attention by the industrious Eric Jobin.</p>
<p>Another issue I was having with the InfoPath form though, was quite a bit harder to track down, but a stupid mistake in the long run.  I was creating a link to the infopath form with an item id in the query string, but it was the wrong item, wrong list :-)  The error I was getting was something extremely vague and Sharepointy, but what helped me figure it out was enabling (in a google friendly fashion) &#8211; verbose sharepoint  exception reporting &#8211; verbose sharepoint error handling &#8211; full Moss exception handling &#8211; good enough.</p>
<p>This is a lot easier than you might think, and you&#8217;ve probably done this before with other web applications you&#8217;ve needed to debug.  Open the Web.Config for your spsite and find:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;SharePoint<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;SafeMode</span> <span style="color: #000066;">MaxControls</span>=<span style="color: #ff0000;">&quot;200&quot;</span> <span style="color: #000066;">CallStack</span>=<span style="color: #ff0000;">&quot;false&quot;</span> <span style="color: #000066;">DirectFileDependencies</span>=<span style="color: #ff0000;">&quot;10&quot;</span> <span style="color: #000066;">TotalFileDependencies</span>=<span style="color: #ff0000;">&quot;50&quot;</span> <span style="color: #000066;">AllowPageLevelTrace</span>=<span style="color: #ff0000;">&quot;false&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span></pre></div></div>

<p>and change it to:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;SharePoint<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;SafeMode</span> <span style="color: #000066;">MaxControls</span>=<span style="color: #ff0000;">&quot;200&quot;</span> <span style="color: #000066;">CallStack</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #000066;">DirectFileDependencies</span>=<span style="color: #ff0000;">&quot;10&quot;</span> <span style="color: #000066;">TotalFileDependencies</span>=<span style="color: #ff0000;">&quot;50&quot;</span> <span style="color: #000066;">AllowPageLevelTrace</span>=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span></pre></div></div>

<p>then find the node:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;system.web<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;customErrors</span> <span style="color: #000066;">mode</span>=<span style="color: #ff0000;">&quot;On&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span></pre></div></div>

<p>and set it to &#8220;Off&#8221;</p>
<p>you may have to recycle your app pool before changes take effect, but you should now see a stack trace when you cause an error &#8211; hopefully more helpful than the generic Unknown Exception that we had all come to love.  </p>
<p>peace, and happy coding&#8230;<br />
trinity</p>
]]></content:encoded>
			<wfw:commentRss>http://inmyshadow.net/2008/07/27/sharepoint-workflow-when-you-just-cant-create-a-task/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Chris O&#8217;Brien&#8217;s blog</title>
		<link>http://inmyshadow.net/2008/07/27/chris-obriens-blog/</link>
		<comments>http://inmyshadow.net/2008/07/27/chris-obriens-blog/#comments</comments>
		<pubDate>Sun, 27 Jul 2008 17:38:44 +0000</pubDate>
		<dc:creator>Nebulae</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[moss]]></category>
		<category><![CDATA[sharepoint]]></category>

		<guid isPermaLink="false">http://inmyshadow.net/?p=31</guid>
		<description><![CDATA[Chris O&#8217;Brien&#8217;s blog. &#8211; Great SharePoint resource.
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.sharepointnutsandbolts.com/">Chris O&#8217;Brien&#8217;s blog</a>. &#8211; Great SharePoint resource.</p>
]]></content:encoded>
			<wfw:commentRss>http://inmyshadow.net/2008/07/27/chris-obriens-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>One of Obama&#8217;s Best Speeches</title>
		<link>http://inmyshadow.net/2008/07/24/one-of-obamas-best-speeches/</link>
		<comments>http://inmyshadow.net/2008/07/24/one-of-obamas-best-speeches/#comments</comments>
		<pubDate>Thu, 24 Jul 2008 22:56:38 +0000</pubDate>
		<dc:creator>Nebulae</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[inspiration]]></category>
		<category><![CDATA[obama]]></category>

		<guid isPermaLink="false">http://inmyshadow.net/?p=10</guid>
		<description><![CDATA[
One of Obama&#8217;s Best Speeches.
]]></description>
			<content:encoded><![CDATA[<p><object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/FlmEa5PIJAY&#038;NR=1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/FlmEa5PIJAY&#038;NR=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object></p>
<p><a href="http://www.youtube.com/watch?v=FlmEa5PIJAY&amp;NR=1">One of Obama&#8217;s Best Speeches</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://inmyshadow.net/2008/07/24/one-of-obamas-best-speeches/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
