<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://www.codeplex.com/rss.xsl"?><rss version="2.0"><channel><title>FlickrXplorer Forum Rss Feed</title><link>http://www.codeplex.com/FlickrXplorer/Thread/List.aspx</link><description>FlickrXplorer Forum Rss Description</description><item><title>New Post: I'm getting an error and I don't know why!</title><link>http://flickrxplorer.codeplex.com/Thread/View.aspx?ThreadId=52075</link><description>&lt;div style="line-height: normal;"&gt;
Thanks a lot Mehfuz, I realised what it was, just not why it was happening. Thanks for the patch though.&lt;br&gt;Cheers&lt;br&gt;Paul&lt;br&gt;&lt;br&gt;&lt;hr id=stopSpelling&gt;From: [email removed]&lt;br&gt;To: [email removed]&lt;br&gt;Date: Thu, 2 Apr 2009 12:14:28 -0700&lt;br&gt;Subject: Re: I'm getting an error and I don't know why! [FlickrXplorer:52075]&lt;br&gt;&lt;br&gt;

 From: mehfuzh&lt;br&gt; &lt;div id="EC_ThreadNotificationPostBody"&gt;Hi Paul,&lt;br&gt;
Reason,  beacause request.Context is coming null. i have added a patch at the source tab, please download it and give a try. I will add a new version tested in 1.0 in a day or two.&lt;br&gt;
&lt;br&gt;
Hope that Helps,&lt;br&gt;
Mehfuz.
&lt;/div&gt; &lt;br&gt;&lt;hr&gt;Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! &lt;a href="http://spaces.live.com/spacesapi.aspx?wx_action=create&amp;wx_url=/friends.aspx&amp;mkt=en-us"&gt;Try it!&lt;/a&gt;&lt;/div&gt;</description><author>pault70</author><pubDate>Wed, 15 Apr 2009 17:01:16 GMT</pubDate><guid isPermaLink="false">New Post: I'm getting an error and I don't know why! 20090415050116P</guid></item><item><title>New Post: I'm getting an error and I don't know why!</title><link>http://flickrxplorer.codeplex.com/Thread/View.aspx?ThreadId=52075</link><description>&lt;div style="line-height: normal;"&gt;Hi Paul,&lt;br&gt;
Reason,  beacause request.Context is coming null. i have added a patch at the source tab, please download it and give a try. I will add a new version tested in 1.0 in a day or two.&lt;br&gt;
&lt;br&gt;
Hope that Helps,&lt;br&gt;
Mehfuz.
&lt;/div&gt;</description><author>mehfuzh</author><pubDate>Thu, 02 Apr 2009 19:14:26 GMT</pubDate><guid isPermaLink="false">New Post: I'm getting an error and I don't know why! 20090402071426P</guid></item><item><title>New Post: I'm getting an error and I don't know why!</title><link>http://flickrxplorer.codeplex.com/Thread/View.aspx?ThreadId=52075</link><description>&lt;div style="line-height: normal;"&gt;Hi,&lt;br&gt;
&lt;br&gt;
I'm a newbie to ASP.NET MVC and am getting the following error when I run the app. The strange thing is that when I set a breakpoint on the line preceding the one that gives the error (HttpContextBase context = filterContext.HttpContext;) and step through the code from there on, the error goes away and it works fine! By th way I am using MVC Release version 1&lt;br&gt;
&lt;br&gt;
Any ideas?&lt;br&gt;
&lt;br&gt;
Thanks&lt;br&gt;
Paul&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&amp;lt;title&amp;gt;Object reference not set to an instance of an object.&amp;lt;/title&amp;gt;
&amp;lt;style&amp;gt;
    BODY {
    FONT-WEIGHT: normal; FONT-SIZE: 0.7em; COLOR: black; FONT-FAMILY: &amp;quot;Verdana&amp;quot;
    }
    P {
    MARGIN-TOP: -5px; FONT-WEIGHT: normal; COLOR: black; FONT-FAMILY: &amp;quot;Verdana&amp;quot;
    }
    B {
    MARGIN-TOP: -5px; FONT-WEIGHT: bold; COLOR: black; FONT-FAMILY: &amp;quot;Verdana&amp;quot;
    }
    H1 {
    FONT-WEIGHT: normal; FONT-SIZE: 18pt; COLOR: red; FONT-FAMILY: &amp;quot;Verdana&amp;quot;
    }
    H2 {
    FONT-WEIGHT: normal; FONT-SIZE: 14pt; COLOR: maroon; FONT-FAMILY: &amp;quot;Verdana&amp;quot;
    }
    PRE {
    FONT-SIZE: 0.9em; FONT-FAMILY: &amp;quot;Lucida Console&amp;quot;
    }
    .marker {
    FONT-WEIGHT: bold; COLOR: black; TEXT-DECORATION: none
    }
    .version {
    COLOR: gray
    }
    .error {
    MARGIN-BOTTOM: 10px
    }
    .expandable {
    FONT-WEIGHT: bold; CURSOR: hand; COLOR: navy; TEXT-DECORATION: underline
    }
