<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-1575476679976002386.post6126812175758206622..comments</id><updated>2010-05-15T10:49:54.129+02:00</updated><category term='Rx'/><category term='flash'/><category term='TemplateLibraryConnector'/><category term='ndc2010'/><category term='ilasm'/><category term='MSN'/><category term='tools'/><category term='il'/><category term='SharePoint'/><category term='boost'/><category term='synchronization'/><category term='best practices'/><category term='gadget'/><category term='ramblings'/><category term='SharePoint 2010'/><category term='c++09'/><category term='sidebar'/><category term='FireBug'/><category term='Ajax'/><category term='thunking'/><category term='Moles'/><category term='VS2008'/><category term='Greasemonkey'/><category term='asm'/><category term='c#'/><category term='jquery'/><category term='Bing'/><category term='PowerShell'/><category term='way off topic'/><category term='worst practices'/><category term='threadsynch'/><category term='VS2010'/><category term='disassembly'/><category term='architecture'/><category term='JavaScript'/><category term='XSS'/><category term='c++'/><category term='work'/><category term='ildasm'/><category term='vista'/><category term='json'/><category term='x64'/><category term='Silverlight'/><category term='.NET'/><title type='text'>Comments on Will Code for Nuts: Forcing the SharePoint object model to reload the ...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.codefornuts.com/feeds/6126812175758206622/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1575476679976002386/6126812175758206622/comments/default'/><link rel='alternate' type='text/html' href='http://www.codefornuts.com/2009/10/forcing-sharepoint-tool-to-reload-12.html'/><author><name>Einar Otto Stangvik</name><uri>http://www.blogger.com/profile/14646027402573050232</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/-2W8hERcZC84/TV74TcaWuKI/AAAAAAAAENQ/paeQgHgP3LI/s220/n657255700_818796_8968.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1575476679976002386.post-8658477490070402094</id><published>2010-04-22T10:27:53.685+02:00</published><updated>2010-04-22T10:27:53.685+02:00</updated><title type='text'>I totally agree. You would think this was somethin...</title><content type='html'>I totally agree. You would think this was something Microsoft would have fixed</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1575476679976002386/6126812175758206622/comments/default/8658477490070402094'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1575476679976002386/6126812175758206622/comments/default/8658477490070402094'/><link rel='alternate' type='text/html' href='http://www.codefornuts.com/2009/10/forcing-sharepoint-tool-to-reload-12.html?showComment=1271924873685#c8658477490070402094' title=''/><author><name>Rasmus</name><uri>http://my4hours.com</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.codefornuts.com/2009/10/forcing-sharepoint-tool-to-reload-12.html' ref='tag:blogger.com,1999:blog-1575476679976002386.post-6126812175758206622' source='http://www.blogger.com/feeds/1575476679976002386/posts/default/6126812175758206622' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-834565395'/></entry><entry><id>tag:blogger.com,1999:blog-1575476679976002386.post-2412710095068975260</id><published>2010-04-21T11:30:42.131+02:00</published><updated>2010-04-21T11:30:42.131+02:00</updated><title type='text'>@Rasmus: You&amp;#39;re very welcome!

I&amp;#39;m slightl...</title><content type='html'>@Rasmus: You&amp;#39;re very welcome!&lt;br /&gt;&lt;br /&gt;I&amp;#39;m slightly disappointed by the fact that this is still required in SharePoint 2010, though. One would think that they had come up with a way for the object model to detect changes made by e.g. the timer process, and either reload its state data, or notify the user. &lt;br /&gt;&lt;br /&gt;I&amp;#39;m all down with eventual consistency, but at least providing sane error messages would help.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1575476679976002386/6126812175758206622/comments/default/2412710095068975260'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1575476679976002386/6126812175758206622/comments/default/2412710095068975260'/><link rel='alternate' type='text/html' href='http://www.codefornuts.com/2009/10/forcing-sharepoint-tool-to-reload-12.html?showComment=1271842242131#c2412710095068975260' title=''/><author><name>Einar Otto Stangvik</name><uri>http://www.blogger.com/profile/14646027402573050232</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_rBg2qaJ_4Bw/Sq-gTuDiybI/AAAAAAAAEIE/5lbbjcgS7IY/S220/7620_155497280700_657255700_4148854_5061923_n.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.codefornuts.com/2009/10/forcing-sharepoint-tool-to-reload-12.html' ref='tag:blogger.com,1999:blog-1575476679976002386.post-6126812175758206622' source='http://www.blogger.com/feeds/1575476679976002386/posts/default/6126812175758206622' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-679804424'/></entry><entry><id>tag:blogger.com,1999:blog-1575476679976002386.post-9039004899127537421</id><published>2010-04-21T11:11:30.782+02:00</published><updated>2010-04-21T11:11:30.782+02:00</updated><title type='text'>You are my hero...

