<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments for Corey Coogan</title>
	<atom:link href="http://blog.coreycoogan.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.coreycoogan.com</link>
	<description>Python, .Net, C#, ASP.NET MVC, Architecture and Design</description>
	<lastBuildDate>Tue, 05 Feb 2013 13:49:31 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>Comment on Calling ASP.NET Web Service (ASMX) from JQuery by coreycoogan</title>
		<link>http://blog.coreycoogan.com/2010/12/17/calling-asp-net-web-service-asmx-from-jquery/#comment-405</link>
		<dc:creator><![CDATA[coreycoogan]]></dc:creator>
		<pubDate>Tue, 05 Feb 2013 13:49:31 +0000</pubDate>
		<guid isPermaLink="false">https://coreycoogan.wordpress.com/?p=360#comment-405</guid>
		<description><![CDATA[If you are getting a 500 back from the server, then something is wrong from within the service.  If you are controlling the service, try to add a breakpoint and debug the call to see where it is bombing.  You could also log an error using log4net or NLog, or even Debug.Write.

If you want to make sure your jQuery code is solid, you can make a dummy service and test against that as well, which might help you isolate your problem.  The jQuery you posted looks just fine.]]></description>
		<content:encoded><![CDATA[<p>If you are getting a 500 back from the server, then something is wrong from within the service.  If you are controlling the service, try to add a breakpoint and debug the call to see where it is bombing.  You could also log an error using log4net or NLog, or even Debug.Write.</p>
<p>If you want to make sure your jQuery code is solid, you can make a dummy service and test against that as well, which might help you isolate your problem.  The jQuery you posted looks just fine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Calling ASP.NET Web Service (ASMX) from JQuery by dorababu743</title>
		<link>http://blog.coreycoogan.com/2010/12/17/calling-asp-net-web-service-asmx-from-jquery/#comment-403</link>
		<dc:creator><![CDATA[dorababu743]]></dc:creator>
		<pubDate>Tue, 05 Feb 2013 06:35:19 +0000</pubDate>
		<guid isPermaLink="false">https://coreycoogan.wordpress.com/?p=360#comment-403</guid>
		<description><![CDATA[Can you help me this is my script but I am getting an internal server error, this works fine in asp.net page but in MVC I am getting this


    var emptyUserNameMessage = &#039;Please enter the username&#039;;
    var progressUserNameMessage = &#039;Checking...&#039;;
    var availableUserNameMessage = &#039;Username is available&#039;;
    var usedUserNameMessage = &#039;Username has been taken&#039;;


    $(function () {
        var userNameAvailabilityLabel = $(&quot;#UserNameAvailabilityLabel&quot;);

        $(&quot;#username&quot;).blur(function () {
            var userNameTextBox = $(&quot;#username&quot;);
            var userName = userNameTextBox.val();
            if ($.trim(userName) == &#039;&#039;) {
                userNameAvailabilityLabel
                            .removeClass()
                            .addClass(&#039;required1&#039;)
                            .html(emptyUserNameMessage);
            }
            else {
                userNameAvailabilityLabel.html(&#039;&#039;);
                $(&quot;#ProgressDiv&quot;).show();

                $.ajax({
                    type: &quot;POST&quot;,
                    url: &quot;forumApp/Checkavailability.asmx/CheckUserNameAvailability&quot;,
                    data: &quot;{userName: \&quot;&quot; + userNameTextBox.val() + &quot;\&quot;}&quot;,
                    contentType: &quot;application/json; charset=utf-8&quot;,
                    dataType: &quot;json&quot;,
                    success: OnCheckUserNameAvailabilitySuccess,
                    error: OnCheckUserNameAvailabilityError
                });
            }
            return false; //Prevent postback
        });

        function OnCheckUserNameAvailabilitySuccess(response) {
            $(&quot;#ProgressDiv&quot;).hide();
            if (response != null &amp;&amp; response.d != null) {
                var data = response.d;
                switch (data) {
                    case 0:
                        userNameAvailabilityLabel
                            .removeClass()
                            .addClass(&#039;available&#039;)
                            .html(availableUserNameMessage);
                        $(&quot;#btnSubmit&quot;).removeAttr(&#039;disabled&#039;);
                        break;
                    case 1:
                        userNameAvailabilityLabel
                            .removeClass()
                            .addClass(&#039;used&#039;)
                            .html(usedUserNameMessage);
                        $(&quot;#btnSubmit&quot;).attr(&#039;disabled&#039;, &#039;disabled&#039;);
                        break;
                }
            }
        }
        function OnCheckUserNameAvailabilityError(xhr, ajaxOptions, thrownError) {
            alert(xhr.statusText);
        }
    });
 
]]></description>
		<content:encoded><![CDATA[<p>Can you help me this is my script but I am getting an internal server error, this works fine in asp.net page but in MVC I am getting this</p>
<p>    var emptyUserNameMessage = &#8216;Please enter the username&#8217;;<br />
    var progressUserNameMessage = &#8216;Checking&#8230;&#8217;;<br />
    var availableUserNameMessage = &#8216;Username is available&#8217;;<br />
    var usedUserNameMessage = &#8216;Username has been taken&#8217;;</p>
<p>    $(function () {<br />
        var userNameAvailabilityLabel = $(&#8220;#UserNameAvailabilityLabel&#8221;);</p>
<p>        $(&#8220;#username&#8221;).blur(function () {<br />
            var userNameTextBox = $(&#8220;#username&#8221;);<br />
            var userName = userNameTextBox.val();<br />
            if ($.trim(userName) == &#8221;) {<br />
                userNameAvailabilityLabel<br />
                            .removeClass()<br />
                            .addClass(&#8216;required1&#8242;)<br />
                            .html(emptyUserNameMessage);<br />
            }<br />
            else {<br />
                userNameAvailabilityLabel.html(&#8221;);<br />
                $(&#8220;#ProgressDiv&#8221;).show();</p>
<p>                $.ajax({<br />
                    type: &#8220;POST&#8221;,<br />
                    url: &#8220;forumApp/Checkavailability.asmx/CheckUserNameAvailability&#8221;,<br />
                    data: &#8220;{userName: \&#8221;" + userNameTextBox.val() + &#8220;\&#8221;}&#8221;,<br />
                    contentType: &#8220;application/json; charset=utf-8&#8243;,<br />
                    dataType: &#8220;json&#8221;,<br />
                    success: OnCheckUserNameAvailabilitySuccess,<br />
                    error: OnCheckUserNameAvailabilityError<br />
                });<br />
            }<br />
            return false; //Prevent postback<br />
        });</p>
<p>        function OnCheckUserNameAvailabilitySuccess(response) {<br />
            $(&#8220;#ProgressDiv&#8221;).hide();<br />
            if (response != null &amp;&amp; response.d != null) {<br />
                var data = response.d;<br />
                switch (data) {<br />
                    case 0:<br />
                        userNameAvailabilityLabel<br />
                            .removeClass()<br />
                            .addClass(&#8216;available&#8217;)<br />
                            .html(availableUserNameMessage);<br />
                        $(&#8220;#btnSubmit&#8221;).removeAttr(&#8216;disabled&#8217;);<br />
                        break;<br />
                    case 1:<br />
                        userNameAvailabilityLabel<br />
                            .removeClass()<br />
                            .addClass(&#8216;used&#8217;)<br />
                            .html(usedUserNameMessage);<br />
                        $(&#8220;#btnSubmit&#8221;).attr(&#8216;disabled&#8217;, &#8216;disabled&#8217;);<br />
                        break;<br />
                }<br />
            }<br />
        }<br />
        function OnCheckUserNameAvailabilityError(xhr, ajaxOptions, thrownError) {<br />
            alert(xhr.statusText);<br />
        }<br />
    });</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Calling ASP.NET Web Service (ASMX) from JQuery by sell structured settlement payments canada</title>
		<link>http://blog.coreycoogan.com/2010/12/17/calling-asp-net-web-service-asmx-from-jquery/#comment-402</link>
		<dc:creator><![CDATA[sell structured settlement payments canada]]></dc:creator>
		<pubDate>Sun, 03 Feb 2013 16:20:05 +0000</pubDate>
		<guid isPermaLink="false">https://coreycoogan.wordpress.com/?p=360#comment-402</guid>
		<description><![CDATA[What&#039;s up everyone, it&#039;s my first pay a visit at this 
website, and post is in fact fruitful designed for 
me, keep up posting such posts.]]></description>
		<content:encoded><![CDATA[<p>What&#8217;s up everyone, it&#8217;s my first pay a visit at this<br />
website, and post is in fact fruitful designed for<br />
me, keep up posting such posts.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on JQuery&#8217;s Dialog and Form Problems by geekforte</title>
		<link>http://blog.coreycoogan.com/2010/12/01/jquerys-dialog-and-form-problems/#comment-382</link>
		<dc:creator><![CDATA[geekforte]]></dc:creator>
		<pubDate>Fri, 13 Apr 2012 18:53:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.coreycoogan.com/?p=351#comment-382</guid>
		<description><![CDATA[Thanks, saved me some time too!]]></description>
		<content:encoded><![CDATA[<p>Thanks, saved me some time too!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Visitor Pattern: A Real World Example by Fathom Savvy</title>
		<link>http://blog.coreycoogan.com/2009/06/16/visitor-pattern-real-world-example/#comment-381</link>
		<dc:creator><![CDATA[Fathom Savvy]]></dc:creator>
		<pubDate>Tue, 27 Mar 2012 23:08:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.coreycoogan.com/?p=76#comment-381</guid>
		<description><![CDATA[Thanks Corey.  You are correct.  I just had the opportunity to use the Visitor Pattern in a real world (for work) system.  I used your article as a reference :) You were right, I didn&#039;t have to define an interface with members that did nothing in some classes.  I don&#039;t know what I was thinking.  I remember using reflector to see how Fluent Nhibernate worked.  I saw it was using the visitor pattern, but I didn&#039;t understand it at the time.  Now I have a better idea.]]></description>
		<content:encoded><![CDATA[<p>Thanks Corey.  You are correct.  I just had the opportunity to use the Visitor Pattern in a real world (for work) system.  I used your article as a reference <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  You were right, I didn&#8217;t have to define an interface with members that did nothing in some classes.  I don&#8217;t know what I was thinking.  I remember using reflector to see how Fluent Nhibernate worked.  I saw it was using the visitor pattern, but I didn&#8217;t understand it at the time.  Now I have a better idea.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Mocking DateTime.Now by Elegant Code &#187; NuGet Project Uncovered: Deleporter</title>
		<link>http://blog.coreycoogan.com/2009/06/07/mocking-datetime-now/#comment-369</link>
		<dc:creator><![CDATA[Elegant Code &#187; NuGet Project Uncovered: Deleporter]]></dc:creator>
		<pubDate>Tue, 07 Feb 2012 04:33:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.coreycoogan.com/?p=37#comment-369</guid>
		<description><![CDATA[[...] Now how do you do things like mock out crazy dependencies, adjust the time in your favorite SystemTime implementation or just tweak the configuration on the [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Now how do you do things like mock out crazy dependencies, adjust the time in your favorite SystemTime implementation or just tweak the configuration on the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Visitor Pattern: A Real World Example by coreycoogan</title>
		<link>http://blog.coreycoogan.com/2009/06/16/visitor-pattern-real-world-example/#comment-365</link>
		<dc:creator><![CDATA[coreycoogan]]></dc:creator>
		<pubDate>Tue, 31 Jan 2012 13:06:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.coreycoogan.com/?p=76#comment-365</guid>
		<description><![CDATA[I would avoid implementing an interface and then not implementing them.  This is a violation of the &lt;a href=&quot;http://www.objectmentor.com/publications/isp.pdf&quot; title=&quot;Uncle Bob&#039;s Explanation (PDF)&quot; rel=&quot;nofollow&quot;&gt;Interface Segregation Principal&lt;/a&gt;, which states that a classes should depend on the smallest possible interface.

You could potentially use the &lt;a href=&quot;http://en.wikipedia.org/wiki/Strategy_pattern&quot; rel=&quot;nofollow&quot;&gt;Strategy pattern&lt;/a&gt; and define which strategy is going to be used at runtime.  Then you know you are calling on only the strategy implementation you need.]]></description>
		<content:encoded><![CDATA[<p>I would avoid implementing an interface and then not implementing them.  This is a violation of the <a href="http://www.objectmentor.com/publications/isp.pdf" title="Uncle Bob's Explanation (PDF)" rel="nofollow">Interface Segregation Principal</a>, which states that a classes should depend on the smallest possible interface.</p>
<p>You could potentially use the <a href="http://en.wikipedia.org/wiki/Strategy_pattern" rel="nofollow">Strategy pattern</a> and define which strategy is going to be used at runtime.  Then you know you are calling on only the strategy implementation you need.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Visitor Pattern: A Real World Example by Fathom Savvy</title>
		<link>http://blog.coreycoogan.com/2009/06/16/visitor-pattern-real-world-example/#comment-364</link>
		<dc:creator><![CDATA[Fathom Savvy]]></dc:creator>
		<pubDate>Tue, 31 Jan 2012 01:10:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.coreycoogan.com/?p=76#comment-364</guid>
		<description><![CDATA[Thanks for the Article!  It was enough to make me realize rhat the pattern is designed to be used with Polymorphic classes.  You setup the interface so that it has a Visit method for each of the derived classes.  Then you can create any class (implementing the interface) to do whatever you want with each of the derived classes.  So I&#039;m thinking you&#039;d only want to use the visitor pattern if you have a need for one class to use all of the derived classes.  If the class in question only used 1 of the derived classes, then a different pattern would be called for.  Right?  Or would you use the visitor pattern and throw NotSupportedExceptions for the derived classes that have no importance or could be used by mistake.]]></description>
		<content:encoded><![CDATA[<p>Thanks for the Article!  It was enough to make me realize rhat the pattern is designed to be used with Polymorphic classes.  You setup the interface so that it has a Visit method for each of the derived classes.  Then you can create any class (implementing the interface) to do whatever you want with each of the derived classes.  So I&#8217;m thinking you&#8217;d only want to use the visitor pattern if you have a need for one class to use all of the derived classes.  If the class in question only used 1 of the derived classes, then a different pattern would be called for.  Right?  Or would you use the visitor pattern and throw NotSupportedExceptions for the derived classes that have no importance or could be used by mistake.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Castle Windsor Tutorial in Asp.Net MVC by coreycoogan</title>
		<link>http://blog.coreycoogan.com/2009/11/06/castle-windsor-tutorial-in-asp-net-mvc/#comment-355</link>
		<dc:creator><![CDATA[coreycoogan]]></dc:creator>
		<pubDate>Mon, 28 Nov 2011 14:56:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.coreycoogan.com/?p=196#comment-355</guid>
		<description><![CDATA[Your structure is a little different than I would typically use, but I think it&#039;s probably just your naming convention.  For example, I see no Domain project, so I&#039;m guessing your EF project is your domain.

Are you passing your entities directly to your web project or just using DTO&#039;s?  I would recommend looking at the Sharp Architecture project for a better idea of structuring dependencies.]]></description>
		<content:encoded><![CDATA[<p>Your structure is a little different than I would typically use, but I think it&#8217;s probably just your naming convention.  For example, I see no Domain project, so I&#8217;m guessing your EF project is your domain.</p>
<p>Are you passing your entities directly to your web project or just using DTO&#8217;s?  I would recommend looking at the Sharp Architecture project for a better idea of structuring dependencies.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Castle Windsor Tutorial in Asp.Net MVC by Sushant K</title>
		<link>http://blog.coreycoogan.com/2009/11/06/castle-windsor-tutorial-in-asp-net-mvc/#comment-354</link>
		<dc:creator><![CDATA[Sushant K]]></dc:creator>
		<pubDate>Fri, 25 Nov 2011 00:42:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.coreycoogan.com/?p=196#comment-354</guid>
		<description><![CDATA[Thanks a lot for your response. here is how my project is structured--

web Project (controller) --  this creates the container and installs the components.
        &#124;
	&#124;  references
	V
Service Project -- this has the Services (example UserService -- login(), retirevepassword() etc.)
entity Project -- this has all the POCOS (EF mappings), Service, Repository Interfaces (IUserService etc.)
	&#124;
	&#124;
	V
Repository Project -- this has Repositories (UserRepository -- GetUsers(), AddUser(), DeleteUser() etc.)
entity Project -- this has all the POCOS (EF mappings), Service, Repository Interfaces (IUserService, IuserRepository etc.)
	&#124;
	&#124;
	V
Data project -- This has the entity Framework Data Model

Now, since my web project has reference to Service project and Entity project, I am able to install UserService into container, but since Service has IUserRepository dependency, it is unable to create it due to the fact that web project does not have reference to the Repository project. (even though the interfaces are all in the separate entity project).

Any help would be highly appreciated.

Thanks]]></description>
		<content:encoded><![CDATA[<p>Thanks a lot for your response. here is how my project is structured&#8211;</p>
<p>web Project (controller) &#8212;  this creates the container and installs the components.<br />
        |<br />
	|  references<br />
	V<br />
Service Project &#8212; this has the Services (example UserService &#8212; login(), retirevepassword() etc.)<br />
entity Project &#8212; this has all the POCOS (EF mappings), Service, Repository Interfaces (IUserService etc.)<br />
	|<br />
	|<br />
	V<br />
Repository Project &#8212; this has Repositories (UserRepository &#8212; GetUsers(), AddUser(), DeleteUser() etc.)<br />
entity Project &#8212; this has all the POCOS (EF mappings), Service, Repository Interfaces (IUserService, IuserRepository etc.)<br />
	|<br />
	|<br />
	V<br />
Data project &#8212; This has the entity Framework Data Model</p>
<p>Now, since my web project has reference to Service project and Entity project, I am able to install UserService into container, but since Service has IUserRepository dependency, it is unable to create it due to the fact that web project does not have reference to the Repository project. (even though the interfaces are all in the separate entity project).</p>
<p>Any help would be highly appreciated.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
