<?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/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-324579552179964605</id><updated>2011-07-08T06:46:21.112+01:00</updated><category term='conditional content'/><category term='css'/><category term='Versions'/><category term='BindingRedirect'/><category term='Log4net'/><category term='Upgrading server'/><category term='internet explorer'/><category term='GAC'/><category term='error 500'/><category term='network unreachable'/><category term='Nhibernate'/><category term='ie7'/><category term='DLL'/><category term='.net'/><category term='IIS6'/><category term='IIS7'/><category term='csv'/><category term='browser language'/><category term='ie'/><category term='google'/><category term='ie8'/><title type='text'>Error 500</title><subtitle type='html'>The workarounds and solutions used to overcome a variety of coding, development and seo problems.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://500servererror.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/324579552179964605/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://500servererror.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Diz Cawthorn</name><uri>http://www.blogger.com/profile/01098131003430644310</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-324579552179964605.post-1975958232424785129</id><published>2010-02-17T15:18:00.002Z</published><updated>2010-02-17T15:19:45.694Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='csv'/><category scheme='http://www.blogger.com/atom/ns#' term='.net'/><category scheme='http://www.blogger.com/atom/ns#' term='DLL'/><title type='text'>Csv parsers are a 'mare...</title><content type='html'>..so don't write your own, and dont adapt a half written one from somewhere and get stuck in a nightmare of parsing strings, using regex and still end up with problems. Just use FileHelpers - seriously, this is a brilliant piece of magic, and deserves much praise! The FileHelpers are a free and easy to use  .NET library to import/export  data from fixed length or delimited records in files, strings or streams. &lt;a href="http://www.filehelpers.com"&gt;Filehelpers site&lt;/a&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/324579552179964605-1975958232424785129?l=500servererror.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://500servererror.blogspot.com/feeds/1975958232424785129/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=324579552179964605&amp;postID=1975958232424785129' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/324579552179964605/posts/default/1975958232424785129'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/324579552179964605/posts/default/1975958232424785129'/><link rel='alternate' type='text/html' href='http://500servererror.blogspot.com/2010/02/csv-parsers-are.html' title='Csv parsers are a &amp;#39;mare...'/><author><name>Diz Cawthorn</name><uri>http://www.blogger.com/profile/01098131003430644310</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-324579552179964605.post-1287905790669919183</id><published>2009-10-06T07:00:00.007+01:00</published><updated>2009-10-06T07:21:10.661+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='internet explorer'/><category scheme='http://www.blogger.com/atom/ns#' term='ie8'/><category scheme='http://www.blogger.com/atom/ns#' term='ie7'/><category scheme='http://www.blogger.com/atom/ns#' term='css'/><title type='text'>Force IE8 to behave more like IE7</title><content type='html'>Internet explorer 8 rewrote some behaviours in its new browser, meaning your page which you spent hours getting to behave correctly in the different versions of Firefox, the new player Chrome, Safari for the Mac users, Intenet Explorer 7 for the windows home users, Internet explorer 6 for the corporate machines who still haven't upgraded and the home users who for whatever reason run old windows versions, now breaks in new and unexpected ways.&lt;br /&gt;Thankfully IE8 recognises a new HTTP HEader X-UA-Compatible, which tells it which browsers the web page has been tested against. You can specify the header as a meta tag within the page itself:&lt;br /&gt;&amp;lt;meta http-equiv="X-UA-Compatible" content="IE=7" /&amp;gt;&lt;br /&gt;So you can opt in to standards behavior on your own schedule and as it makes sense to you, instead of being forced into a responsive mode when a new version of IE has different behavior on your current pages.&lt;br /&gt;More info &lt;a href="http://www.alistapart.com/articles/beyonddoctype"&gt;here at alistapart&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/324579552179964605-1287905790669919183?l=500servererror.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://500servererror.blogspot.com/feeds/1287905790669919183/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=324579552179964605&amp;postID=1287905790669919183' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/324579552179964605/posts/default/1287905790669919183'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/324579552179964605/posts/default/1287905790669919183'/><link rel='alternate' type='text/html' href='http://500servererror.blogspot.com/2009/10/force-ie8-to-behave-more-like-ie7.html' title='Force IE8 to behave more like IE7'/><author><name>Diz Cawthorn</name><uri>http://www.blogger.com/profile/01098131003430644310</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-324579552179964605.post-3623626598773214967</id><published>2009-07-25T10:28:00.005+01:00</published><updated>2009-07-25T11:56:04.591+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Upgrading server'/><category scheme='http://www.blogger.com/atom/ns#' term='IIS6'/><category scheme='http://www.blogger.com/atom/ns#' term='IIS7'/><category scheme='http://www.blogger.com/atom/ns#' term='Versions'/><title type='text'>IIS7 Breakages</title><content type='html'>When switching from IIS 6 on a to IIS 7  you may run into one or more of the following problems.&lt;br /&gt;&lt;br /&gt;1.  Using a + (plus) in URLs may not work anymore. For DotNetNuke sites, this will certainly affect you.&lt;br /&gt;  Steps to fix:    Back up applicationhost.config to documents folder&lt;br /&gt;     Open C:\windows\System32\inetsrv\config\applicationHost.config as admin&lt;br /&gt;     Find line &amp;lt;requestfiltering&amp;gt;&lt;br /&gt;     Change to &amp;lt;requestfiltering allowdoubleescaping="true"&amp;gt;&lt;br /&gt; Reference: http://support.microsoft.com/kb/942076&lt;br /&gt;&lt;br /&gt;2.  File not found errors, or odd errors on your site where a previously working piece of code no longer works. Managed pipeline mode may be incorrect. You can change this under the basic settings of the application pool.&lt;br /&gt;  Steps to fix:    Locate the application pool for the website - under IIS7 it should have its own app pool.&lt;br /&gt; Change "Managed Pipeline Mode" from "Integrated" to "Classic". (Integrated is the default mode)&lt;/requestfiltering&gt;&lt;/requestfiltering&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/324579552179964605-3623626598773214967?l=500servererror.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://500servererror.blogspot.com/feeds/3623626598773214967/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=324579552179964605&amp;postID=3623626598773214967' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/324579552179964605/posts/default/3623626598773214967'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/324579552179964605/posts/default/3623626598773214967'/><link rel='alternate' type='text/html' href='http://500servererror.blogspot.com/2009/07/iis7-breakages.html' title='IIS7 Breakages'/><author><name>Diz Cawthorn</name><uri>http://www.blogger.com/profile/01098131003430644310</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-324579552179964605.post-6295500119698049424</id><published>2009-07-14T17:07:00.008+01:00</published><updated>2009-07-19T09:47:26.448+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Nhibernate'/><category scheme='http://www.blogger.com/atom/ns#' term='BindingRedirect'/><category scheme='http://www.blogger.com/atom/ns#' term='DLL'/><category scheme='http://www.blogger.com/atom/ns#' term='Log4net'/><category scheme='http://www.blogger.com/atom/ns#' term='Versions'/><category scheme='http://www.blogger.com/atom/ns#' term='GAC'/><title type='text'>Use two versions of a DLL in one project</title><content type='html'>I recently needed to include two versions of log4net in one project, both versions were called in by external components, Gentle.net and Nhiberbernate.&lt;br /&gt;To do this you need to add both versions to the GAC.&lt;br /&gt;&lt;br /&gt;The gacutil.exe that ships with .NET can be used to add or remove a shared assembly from the GAC.&lt;br /&gt;&lt;br /&gt;To add a shared assembly, from the command line enter: gacutil.exe /i myassembly.dll&lt;br /&gt;To remove a shared assembly, from the command line enter: gacutil.exe /u myassembly.dll&lt;br /&gt;&lt;br /&gt;Then use a BindingRedirect in the web.config (or app.config)&lt;br /&gt;&lt;br /&gt;&amp;lt;runtime&amp;gt;&lt;br /&gt;&amp;lt;assemblybinding xmlns="urn:schemas-microsoft-com:asm.v1"&amp;gt;&lt;br /&gt;&amp;lt;dependentassembly&amp;gt;&lt;br /&gt;&amp;lt;assemblyidentity name="log4net" publickeytoken="b32731d11ce58905"&amp;gt;&lt;br /&gt;culture="neutral" /&amp;gt;&lt;br /&gt;&amp;lt;bindingredirect oldversion="1.2.0.30714" newversion="1.2.9.0"&amp;gt;&lt;br /&gt;&amp;lt;/bindingredirect&amp;gt;&lt;br /&gt;&amp;lt;/assemblyidentity&amp;gt;&lt;br /&gt;&amp;lt;/dependentassembly&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The order of sections in the&lt;br /&gt;web.config is important. If you put your configuration (including&lt;br /&gt;log4net configuration) before the configuration for the component pulling in the newer version, then the logging will work.&lt;br /&gt;&lt;br /&gt;Assemblies currently in the GAC are located in the &lt;i&gt;Assembly&lt;/i&gt; folder in the &lt;i&gt;Windows&lt;/i&gt;                                 directory (usually: C:\WinNT\Assembly)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/324579552179964605-6295500119698049424?l=500servererror.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://500servererror.blogspot.com/feeds/6295500119698049424/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=324579552179964605&amp;postID=6295500119698049424' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/324579552179964605/posts/default/6295500119698049424'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/324579552179964605/posts/default/6295500119698049424'/><link rel='alternate' type='text/html' href='http://500servererror.blogspot.com/2009/07/use-two-versions-of-dll-in-one-project.html' title='Use two versions of a DLL in one project'/><author><name>Diz Cawthorn</name><uri>http://www.blogger.com/profile/01098131003430644310</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-324579552179964605.post-6893892635724507236</id><published>2009-07-08T11:36:00.007+01:00</published><updated>2009-07-08T11:53:39.592+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='internet explorer'/><category scheme='http://www.blogger.com/atom/ns#' term='ie'/><category scheme='http://www.blogger.com/atom/ns#' term='conditional content'/><category scheme='http://www.blogger.com/atom/ns#' term='css'/><title type='text'>Show content to IE only.</title><content type='html'>I had never realised the conditional comments often used to load CSS rules for Internet Explorer, and hide from other browsers, not only work with CSS, but any content on the page.&lt;br /&gt;e.g:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&amp;lt;!--[if IE]&amp;gt;&lt;br /&gt;&amp;lt;iframe src="iframeforIEonly.htm"&amp;gt;&amp;lt;/iframe&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt;Paragraph for IE users only&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;![endif]--&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;More information on &lt;a href="http://www.quirksmode.org/css/condcom.html"&gt;conditional comments for CSS&lt;/a&gt; from quirksmode.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/324579552179964605-6893892635724507236?l=500servererror.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://500servererror.blogspot.com/feeds/6893892635724507236/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=324579552179964605&amp;postID=6893892635724507236' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/324579552179964605/posts/default/6893892635724507236'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/324579552179964605/posts/default/6893892635724507236'/><link rel='alternate' type='text/html' href='http://500servererror.blogspot.com/2009/07/show-content-to-ie-only.html' title='Show content to IE only.'/><author><name>Diz Cawthorn</name><uri>http://www.blogger.com/profile/01098131003430644310</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-324579552179964605.post-7846128309922549174</id><published>2009-07-07T17:06:00.007+01:00</published><updated>2009-07-07T18:03:43.100+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='error 500'/><category scheme='http://www.blogger.com/atom/ns#' term='browser language'/><category scheme='http://www.blogger.com/atom/ns#' term='network unreachable'/><category scheme='http://www.blogger.com/atom/ns#' term='google'/><title type='text'>Google specific error 500</title><content type='html'>A new unexplained challenge.  Google Webmaster tools showed all pages of a site under my care with a "Network Unreachable" error.   The site had recently undergone a transition from a single languge site to a multilingual site. Viewing the site in various browsers across varying platforms did not appear to cause any error, perhaps when google had crawled it, there had been a server problem, and it was unreachable only at that time.&lt;br /&gt;Under careful watch, the problem persisted, and it turns out it came from a piece of code which attempted to detect a users language settings from the browser when the user first visited the website. The file had a reference to Browser Languages - and unfortunately, had assumed that a language, any language,  reference would be returned (even if that language was not a language handled by the site) - and began its checks as to whether it should default to a predefined language or attempt to serve the site in the requested language from that point.&lt;br /&gt;I would never have found this error without the &lt;a href="http://www.urivalet.com/"&gt;URI Valet&lt;/a&gt; - a most useful tool, for checking your site server headers and allowing you to render the site as it would appear to google, or to a number of other bots and browsers. URI Valet is an invaluable tool for all internet marketers, site owners and developers - designed it so it is easy to understand and allows you to quickly determine if certain potential technical issues exist that could, or are, causing problems with your URL or domain name.&lt;a href="http://www.urivalet.com/"&gt;&lt;br /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/324579552179964605-7846128309922549174?l=500servererror.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://500servererror.blogspot.com/feeds/7846128309922549174/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=324579552179964605&amp;postID=7846128309922549174' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/324579552179964605/posts/default/7846128309922549174'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/324579552179964605/posts/default/7846128309922549174'/><link rel='alternate' type='text/html' href='http://500servererror.blogspot.com/2009/07/google-specific-error-500.html' title='Google specific error 500'/><author><name>Diz Cawthorn</name><uri>http://www.blogger.com/profile/01098131003430644310</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