&amp;lt;/style&amp;gt;
&lt;span&gt;
&lt;h2&gt;&lt;em&gt;Object reference not set to an instance of an object.&lt;/em&gt;
&lt;/h2&gt;
&lt;/span&gt;&lt;span style="font-family:arial,helvetica,geneva,sunsans-regular,sans-serif"&gt;&lt;strong&gt;Description:
&lt;/strong&gt;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. &lt;br&gt;
&lt;br&gt;
&lt;strong&gt;Exception Details:
&lt;/strong&gt;System.NullReferenceException: Object reference not set to an instance of an
object.&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;Source Error:&lt;/strong&gt; &lt;br&gt;
&lt;br&gt;
&lt;table width="100%" style="background-color:#ffffcc"&gt;
    &lt;tbody&gt;
        &lt;tr&gt;
            &lt;td&gt;&lt;code&gt;&lt;/code&gt;
            &lt;pre&gt;Line 12:             HttpContextBase context = filterContext.HttpContext;
Line 13: 
&lt;span style="color:red"&gt;Line 14:             string acceptEncoding = context.Request.Headers[&amp;quot;Accept-Encoding&amp;quot;];
&lt;/span&gt;Line 15: 
Line 16:             if (!string.IsNullOrEmpty(acceptEncoding))&lt;/pre&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
    &lt;/tbody&gt;
&lt;/table&gt;
&lt;br&gt;
&lt;strong&gt;Source
File:
&lt;/strong&gt;C:\Work\FlickrXplorer.Src\FlickrXplorer.Web\CompressResponseAttribute.cs&lt;strong&gt;
&amp;nbsp;&amp;nbsp; Line: &lt;/strong&gt;14 &lt;br&gt;
&lt;br&gt;
&lt;strong&gt;Stack Trace:&lt;/strong&gt; &lt;br&gt;
&lt;br&gt;
&lt;table width="100%" style="background-color:#ffffcc"&gt;
    &lt;tbody&gt;
        &lt;tr&gt;
            &lt;td&gt;&lt;code&gt;&lt;/code&gt;
            &lt;pre&gt;[NullReferenceException: Object reference not set to an instance of an object.]
   FlickrXplorer.Web.CompressResponseAttribute.OnActionExecuting(ActionExecutingContext filterContext) in C:\Work\FlickrXplorer.Src\FlickrXplorer.Web\CompressResponseAttribute.cs:14
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +47
   System.Web.Mvc.&amp;lt;&amp;gt;c__DisplayClassc.&amp;lt;InvokeActionMethodWithFilters&amp;gt;b__9() +19
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +254
   System.Web.Mvc.&amp;lt;&amp;gt;c__DisplayClassc.&amp;lt;InvokeActionMethodWithFilters&amp;gt;b__9() +19
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +192
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +399
   System.Web.Mvc.Controller.ExecuteCore() +126
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +27
   System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +7
   System.Web.Mvc.MvcHandler.ProcessRequest(HttpContextBase httpContext) +151
   System.Web.Mvc.MvcHandler.ProcessRequest(HttpContext httpContext) +57
   System.Web.Mvc.MvcHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext httpContext) +7
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp;amp; completedSynchronously) +75
&lt;/pre&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
    &lt;/tbody&gt;
