<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.microsoft.co.il/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>new { Name = ”Shay Jacoby”  } - All Comments</title><link>http://blogs.microsoft.co.il/blogs/shay/</link><description>Maximum separation, minimum Dependencies, No Injections.</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 20917.1142)</generator><item><title>re: Real world error hadnling in ASP.NET MVC RC2.</title><link>http://blogs.microsoft.co.il/blogs/shay/archive/2009/03/06/real-world-error-hadnling-in-asp-net-mvc-rc2.aspx#620026</link><pubDate>Sun, 16 May 2010 05:50:14 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:620026</guid><dc:creator>Matt Kocaj</dc:creator><description>&lt;p&gt;@Jared:&lt;/p&gt;
&lt;p&gt;That fix of swallowing the exception does not work even with the &amp;quot;/foo/foo/foo/foo&amp;quot; example. I suspect that the Session State is required a little more than 10% of the time.&lt;/p&gt;
&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=620026" width="1" height="1"&gt;</description></item><item><title>ASP.NET MVC|  [MVC]Real world error hadnling in ASP.NET MVC RC2. | Mikel</title><link>http://blogs.microsoft.co.il/blogs/shay/archive/2009/03/06/real-world-error-hadnling-in-asp-net-mvc-rc2.aspx#611563</link><pubDate>Thu, 06 May 2010 08:04:51 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:611563</guid><dc:creator>ASP.NET MVC|  [MVC]Real world error hadnling in ASP.NET MVC RC2. | Mikel</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;ASP.NET MVC| &amp;nbsp;[MVC]Real world error hadnling in ASP.NET MVC RC2. | Mikel&lt;/p&gt;
&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=611563" width="1" height="1"&gt;</description></item><item><title>re: Real world error hadnling in ASP.NET MVC RC2.</title><link>http://blogs.microsoft.co.il/blogs/shay/archive/2009/03/06/real-world-error-hadnling-in-asp-net-mvc-rc2.aspx#582958</link><pubDate>Thu, 15 Apr 2010 15:32:43 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:582958</guid><dc:creator>Sam Delaney</dc:creator><description>&lt;p&gt;I've run the sample project, with a network analyser running, and at no point do we get a 404 or 500 response code back, just 200s.&lt;/p&gt;
&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=582958" width="1" height="1"&gt;</description></item><item><title>re: Javascript and Css files compressor</title><link>http://blogs.microsoft.co.il/blogs/shay/archive/2009/11/13/js-css-files-compressor.aspx#574944</link><pubDate>Mon, 05 Apr 2010 11:07:58 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:574944</guid><dc:creator>Pure Krome</dc:creator><description>&lt;p&gt;Ha kewl :) someone else who is using the port :) Glad it helps you :) :)&lt;/p&gt;
&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=574944" width="1" height="1"&gt;</description></item><item><title>re: Real world error hadnling in ASP.NET MVC RC2.</title><link>http://blogs.microsoft.co.il/blogs/shay/archive/2009/03/06/real-world-error-hadnling-in-asp-net-mvc-rc2.aspx#517324</link><pubDate>Fri, 12 Feb 2010 17:43:29 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:517324</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;From what I see, and I could be wrong, the 'SessionStateTempDataProvider requires SessionState' error is caused from a resource request such as an image or file. No session state is provided with such requests, therefor the SessionState is null. To handle this, I do this:&lt;/p&gt;
&lt;p&gt; try&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;IController errorController = new ClientPortal.Controllers.ErrorController();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;errorController.Execute( new RequestContext(&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; new HttpContextWrapper( Context ), routeData ) );&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;catch ( Exception ex )&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//Do Nothing... 9 times out of 10 it's a missing resouce that doesn't contain state&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;Hope this helps... please post if I am wrong.&lt;/p&gt;
&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=517324" width="1" height="1"&gt;</description></item><item><title>re: Real world error hadnling in ASP.NET MVC RC2.</title><link>http://blogs.microsoft.co.il/blogs/shay/archive/2009/03/06/real-world-error-hadnling-in-asp-net-mvc-rc2.aspx#483125</link><pubDate>Sat, 02 Jan 2010 14:48:57 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:483125</guid><dc:creator>Scott Findlater</dc:creator><description>&lt;p&gt;i am also getting the error:&lt;/p&gt;
&lt;p&gt;The SessionStateTempDataProvider requires SessionState to be enabled.&lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;
&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=483125" width="1" height="1"&gt;</description></item><item><title>re: Real world error hadnling in ASP.NET MVC RC2.</title><link>http://blogs.microsoft.co.il/blogs/shay/archive/2009/03/06/real-world-error-hadnling-in-asp-net-mvc-rc2.aspx#462309</link><pubDate>Wed, 09 Dec 2009 19:15:07 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:462309</guid><dc:creator>שי יעקובי</dc:creator><description>&lt;p&gt;Please check with the debugger&lt;/p&gt;
&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=462309" width="1" height="1"&gt;</description></item><item><title>re: Real world error hadnling in ASP.NET MVC RC2.</title><link>http://blogs.microsoft.co.il/blogs/shay/archive/2009/03/06/real-world-error-hadnling-in-asp-net-mvc-rc2.aspx#461277</link><pubDate>Mon, 07 Dec 2009 15:12:23 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:461277</guid><dc:creator>joedirt</dc:creator><description>&lt;p&gt;I've tried to implement this into my project and I get a blank screen back. &amp;nbsp;The response is empty and the URL doesn't change to my error view. &amp;nbsp;I've stepped through the code in the debugger and I see the HttpError404 controller method being called and returning the View, but then I don't get anything on the screen. &amp;nbsp;Any suggestions?&lt;/p&gt;
&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=461277" width="1" height="1"&gt;</description></item><item><title>re: Javascript and Css files compressor</title><link>http://blogs.microsoft.co.il/blogs/shay/archive/2009/11/13/js-css-files-compressor.aspx#444888</link><pubDate>Sat, 14 Nov 2009 18:41:09 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:444888</guid><dc:creator>Basil Goldman</dc:creator><description>&lt;p&gt;Yep. YUI Compressor is a good tool but sometimes can't compress JavaScript, because &amp;quot;we are programmers&amp;quot; forget to insert &amp;quot;;&amp;quot; in the end of line or after prototype scope :-).&lt;/p&gt;
&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=444888" width="1" height="1"&gt;</description></item><item><title>re: Real world error hadnling in ASP.NET MVC RC2.</title><link>http://blogs.microsoft.co.il/blogs/shay/archive/2009/03/06/real-world-error-hadnling-in-asp-net-mvc-rc2.aspx#429629</link><pubDate>Fri, 23 Oct 2009 10:34:14 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:429629</guid><dc:creator>Nimesh</dc:creator><description>&lt;p&gt;i am getting errror:&lt;/p&gt;
&lt;p&gt;The SessionStateTempDataProvider requires SessionState to be enabled.&lt;/p&gt;
&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=429629" width="1" height="1"&gt;</description></item><item><title>re: Real world error hadnling in ASP.NET MVC RC2.</title><link>http://blogs.microsoft.co.il/blogs/shay/archive/2009/03/06/real-world-error-hadnling-in-asp-net-mvc-rc2.aspx#429598</link><pubDate>Fri, 23 Oct 2009 09:17:46 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:429598</guid><dc:creator>Palantir</dc:creator><description>&lt;p&gt;Great code. You have a typo in the page title, though :)&lt;/p&gt;
&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=429598" width="1" height="1"&gt;</description></item><item><title>re: Real world error hadnling in ASP.NET MVC RC2.</title><link>http://blogs.microsoft.co.il/blogs/shay/archive/2009/03/06/real-world-error-hadnling-in-asp-net-mvc-rc2.aspx#426251</link><pubDate>Thu, 15 Oct 2009 15:28:09 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:426251</guid><dc:creator>Sam Shawn</dc:creator><description>&lt;p&gt;Thanks your codes, but InvalidOperationException with message &amp;quot;Session state disabled&amp;quot; at &lt;/p&gt;
&lt;p&gt; &amp;nbsp;errorController.Execute(new RequestContext(new HttpContextWrapper(Context), routeData));&lt;/p&gt;
&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=426251" width="1" height="1"&gt;</description></item><item><title>re: Real world error hadnling in ASP.NET MVC RC2.</title><link>http://blogs.microsoft.co.il/blogs/shay/archive/2009/03/06/real-world-error-hadnling-in-asp-net-mvc-rc2.aspx#369746</link><pubDate>Thu, 23 Jul 2009 09:51:24 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:369746</guid><dc:creator>Andrew</dc:creator><description>&lt;p&gt;Thanks for the code. &amp;nbsp;However it appears to break if I type in a URL for example &amp;quot;/foo/foo/foo/foo&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;quot;The SessionStateTempDataProvider requires SessionState to be enabled.&amp;quot;&lt;/p&gt;
&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=369746" width="1" height="1"&gt;</description></item><item><title>re: Real world error hadnling in ASP.NET MVC RC2.</title><link>http://blogs.microsoft.co.il/blogs/shay/archive/2009/03/06/real-world-error-hadnling-in-asp-net-mvc-rc2.aspx#366029</link><pubDate>Wed, 15 Jul 2009 22:56:26 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:366029</guid><dc:creator>Eduardo</dc:creator><description>&lt;p&gt;Do you know why if the error is a security error (try posting &amp;lt;script&amp;gt; in a textbox) it is not catched?&lt;/p&gt;
&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=366029" width="1" height="1"&gt;</description></item><item><title>asp.net mvc 的异常处理解决方案 </title><link>http://blogs.microsoft.co.il/blogs/shay/archive/2009/03/06/real-world-error-hadnling-in-asp-net-mvc-rc2.aspx#326835</link><pubDate>Wed, 03 Jun 2009 03:03:07 GMT</pubDate><guid isPermaLink="false">b5c4f5bc-c09b-4439-a595-91a98c1847df:326835</guid><dc:creator>flyfesh</dc:creator><description>&lt;p&gt;应用程序发生异常时，给用户一个友好的处理方式，同时将异常记录下来并通知系统管理员或是运维人员是应用的开发的常用场景。web form上微软提供了一个工具包，关于这个工具包参看推荐一个工具包自定义HTTP 404错误。如何在asp.net mvc上实现这样的功能呢？asp.net mvc 在创建项目的时候在Views的Shared目录下有一个错误处理页Error.aspx视图，这个默认的错误处理功能没有实现对错误日志的记录。&lt;/p&gt;
&lt;img src="http://blogs.microsoft.co.il/aggbug.aspx?PostID=326835" width="1" height="1"&gt;</description></item></channel></rss>