We have been over this on a Sh...</title><content type='html'>You are my hero...&lt;br /&gt;&lt;br /&gt;We have been over this on a SharePoint 2010 solution. Everything was scripted with PowerShell, but when it came to creating our sitecollections based on our own template, we got the error.&lt;br /&gt;&lt;br /&gt;We have even tried to run IISRESET but this didn&amp;#39;t help anything.&lt;br /&gt;&lt;br /&gt;When I used your code I got a null exception with the &amp;quot;ThreadContext&amp;quot;, so I had some serious digging in the SharePoint 2010 internal API.&lt;br /&gt;&lt;br /&gt;The unsafe code you did is the exact same, but the clearing of the SPRequestManager is different.&lt;br /&gt;&lt;br /&gt;            Type sprequestmanager = typeof(SPFarm).Assembly.GetType(&amp;quot;Microsoft.SharePoint.SPRequestManager&amp;quot;, true, true);&lt;br /&gt;            Type spthreadcontext = sprequestmanager.Assembly.GetType(&amp;quot;Microsoft.SharePoint.Utilities.SPThreadContext&amp;quot;);&lt;br /&gt;            MethodInfo setcontext = spthreadcontext.GetMethod(&amp;quot;Set&amp;quot;, BindingFlags.Static | BindingFlags.NonPublic);&lt;br /&gt;            Type[] genericArguments = new Type[] { sprequestmanager };&lt;br /&gt;            MethodInfo setcontextgeneric = setcontext.MakeGenericMethod(genericArguments);&lt;br /&gt;&lt;br /&gt;            // set hte current sprequest manager to null!&lt;br /&gt;            setcontextgeneric.Invoke(null, new object[] { null });&lt;br /&gt;&lt;br /&gt;Now I have created a PowerShell SnapIn with a cmdlet called Reset-SPContext and running this is out script makes everything work, yeah!&lt;br /&gt;&lt;br /&gt;Thanks again.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1575476679976002386/6126812175758206622/comments/default/9039004899127537421'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1575476679976002386/6126812175758206622/comments/default/9039004899127537421'/><link rel='alternate' type='text/html' href='http://www.codefornuts.com/2009/10/forcing-sharepoint-tool-to-reload-12.html?showComment=1271841090782#c9039004899127537421' title=''/><author><name>Rasmus</name><uri>http://my4hours.com</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.codefornuts.com/2009/10/forcing-sharepoint-tool-to-reload-12.html' ref='tag:blogger.com,1999:blog-1575476679976002386.post-6126812175758206622' source='http://www.blogger.com/feeds/1575476679976002386/posts/default/6126812175758206622' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-834565395'/></entry><entry><id>tag:blogger.com,1999:blog-1575476679976002386.post-7611652388002261065</id><published>2009-10-15T01:10:56.639+02:00</published><updated>2009-10-15T01:10:56.639+02:00</updated><title type='text'>That&amp;#39;s a great little line of code, saves IISR...</title><content type='html'>That&amp;#39;s a great little line of code, saves IISRESET&amp;#39;ing all the time which takes AGES! ;-)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1575476679976002386/6126812175758206622/comments/default/7611652388002261065'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1575476679976002386/6126812175758206622/comments/default/7611652388002261065'/><link rel='alternate' type='text/html' href='http://www.codefornuts.com/2009/10/forcing-sharepoint-tool-to-reload-12.html?showComment=1255561856639#c7611652388002261065' title=''/><author><name>Jeremy Thake</name><uri>http://www.blogger.com/profile/14264476485361437612</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_8DMQTzoYlpU/SRUq4k0XrSI/AAAAAAAAABw/qFqQ5IalGpE/S220/profile.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.codefornuts.com/2009/10/forcing-sharepoint-tool-to-reload-12.html' ref='tag:blogger.com,1999:blog-1575476679976002386.post-6126812175758206622' source='http://www.blogger.com/feeds/1575476679976002386/posts/default/6126812175758206622' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-557583936'/></entry></feed>
