<?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>Shawson&#039;s Code Blog &#187; .net</title>
	<atom:link href="http://www.shawson.co.uk/codeblog/category/net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.shawson.co.uk/codeblog</link>
	<description>development notes for my failing memory</description>
	<lastBuildDate>Mon, 26 Jul 2010 19:08:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ASP.net update panel&#8217;s and jQuery</title>
		<link>http://www.shawson.co.uk/codeblog/asp-net-update-panels-and-jquery/</link>
		<comments>http://www.shawson.co.uk/codeblog/asp-net-update-panels-and-jquery/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 11:05:40 +0000</pubDate>
		<dc:creator>shawson</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.shawson.co.uk/codeblog/?p=625</guid>
		<description><![CDATA[I had a problem today with buttons in an update panel and jQuery- there are some buttons which get hidden or displayed depending on the user&#8217;s OS &#8211; mac or pc users basically get shown different instructions- However because these buttons are added by a partial post back of the update panel, the jQuery document.ready [...]


Related posts:<ul><li><a href='http://www.shawson.co.uk/codeblog/jquery-accordion-control-links-not-working/' rel='bookmark' title='Permanent Link: JQuery Accordion Control links not working'>JQuery Accordion Control links not working</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/google-code-highlighter/' rel='bookmark' title='Permanent Link: Google Code Highlighter'>Google Code Highlighter</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/using-findcontrol-to-find-a-repeater-nested-inside-a-repeater-with-headertemplate-or-footertemplate-defined/' rel='bookmark' title='Permanent Link: Using FindControl to find a repeater nested inside a repeater with HeaderTemplate or FooterTemplate defined'>Using FindControl to find a repeater nested inside a repeater with HeaderTemplate or FooterTemplate defined</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>I had a problem today with buttons in an update panel and jQuery- there are some buttons which get hidden or displayed depending on the user&#8217;s OS &#8211; mac or pc users basically get shown different instructions- However because these buttons are added by a partial post back of the update panel, the jQuery document.ready had already fired before these buttons existed.</p>
<p>So I experimented adding the code to the form.submit event but in the end found the solution on google; I simply added this;</p>
<pre class="brush: javascript">
&lt;script type=&#039;text/javascript&#039;&gt;
function pageLoad(sender, args)
{
    // your code here..
    showHideMacLinks();
}
&lt;/script&gt;
</pre>
<p>This handles the pageLoad event raised by my update panel which is fired on the initial load and on the partial post back.  You can filter this to only fire on partial post back by adding  &#8220;if(args.get_isPartialLoad())&#8221;</p>
<p>Found this over on the <a href="http://www.dotnetfunda.com/articles/article471-jquery-and-aspnet-ajax-updatepanel-.aspx">.net Funda blog</a></p>


<p>Related posts:<ul><li><a href='http://www.shawson.co.uk/codeblog/jquery-accordion-control-links-not-working/' rel='bookmark' title='Permanent Link: JQuery Accordion Control links not working'>JQuery Accordion Control links not working</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/google-code-highlighter/' rel='bookmark' title='Permanent Link: Google Code Highlighter'>Google Code Highlighter</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/using-findcontrol-to-find-a-repeater-nested-inside-a-repeater-with-headertemplate-or-footertemplate-defined/' rel='bookmark' title='Permanent Link: Using FindControl to find a repeater nested inside a repeater with HeaderTemplate or FooterTemplate defined'>Using FindControl to find a repeater nested inside a repeater with HeaderTemplate or FooterTemplate defined</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://www.shawson.co.uk/codeblog/asp-net-update-panels-and-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Just Won an MSDN Ultimate Subscription!!</title>
		<link>http://www.shawson.co.uk/codeblog/just-won-an-msdn-ultimate-subscription/</link>
		<comments>http://www.shawson.co.uk/codeblog/just-won-an-msdn-ultimate-subscription/#comments</comments>
		<pubDate>Sun, 11 Jul 2010 12:30:38 +0000</pubDate>
		<dc:creator>shawson</dc:creator>
				<category><![CDATA[.net]]></category>

		<guid isPermaLink="false">http://www.shawson.co.uk/codeblog/?p=623</guid>
		<description><![CDATA[I just won a competition, which in itself is quite amazing as i never win anything- but the prize is an MSDN Ultimate Subscription!!!  Checkout the announcment over on the Less Than Dot Blog!  Many thanks to Denis Gobo &#38; Ted Krueger!


Related posts:FileUpload.PostedFile.Filename includes all the client Path info, but only in IE
Quick XML serialisation [...]


Related posts:<ul><li><a href='http://www.shawson.co.uk/codeblog/fileupload-postedfile-filename-includes-all-the-client-path-info-but-only-in-ie/' rel='bookmark' title='Permanent Link: FileUpload.PostedFile.Filename includes all the client Path info, but only in IE'>FileUpload.PostedFile.Filename includes all the client Path info, but only in IE</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/quick-xml-serialisation-of-an-object/' rel='bookmark' title='Permanent Link: Quick XML serialisation of an object..'>Quick XML serialisation of an object..</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/wcf-404-3-errors/' rel='bookmark' title='Permanent Link: WCF 404.3 Errors'>WCF 404.3 Errors</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>I just won a competition, which in itself is quite amazing as i never win anything- but the prize is an MSDN Ultimate Subscription!!!  Checkout the announcment over on the <a href="http://blogs.lessthandot.com/index.php/Architect/HardwareInfrastructureDesign/msdn-giveaway-winners">Less Than Dot</a> Blog!  Many thanks to Denis Gobo &amp; Ted Krueger!</p>


<p>Related posts:<ul><li><a href='http://www.shawson.co.uk/codeblog/fileupload-postedfile-filename-includes-all-the-client-path-info-but-only-in-ie/' rel='bookmark' title='Permanent Link: FileUpload.PostedFile.Filename includes all the client Path info, but only in IE'>FileUpload.PostedFile.Filename includes all the client Path info, but only in IE</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/quick-xml-serialisation-of-an-object/' rel='bookmark' title='Permanent Link: Quick XML serialisation of an object..'>Quick XML serialisation of an object..</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/wcf-404-3-errors/' rel='bookmark' title='Permanent Link: WCF 404.3 Errors'>WCF 404.3 Errors</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://www.shawson.co.uk/codeblog/just-won-an-msdn-ultimate-subscription/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FileUpload.PostedFile.Filename includes all the client Path info, but only in IE</title>
		<link>http://www.shawson.co.uk/codeblog/fileupload-postedfile-filename-includes-all-the-client-path-info-but-only-in-ie/</link>
		<comments>http://www.shawson.co.uk/codeblog/fileupload-postedfile-filename-includes-all-the-client-path-info-but-only-in-ie/#comments</comments>
		<pubDate>Tue, 22 Jun 2010 15:22:07 +0000</pubDate>
		<dc:creator>shawson</dc:creator>
				<category><![CDATA[.net]]></category>

		<guid isPermaLink="false">http://www.shawson.co.uk/codeblog/?p=618</guid>
		<description><![CDATA[This is a known problem documented on the MSDN &#8211; I&#8217;m sure I&#8217;ve been caught by this before so thought i would blog it!
Firefox and IE7.05XX treat the PostedFile.Filename property differently.
In Firefox, calling FileUpload.PostedFile.Filename will return the name of the file, with no path information.
In IE7, calling FileUpload.PostedFile.Filename will return the full path of the [...]


Related posts:<ul><li><a href='http://www.shawson.co.uk/codeblog/the-path-appnameapp_globalresources-maps-to-a-directory-outside-this-application-which-is-not-supported/' rel='bookmark' title='Permanent Link: The Path &#8216;/AppName/App_GlobalResources&#8217; maps to a directory outside this application, which is not supported.'>The Path &#8216;/AppName/App_GlobalResources&#8217; maps to a directory outside this application, which is not supported.</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/machine-key-generator/' rel='bookmark' title='Permanent Link: Machine Key Generator'>Machine Key Generator</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/a-complete-list-of-net-serializers-in-3-5/' rel='bookmark' title='Permanent Link: A complete list of .NET Serializers in 3.5'>A complete list of .NET Serializers in 3.5</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>This is a known problem <a href="http://msdn.microsoft.com/en-us/library/system.web.httppostedfile.filename(VS.90).aspx" target="_blank">documented on the MSDN</a> &#8211; I&#8217;m sure I&#8217;ve been caught by this before so thought i would blog it!</p>
<blockquote><p><span style="color: #808080;"><em>Firefox and IE7.05XX treat the PostedFile.Filename property differently.</em></span></p>
<p><span style="color: #808080;"><em>In Firefox, calling FileUpload.PostedFile.Filename will return the name of the file, with no path information.</em></span></p>
<p><span style="color: #808080;"><em>In IE7, calling FileUpload.PostedFile.Filename will return the full path of the file + the filename.</em></span></p>
<p><span style="color: #808080;"><em>e.g. if the client file is located at c:\My Documents\Test.xls, Firefox will return &#8216;Test.xls&#8217;, and IE7 will return &#8216;c:\My Documents\Test.xls&#8217;</em></span></p></blockquote>


<p>Related posts:<ul><li><a href='http://www.shawson.co.uk/codeblog/the-path-appnameapp_globalresources-maps-to-a-directory-outside-this-application-which-is-not-supported/' rel='bookmark' title='Permanent Link: The Path &#8216;/AppName/App_GlobalResources&#8217; maps to a directory outside this application, which is not supported.'>The Path &#8216;/AppName/App_GlobalResources&#8217; maps to a directory outside this application, which is not supported.</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/machine-key-generator/' rel='bookmark' title='Permanent Link: Machine Key Generator'>Machine Key Generator</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/a-complete-list-of-net-serializers-in-3-5/' rel='bookmark' title='Permanent Link: A complete list of .NET Serializers in 3.5'>A complete list of .NET Serializers in 3.5</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://www.shawson.co.uk/codeblog/fileupload-postedfile-filename-includes-all-the-client-path-info-but-only-in-ie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MIX2010 Videos</title>
		<link>http://www.shawson.co.uk/codeblog/mix2010-videos/</link>
		<comments>http://www.shawson.co.uk/codeblog/mix2010-videos/#comments</comments>
		<pubDate>Wed, 05 May 2010 15:09:03 +0000</pubDate>
		<dc:creator>shawson</dc:creator>
				<category><![CDATA[.net]]></category>

		<guid isPermaLink="false">http://www.shawson.co.uk/codeblog/?p=536</guid>
		<description><![CDATA[Meant to post this a couple of weeks ago- just incase you havn&#8217;t already seen them the videos from various sessions at Mix2010 ; live.visitmix.com/Videos


Related posts:Google Code Highlighter
The provided URI scheme &#8216;http&#8217; is invalid; expected &#8216;https
Pages jump to the top on post back in asp.net



Related posts:<ul><li><a href='http://www.shawson.co.uk/codeblog/google-code-highlighter/' rel='bookmark' title='Permanent Link: Google Code Highlighter'>Google Code Highlighter</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/the-provided-uri-scheme-http-is-invalid-expected-https/' rel='bookmark' title='Permanent Link: The provided URI scheme &#8216;http&#8217; is invalid; expected &#8216;https'>The provided URI scheme &#8216;http&#8217; is invalid; expected &#8216;https</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/pages-jump-to-the-top-on-post-back-in-aspnet/' rel='bookmark' title='Permanent Link: Pages jump to the top on post back in asp.net'>Pages jump to the top on post back in asp.net</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>Meant to post this a couple of weeks ago- just incase you havn&#8217;t already seen them the videos from various sessions at Mix2010 ; <a href="http://live.visitmix.com/Videos">live.visitmix.com/Videos</a></p>


<p>Related posts:<ul><li><a href='http://www.shawson.co.uk/codeblog/google-code-highlighter/' rel='bookmark' title='Permanent Link: Google Code Highlighter'>Google Code Highlighter</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/the-provided-uri-scheme-http-is-invalid-expected-https/' rel='bookmark' title='Permanent Link: The provided URI scheme &#8216;http&#8217; is invalid; expected &#8216;https'>The provided URI scheme &#8216;http&#8217; is invalid; expected &#8216;https</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/pages-jump-to-the-top-on-post-back-in-aspnet/' rel='bookmark' title='Permanent Link: Pages jump to the top on post back in asp.net'>Pages jump to the top on post back in asp.net</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://www.shawson.co.uk/codeblog/mix2010-videos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP.net aspx pages posting back to the wrong URL when using Server Rewrite</title>
		<link>http://www.shawson.co.uk/codeblog/asp-net-aspx-pages-posting-back-to-the-wrong-url-when-using-server-rewrite/</link>
		<comments>http://www.shawson.co.uk/codeblog/asp-net-aspx-pages-posting-back-to-the-wrong-url-when-using-server-rewrite/#comments</comments>
		<pubDate>Tue, 04 May 2010 15:38:41 +0000</pubDate>
		<dc:creator>shawson</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[URL Rewriting]]></category>

		<guid isPermaLink="false">http://www.shawson.co.uk/codeblog/?p=528</guid>
		<description><![CDATA[Had a problem today working on a new phase of one of our existing sites (a problem which I&#8217;m sure I came up against on another site and fixed a few years ago&#8230;) &#8211; we just added server rewrite with a whole new URL structure like so;
www.site.com/ group name/ series name/ book.htm
This allows the user [...]


Related posts:<ul><li><a href='http://www.shawson.co.uk/codeblog/creating-a-re-usable-shopping-basket-with-generics-in-c-sharp/' rel='bookmark' title='Permanent Link: Creating a re-usable shopping basket with Generics in C#'>Creating a re-usable shopping basket with Generics in C#</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/syndicating-to-rss-using-the-build-in-net-syndicationfeed-classes/' rel='bookmark' title='Permanent Link: Syndicating to RSS using the built in .net SyndicationFeed classes'>Syndicating to RSS using the built in .net SyndicationFeed classes</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/pages-jump-to-the-top-on-post-back-in-aspnet/' rel='bookmark' title='Permanent Link: Pages jump to the top on post back in asp.net'>Pages jump to the top on post back in asp.net</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>Had a problem today working on a new phase of one of our existing sites (a problem which I&#8217;m sure I came up against on another site and fixed a few years ago&#8230;) &#8211; we just added server rewrite with a whole new URL structure like so;</p>
<pre>www.site.com/ group name/ series name/ book.htm</pre>
<p>This allows the user to chop off a folder and get back to the relevant listing page- pretty standard stuff now days.  So this introduces a bunch of virtual folders.  All the sites resources were set to use absolute paths and everything was loading in and rendering fine, but the page crashed every time I click the &#8220;Add to cart&#8221; button&#8211; bit of a show stopper.</p>
<p>This was because dot net isn&#8217;t aware of the rewrite- so while they hit the site on a url like;</p>
<pre>childrens-books/beast-quest/book1.htm</pre>
<p>asp.net thought the page was at</p>
<pre>book-details.aspx?id=9780123456789&amp;catId=1&amp;seriesId=2</pre>
<p>so did a post back to that page, relative to the current folder, giving me;</p>
<pre>childrens-books/beast-quest/book-details.aspx?id=9780123456789&amp;catId=1&amp;seriesId=2</pre>
<p>trying to reference the physical file (which existed at the root level) from the context of a folder which doesn&#8217;t really exist.  The fix is easy (once you find it!) &#8211; for this site the main asp.net form tag was in the masterpage so I just added the following to the Page_Load of my master page;</p>
<p>form1.Action = Request.RawUrl;</p>
<p>Thanks to <a href="http://learn.iis.net/page.aspx/517/url-rewriting-for-aspnet-web-forms/" target="_blank">Ruslan Yakushev&#8217;s post on IIS.net</a></p>


<p>Related posts:<ul><li><a href='http://www.shawson.co.uk/codeblog/creating-a-re-usable-shopping-basket-with-generics-in-c-sharp/' rel='bookmark' title='Permanent Link: Creating a re-usable shopping basket with Generics in C#'>Creating a re-usable shopping basket with Generics in C#</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/syndicating-to-rss-using-the-build-in-net-syndicationfeed-classes/' rel='bookmark' title='Permanent Link: Syndicating to RSS using the built in .net SyndicationFeed classes'>Syndicating to RSS using the built in .net SyndicationFeed classes</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/pages-jump-to-the-top-on-post-back-in-aspnet/' rel='bookmark' title='Permanent Link: Pages jump to the top on post back in asp.net'>Pages jump to the top on post back in asp.net</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://www.shawson.co.uk/codeblog/asp-net-aspx-pages-posting-back-to-the-wrong-url-when-using-server-rewrite/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP.net membership log times incorrect in the database</title>
		<link>http://www.shawson.co.uk/codeblog/asp-net-membership-log-times-incorrect-in-the-database/</link>
		<comments>http://www.shawson.co.uk/codeblog/asp-net-membership-log-times-incorrect-in-the-database/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 09:42:08 +0000</pubDate>
		<dc:creator>shawson</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[membership]]></category>

		<guid isPermaLink="false">http://www.shawson.co.uk/codeblog/?p=493</guid>
		<description><![CDATA[A colleague of mine is developing an access controlled solution which prevents users logging in with the same credentials from mutliple locations, using ASP.net membership.  For this he checks session expiry times against the last activity date in the database to see if the user has left the site allowing the session to expire- but [...]


Related posts:<ul><li><a href='http://www.shawson.co.uk/codeblog/setting-up-session-state-database-on-sql-server/' rel='bookmark' title='Permanent Link: Setting up session state database on sql server'>Setting up session state database on sql server</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/sessionid-re-generated-on-each-page-hit/' rel='bookmark' title='Permanent Link: SessionId re-generated on each page hit'>SessionId re-generated on each page hit</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/collation-issues-setting-up-aspnet-membership-tables/' rel='bookmark' title='Permanent Link: Collation issues setting up ASP.Net membership tables'>Collation issues setting up ASP.Net membership tables</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>A colleague of mine is developing an access controlled solution which prevents users logging in with the same credentials from mutliple locations, using ASP.net membership.  For this he checks session expiry times against the last activity date in the database to see if the user has left the site allowing the session to expire- but he noticed today the code had stopped working.</p>
<p>The clocks went forward an hour in the UK on Sunday just gone as we go into British Summer Time (BST) instead of GMT which turned out to be the problem.  ASP.net membership logs all times in the database using UTC time, matches GMT- the moment we moved into BST we came an hour out of sync!  So he had to convert the code to change our local GMT time to UTC before running any comparisons.  Sql server actually has a function to return the current UTC date/time;</p>
<p>GETUTCDATE()</p>


<p>Related posts:<ul><li><a href='http://www.shawson.co.uk/codeblog/setting-up-session-state-database-on-sql-server/' rel='bookmark' title='Permanent Link: Setting up session state database on sql server'>Setting up session state database on sql server</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/sessionid-re-generated-on-each-page-hit/' rel='bookmark' title='Permanent Link: SessionId re-generated on each page hit'>SessionId re-generated on each page hit</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/collation-issues-setting-up-aspnet-membership-tables/' rel='bookmark' title='Permanent Link: Collation issues setting up ASP.Net membership tables'>Collation issues setting up ASP.Net membership tables</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://www.shawson.co.uk/codeblog/asp-net-membership-log-times-incorrect-in-the-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Missing / Corrupt *.aspx(/ascx).Designer.cs file</title>
		<link>http://www.shawson.co.uk/codeblog/missing-corrupt-aspxascx-designer-cs-file/</link>
		<comments>http://www.shawson.co.uk/codeblog/missing-corrupt-aspxascx-designer-cs-file/#comments</comments>
		<pubDate>Fri, 19 Mar 2010 15:19:32 +0000</pubDate>
		<dc:creator>shawson</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[annoyances]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://www.shawson.co.uk/codeblog/?p=489</guid>
		<description><![CDATA[I had a weird error today about not being able to &#8220;connect to the designer.cs&#8221; file for one of my pages.  I easily fixed this by just deleting the offending designer file and re-generating it.  Apparently it should auto regenerate just by opening the page in the design view and changing something- but this didn&#8217;t [...]


Related posts:<ul><li><a href='http://www.shawson.co.uk/codeblog/asp-net-aspx-pages-posting-back-to-the-wrong-url-when-using-server-rewrite/' rel='bookmark' title='Permanent Link: ASP.net aspx pages posting back to the wrong URL when using Server Rewrite'>ASP.net aspx pages posting back to the wrong URL when using Server Rewrite</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/my-shiny-new-blog/' rel='bookmark' title='Permanent Link: My shiny new blog'>My shiny new blog</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/pages-jump-to-the-top-on-post-back-in-aspnet/' rel='bookmark' title='Permanent Link: Pages jump to the top on post back in asp.net'>Pages jump to the top on post back in asp.net</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>I had a weird error today about not being able to &#8220;connect to the designer.cs&#8221; file for one of my pages.  I easily fixed this by just deleting the offending designer file and re-generating it.  Apparently it should auto regenerate just by opening the page in the design view and changing something- but this didn&#8217;t seem to work.  I had to right click the aspx file and click &#8220;Convert to Web Application&#8221; which instantly dropped a new designer.cs file back in there.</p>
<p>Incidentally this is my 100th blog post on here! <img src='http://www.shawson.co.uk/codeblog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>


<p>Related posts:<ul><li><a href='http://www.shawson.co.uk/codeblog/asp-net-aspx-pages-posting-back-to-the-wrong-url-when-using-server-rewrite/' rel='bookmark' title='Permanent Link: ASP.net aspx pages posting back to the wrong URL when using Server Rewrite'>ASP.net aspx pages posting back to the wrong URL when using Server Rewrite</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/my-shiny-new-blog/' rel='bookmark' title='Permanent Link: My shiny new blog'>My shiny new blog</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/pages-jump-to-the-top-on-post-back-in-aspnet/' rel='bookmark' title='Permanent Link: Pages jump to the top on post back in asp.net'>Pages jump to the top on post back in asp.net</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://www.shawson.co.uk/codeblog/missing-corrupt-aspxascx-designer-cs-file/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WCF 404.3 Errors</title>
		<link>http://www.shawson.co.uk/codeblog/wcf-404-3-errors/</link>
		<comments>http://www.shawson.co.uk/codeblog/wcf-404-3-errors/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 08:15:23 +0000</pubDate>
		<dc:creator>shawson</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[WCF]]></category>

		<guid isPermaLink="false">http://www.shawson.co.uk/codeblog/?p=481</guid>
		<description><![CDATA[I built a WCF service recently which would run fine in the visual studio test web server, but when i tried to actually hit it from real life IIS7 also on my local box, i receievd the following error:
HTTP Error 404.3 &#8211; Not Found
The page you are requesting cannot be served because of the extension [...]


Related posts:<ul><li><a href='http://www.shawson.co.uk/codeblog/missing-corrupt-aspxascx-designer-cs-file/' rel='bookmark' title='Permanent Link: Missing / Corrupt *.aspx(/ascx).Designer.cs file'>Missing / Corrupt *.aspx(/ascx).Designer.cs file</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/my-shiny-new-blog/' rel='bookmark' title='Permanent Link: My shiny new blog'>My shiny new blog</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/css-sprites-and-a-flickering-problem-in-ie6/' rel='bookmark' title='Permanent Link: CSS Sprites and a flickering problem in IE6'>CSS Sprites and a flickering problem in IE6</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>I built a WCF service recently which would run fine in the visual studio test web server, but when i tried to actually hit it from real life IIS7 also on my local box, i receievd the following error:</p>
<h2>HTTP Error 404.3 &#8211; Not Found</h2>
<h3>The page you are requesting cannot be served because of the extension  configuration. If the page is a script, add a handler. If the file should be  downloaded, add a MIME map.</h3>
<p>Luckily, i found the solution on <a href="http://blogs.msdn.com/davidwaddleton/archive/2007/11/02/wcf-and-404-3-errors.aspx">David Waddleton&#8217;s blog</a> and it was as simple as turning on a windows feature in add remove programs- on my vista box i had to go to Control Panel &gt; Programs and features &gt; Turn on/ off Windows features &gt; Microsoft.NET framework 3.0 and tick the WCF activitation options!</p>


<p>Related posts:<ul><li><a href='http://www.shawson.co.uk/codeblog/missing-corrupt-aspxascx-designer-cs-file/' rel='bookmark' title='Permanent Link: Missing / Corrupt *.aspx(/ascx).Designer.cs file'>Missing / Corrupt *.aspx(/ascx).Designer.cs file</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/my-shiny-new-blog/' rel='bookmark' title='Permanent Link: My shiny new blog'>My shiny new blog</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/css-sprites-and-a-flickering-problem-in-ie6/' rel='bookmark' title='Permanent Link: CSS Sprites and a flickering problem in IE6'>CSS Sprites and a flickering problem in IE6</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://www.shawson.co.uk/codeblog/wcf-404-3-errors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to run SQL Profiler against local SQL Express instances</title>
		<link>http://www.shawson.co.uk/codeblog/how-to-run-sql-profiler-against-local-sql-express-instances/</link>
		<comments>http://www.shawson.co.uk/codeblog/how-to-run-sql-profiler-against-local-sql-express-instances/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 09:30:50 +0000</pubDate>
		<dc:creator>shawson</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[entity framework]]></category>
		<category><![CDATA[Linq]]></category>
		<category><![CDATA[sql profiler]]></category>

		<guid isPermaLink="false">http://www.shawson.co.uk/codeblog/?p=421</guid>
		<description><![CDATA[I&#8217;m building a project using entity framework and wanted to ensure it wasn&#8217;t going mental and spamming the database with more queries than it should- this requires SQL Profiler, but i didn&#8217;t know how to connect it to my local instance of sql (I had just added an MDB file to the app&#8217;s app_data folder, [...]


Related posts:<ul><li><a href='http://www.shawson.co.uk/codeblog/setting-up-session-state-database-on-sql-server/' rel='bookmark' title='Permanent Link: Setting up session state database on sql server'>Setting up session state database on sql server</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/full-text-reindex-scheduled-job-has-no-steps/' rel='bookmark' title='Permanent Link: Full Text Reindex, scheduled job has no steps!'>Full Text Reindex, scheduled job has no steps!</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/asp-net-membership-log-times-incorrect-in-the-database/' rel='bookmark' title='Permanent Link: ASP.net membership log times incorrect in the database'>ASP.net membership log times incorrect in the database</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m building a project using entity framework and wanted to ensure it wasn&#8217;t going mental and spamming the database with more queries than it should- this requires SQL Profiler, but i didn&#8217;t know how to connect it to my local instance of sql (I had just added an MDB file to the app&#8217;s app_data folder, so it was running via local sql express)</p>
<p>Turns out it&#8217;s easy- you just connect to .\SQLEXPRESS database and then execute this query against the master database;</p>
<pre class="brush: sql">
SELECT
owning_principal_name,
instance_pipe_name
FROM
sys.dm_os_child_instances
</pre>
<p>From the results you will be able fish out the &#8220;named pipe&#8221; that you can just put into the server name box when connecting with profiler.</p>
<div id="attachment_426" class="wp-caption alignnone" style="width: 310px"><img class="size-medium wp-image-426 " title="Sql Profiler connection dialogue" src="http://www.shawson.co.uk/codeblog/wp-content/uploads/2009/12/profiler-300x223.jpg" alt="Sql Profiler connection dialogue" width="300" height="223" /><p class="wp-caption-text">Sql Profiler connection dialogue</p></div>
<p>via <a href="http://bradwilson.typepad.com/blog/2008/12/profiling-sql-server-express-user-instances.html">Brad Wilson: Profiling SQL Server Express User Instances</a>.</p>


<p>Related posts:<ul><li><a href='http://www.shawson.co.uk/codeblog/setting-up-session-state-database-on-sql-server/' rel='bookmark' title='Permanent Link: Setting up session state database on sql server'>Setting up session state database on sql server</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/full-text-reindex-scheduled-job-has-no-steps/' rel='bookmark' title='Permanent Link: Full Text Reindex, scheduled job has no steps!'>Full Text Reindex, scheduled job has no steps!</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/asp-net-membership-log-times-incorrect-in-the-database/' rel='bookmark' title='Permanent Link: ASP.net membership log times incorrect in the database'>ASP.net membership log times incorrect in the database</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://www.shawson.co.uk/codeblog/how-to-run-sql-profiler-against-local-sql-express-instances/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Properties getting &#8220;k__BackingField&#8221; appended to their name in the WSDL file</title>
		<link>http://www.shawson.co.uk/codeblog/properties-getting-k__backingfield-appended-to-their-name-in-the-wsdl-file/</link>
		<comments>http://www.shawson.co.uk/codeblog/properties-getting-k__backingfield-appended-to-their-name-in-the-wsdl-file/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 16:58:08 +0000</pubDate>
		<dc:creator>shawson</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[C#.net]]></category>
		<category><![CDATA[WCF]]></category>
		<category><![CDATA[Web Services]]></category>

		<guid isPermaLink="false">http://www.shawson.co.uk/codeblog/?p=419</guid>
		<description><![CDATA[I was finding k__backingField was being appended to all my object properties when exposed via my a WCF service, in the WSDL.  The solution it turns out was simple- just had to make my class a [DataContract] and mark the properties as [DataMember].
via WCF Data Contracts and “k__BackingField” Property Naming &#8211; Nathan Bridgewater.


Related posts:Getting started [...]


Related posts:<ul><li><a href='http://www.shawson.co.uk/codeblog/getting-started-with-wcf-and-rest-web-services/' rel='bookmark' title='Permanent Link: Getting started with WCF and REST web services'>Getting started with WCF and REST web services</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/web-services-debugging-with-fiddler-2/' rel='bookmark' title='Permanent Link: Web Services Debugging with Fiddler 2'>Web Services Debugging with Fiddler 2</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/where-did-my-immidiate-window-go/' rel='bookmark' title='Permanent Link: Where did my Immidiate window go!?'>Where did my Immidiate window go!?</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>I was finding k__backingField was being appended to all my object properties when exposed via my a WCF service, in the WSDL.  The solution it turns out was simple- just had to make my class a [DataContract] and mark the properties as [DataMember].</p>
<p>via <a href="http://www.integratedwebsystems.com/2009/05/wcf-data-contracts-and-k__backingfield-property-naming/">WCF Data Contracts and “k__BackingField” Property Naming &#8211; Nathan Bridgewater</a>.</p>


<p>Related posts:<ul><li><a href='http://www.shawson.co.uk/codeblog/getting-started-with-wcf-and-rest-web-services/' rel='bookmark' title='Permanent Link: Getting started with WCF and REST web services'>Getting started with WCF and REST web services</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/web-services-debugging-with-fiddler-2/' rel='bookmark' title='Permanent Link: Web Services Debugging with Fiddler 2'>Web Services Debugging with Fiddler 2</a></li>
<li><a href='http://www.shawson.co.uk/codeblog/where-did-my-immidiate-window-go/' rel='bookmark' title='Permanent Link: Where did my Immidiate window go!?'>Where did my Immidiate window go!?</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://www.shawson.co.uk/codeblog/properties-getting-k__backingfield-appended-to-their-name-in-the-wsdl-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