&lt;/table&gt;
&lt;/span&gt;&lt;br&gt;
&lt;/div&gt;</description><author>pault70</author><pubDate>Thu, 02 Apr 2009 13:43:21 GMT</pubDate><guid isPermaLink="false">New Post: I'm getting an error and I don't know why! 20090402014321P</guid></item><item><title>New Post: gOOD asp.net mvc practical example using tests</title><link>http://www.codeplex.com/FlickrXplorer/Thread/View.aspx?ThreadId=39969</link><description>&lt;div style="line-height: normal;"&gt;Thanks for the kind words, thats really nice to hear.
&lt;/div&gt;</description><author>mehfuzh</author><pubDate>Wed, 19 Nov 2008 13:36:12 GMT</pubDate><guid isPermaLink="false">New Post: gOOD asp.net mvc practical example using tests 20081119013612P</guid></item><item><title>New Post: gOOD asp.net mvc practical example using tests</title><link>http://www.codeplex.com/FlickrXplorer/Thread/View.aspx?ThreadId=39969</link><description>&lt;div style="line-height: normal;"&gt;Thanks very much for sharing this. I was searching for an update for Asp.Net MVC &lt;em&gt;beta&lt;/em&gt; using NUnit to test Controllers and found this project.  Upon inspecting the code, it is immediately apparent that the author(s) have an exceptional handle on good design and architecture.  It certainly accomplished my goal of provinding a strong example for testing controllers.  I also learned a bit from looking at how the Models are organized (ViewData classes).  Definitely a more flecxible approach that my giant, compound view data classes and separate repositories.  I didn't take the appropriate time to design my ViewData model up front and now I have some work to do :)
&lt;/div&gt;</description><author>levous</author><pubDate>Fri, 14 Nov 2008 18:10:47 GMT</pubDate><guid isPermaLink="false">New Post: gOOD asp.net mvc practical example using tests 20081114061047P</guid></item><item><title>New Post: flickrmvc.net Demo</title><link>http://www.codeplex.com/FlickrXplorer/Thread/View.aspx?ThreadId=31604</link><description>&lt;div style="line-height: normal;"&gt;&lt;br&gt;
&lt;div style="border-style:dotted none;border-color:rgb(170, 170, 170) -moz-use-text-color;border-width:0.1em medium;margin:1em 0em 2.5em 3em;padding:0.2em;font-style:italic"&gt;&lt;br&gt;
mehfuzh wrote:&lt;br&gt;
&lt;br&gt;
Thanks!!!. Actually,&amp;nbsp;I told ORCS web to move my app to windows server&amp;nbsp;2008, IIS 7 integrated mode enviroment, may be in between the transition process you have seen it.&lt;br&gt;
&lt;br&gt;
Here is the url , now it works fine. Note there is no Photo.MVC its only Photo.&lt;br&gt;
&lt;br&gt;
&lt;a href="http://flickrmvc.net/Photo/Search?q=cat+laptop&amp;Page=7#2617311543"&gt;http://flickrmvc.net/Photo/Search?q=cat+laptop&amp;amp;Page=7#2617311543&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;
Seems to work now! Many thanks!&lt;br&gt;
hfrmobile&lt;br&gt;
&lt;/div&gt;</description><author>hfrmobile</author><pubDate>Thu, 17 Jul 2008 10:38:00 GMT</pubDate><guid isPermaLink="false">New Post: flickrmvc.net Demo 20080717103800A</guid></item><item><title>New Post: flickrmvc.net Demo</title><link>http://www.codeplex.com/FlickrXplorer/Thread/View.aspx?ThreadId=31604</link><description>&lt;div style="line-height: normal;"&gt;&lt;br&gt;
Thanks!!!. Actually,&amp;nbsp;I told ORCS web to move my app to windows server&amp;nbsp;2008, IIS 7 integrated mode enviroment, may be in between the transition process you have seen it.&lt;br&gt;
&lt;br&gt;
Here is the url , now it works fine. Note there is no Photo.MVC its only Photo.&lt;br&gt;
&lt;br&gt;
&lt;a href="http://flickrmvc.net/Photo/Search?q=cat+laptop&amp;Page=7#2617311543"&gt;http://flickrmvc.net/Photo/Search?q=cat+laptop&amp;amp;Page=7#2617311543&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;div style="border-right:medium none;padding-right:0.2em;border-top:#aaa 0.1em dotted;padding-left:0.2em;padding-bottom:0.2em;margin:1em 0em 2.5em 3em;border-left:medium none;padding-top:0.2em;border-bottom:#aaa 0.1em dotted;font-style:italic"&gt;&lt;br&gt;
hfrmobile wrote:&lt;br&gt;
e.g. &lt;a title="Server error" href="http://flickrmvc.net/Photo.mvc/Search?q=cat+laptop&amp;Page=7#2617311543"&gt;http://flickrmvc.net/Photo.mvc/Search?q=cat+laptop&amp;amp;Page=7#2617311543&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;span&gt;
&lt;h1&gt;Server Error in '/' Application.
&lt;hr width="100%" color=silver size=1&gt;
&lt;/h1&gt;
&lt;h2&gt;&lt;em&gt;Runtime Error&lt;/em&gt; &lt;/h2&gt;
&lt;/span&gt;&lt;span style="font-family:Arial,Helvetica,Geneva,SunSans-Regular,sans-serif"&gt;&lt;strong&gt;Description: &lt;/strong&gt;An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. &lt;br&gt;
&lt;br&gt;
&lt;strong&gt;Details:&lt;/strong&gt; To enable the details of this specific error message to be viewable on remote machines, please create a &amp;lt;customErrors&amp;gt; tag within a &amp;quot;web.config&amp;quot; configuration file located in the root directory of the current web application. This &amp;lt;customErrors&amp;gt; tag should then have its &amp;quot;mode&amp;quot; attribute set to &amp;quot;Off&amp;quot;.&lt;br&gt;
&lt;br&gt;
&lt;table width="100%" bgcolor="#ffffcc"&gt;
    &lt;tbody&gt;
        &lt;tr&gt;
            &lt;td&gt;&lt;code&gt;&lt;/code&gt;
            &lt;pre&gt;&amp;lt;!-- Web.Config Configuration File --&amp;gt;&lt;br&gt;&lt;br&gt;&amp;lt;configuration&amp;gt;&lt;br&gt;    &amp;lt;system.web&amp;gt;&lt;br&gt;        &amp;lt;customErrors mode=&amp;quot;Off&amp;quot;/&amp;gt;&lt;br&gt;    &amp;lt;/system.web&amp;gt;&lt;br&gt;&amp;lt;/configuration&amp;gt;&lt;/pre&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
    &lt;/tbody&gt;
&lt;/table&gt;
&lt;br&gt;
&lt;strong&gt;Notes:&lt;/strong&gt; The current error page you are seeing can be replaced by a custom error page by modifying the &amp;quot;defaultRedirect&amp;quot; attribute of the application's &amp;lt;customErrors&amp;gt; configuration tag to point to a custom error page URL.&lt;br&gt;
&lt;br&gt;
&lt;table width="100%" bgcolor="#ffffcc"&gt;
    &lt;tbody&gt;
        &lt;tr&gt;
            &lt;td&gt;&lt;code&gt;&lt;/code&gt;
            &lt;pre&gt;&amp;lt;!-- Web.Config Configuration File --&amp;gt;&lt;br&gt;&lt;br&gt;&amp;lt;configuration&amp;gt;&lt;br&gt;    &amp;lt;system.web&amp;gt;&lt;br&gt;        &amp;lt;customErrors mode=&amp;quot;RemoteOnly&amp;quot; defaultRedirect=&amp;quot;mycustompage.htm&amp;quot;/&amp;gt;&lt;br&gt;    &amp;lt;/system.web&amp;gt;&lt;br&gt;&amp;lt;/configuration&amp;gt;&lt;/pre&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
    &lt;/tbody&gt;
&lt;/table&gt;
&lt;/span&gt;&lt;br&gt;
Just for your information ;-)&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;
&lt;br&gt;
&lt;/div&gt;</description><author>mehfuzh</author><pubDate>Wed, 16 Jul 2008 11:54:24 GMT</pubDate><guid isPermaLink="false">New Post: flickrmvc.net Demo 20080716115424A</guid></item><item><title>New Post: flickrmvc.net Demo</title><link>http://www.codeplex.com/FlickrXplorer/Thread/View.aspx?ThreadId=31604</link><description>&lt;div style="line-height: normal;"&gt;e.g. &lt;a title="Server error" href="http://flickrmvc.net/Photo.mvc/Search?q=cat+laptop&amp;Page=7#2617311543"&gt;http://flickrmvc.net/Photo.mvc/Search?q=cat+laptop&amp;amp;Page=7#2617311543&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;span&gt;
&lt;h1&gt;Server Error in '/' Application.
&lt;hr color=silver size=1 width="100%"&gt;
&lt;/h1&gt;
&lt;h2&gt;&lt;em&gt;Runtime Error&lt;/em&gt; &lt;/h2&gt;
&lt;/span&gt;&lt;span style="font-family:Arial,Helvetica,Geneva,SunSans-Regular,sans-serif"&gt;&lt;strong&gt;Description:
&lt;/strong&gt;An application error occurred on the server. The current custom error
settings for this application prevent the details of the application error from
being viewed remotely (for security reasons). It could, however, be viewed by
browsers running on the local server machine. &lt;br&gt;
&lt;br&gt;
&lt;strong&gt;Details:&lt;/strong&gt; To enable
the details of this specific error message to be viewable on remote machines,
please create a &amp;lt;customErrors&amp;gt; tag within a &amp;quot;web.config&amp;quot; configuration
file located in the root directory of the current web application. This
&amp;lt;customErrors&amp;gt; tag should then have its &amp;quot;mode&amp;quot; attribute set to
&amp;quot;Off&amp;quot;.&lt;br&gt;
&lt;br&gt;
&lt;table bgcolor="#ffffcc" width="100%"&gt;
    &lt;tbody&gt;
        &lt;tr&gt;
            &lt;td&gt;&lt;code&gt;&lt;/code&gt;
            &lt;pre&gt;&amp;lt;!-- Web.Config Configuration File --&amp;gt;&lt;br&gt;&lt;br&gt;&amp;lt;configuration&amp;gt;&lt;br&gt;    &amp;lt;system.web&amp;gt;&lt;br&gt;        &amp;lt;customErrors mode=&amp;quot;Off&amp;quot;/&amp;gt;&lt;br&gt;    &amp;lt;/system.web&amp;gt;&lt;br&gt;&amp;lt;/configuration&amp;gt;&lt;/pre&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
    &lt;/tbody&gt;
&lt;/table&gt;
&lt;br&gt;
&lt;strong&gt;Notes:&lt;/strong&gt;
The current error page you are seeing can be replaced by a custom error page by
modifying the &amp;quot;defaultRedirect&amp;quot; attribute of the application's
&amp;lt;customErrors&amp;gt; configuration tag to point to a custom error page
URL.&lt;br&gt;
&lt;br&gt;
&lt;table bgcolor="#ffffcc" width="100%"&gt;
    &lt;tbody&gt;
        &lt;tr&gt;
            &lt;td&gt;&lt;code&gt;&lt;/code&gt;
            &lt;pre&gt;&amp;lt;!-- Web.Config Configuration File --&amp;gt;&lt;br&gt;&lt;br&gt;&amp;lt;configuration&amp;gt;&lt;br&gt;    &amp;lt;system.web&amp;gt;&lt;br&gt;        &amp;lt;customErrors mode=&amp;quot;RemoteOnly&amp;quot; defaultRedirect=&amp;quot;mycustompage.htm&amp;quot;/&amp;gt;&lt;br&gt;    &amp;lt;/system.web&amp;gt;&lt;br&gt;&amp;lt;/configuration&amp;gt;&lt;/pre&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
    &lt;/tbody&gt;
&lt;/table&gt;
&lt;/span&gt;&lt;br&gt;
Just for your information ;-)&lt;br&gt;
&lt;/div&gt;</description><author>hfrmobile</author><pubDate>Wed, 16 Jul 2008 07:16:37 GMT</pubDate><guid isPermaLink="false">New Post: flickrmvc.net Demo 20080716071637A</guid></item></channel></rss>