<?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>Rock, Paper, Software &#187; Problem solving</title>
	<atom:link href="http://software.tulentsev.com/category/problem-solving/feed/" rel="self" type="application/rss+xml" />
	<link>http://software.tulentsev.com</link>
	<description>Random thoughts about programming</description>
	<lastBuildDate>Fri, 03 Feb 2012 13:47:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Silverlight 2: trouble with POST requests</title>
		<link>http://software.tulentsev.com/2008/11/silverlight-2-trouble-with-post-requests/</link>
		<comments>http://software.tulentsev.com/2008/11/silverlight-2-trouble-with-post-requests/#comments</comments>
		<pubDate>Mon, 24 Nov 2008 03:04:30 +0000</pubDate>
		<dc:creator>Sergei Tulentsev</dc:creator>
				<category><![CDATA[Problem solving]]></category>
		<category><![CDATA[Silverlight 2]]></category>
		<category><![CDATA[Silverlight]]></category>

		<guid isPermaLink="false">http://software.tulentsev.com/2008/11/silverlight-2-trouble-with-post-requests/</guid>
		<description><![CDATA[I am trying to make a small Silverlight control that talks to PHP server. Sometimes problems arise and I have to deal with them myself, since there&#8217;s not much information on this topic in the internet. Trouble of the day is: The remote server returned an error: NotFound when trying to make simple POST request [...]]]></description>
			<content:encoded><![CDATA[<p>I am trying to make a small Silverlight control that talks to PHP server. Sometimes problems arise and I have to deal with them myself, since there&#8217;s not much information on this topic in the internet. Trouble of the day is:</p>
<p><strong><font color="#0000ff">The remote server returned an error: NotFound</font></strong></p>
<p>when trying to make simple POST request to a PHP page. I&#8217;ve spent half a day diagnosing this problem. And solution was found entirely by chance, because exception messages weren&#8217;t helping in any way. I mean, I was always getting abovementioned error message, without any details (what host, what page, request parameters, etc). But enough of complaints, let&#8217;s proceed to the solution. The troublesome code was this one:</p>
<pre class="brush: csharp">var _request = (HttpWebRequest)WebRequest.Create(_svcUri);
_request.Method = &quot;POST&quot;;
_request.ContentType = &quot;application/json&quot;;
_request.Headers[&quot;sid&quot;] = SessionID ; // &lt;==== this line</pre>
<p>SessionID was <font color="#0000ff">null</font> at the moment and this made HttpWebRequest so pissed off that it even wouldn&#8217;t send request header to the server ! And because of this, Fiddler was completely useless here. After adding necessary check, everything started working like a charm.</p>
]]></content:encoded>
			<wfw:commentRss>http://software.tulentsev.com/2008/11/silverlight-2-trouble-with-post-requests/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Windows Live Writer + WordPress problems</title>
		<link>http://software.tulentsev.com/2008/10/windows-live-writer-wordpress-problems/</link>
		<comments>http://software.tulentsev.com/2008/10/windows-live-writer-wordpress-problems/#comments</comments>
		<pubDate>Fri, 31 Oct 2008 02:37:23 +0000</pubDate>
		<dc:creator>Sergei Tulentsev</dc:creator>
				<category><![CDATA[Problem solving]]></category>
		<category><![CDATA[Windows Live Writer]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://software.tulentsev.com/?p=7</guid>
		<description><![CDATA[I installed this copy of WordPress this evening and decided to add to Live Writer. But I&#8217;ve ran into problem almost immediately. While trying to auto-detect my editing style, blog name and who knows what else, Live Writer kept annoying me with this message: &#34;Invalid Server Response &#8211; The response to the blogger.getUsersBlogs method received [...]]]></description>
			<content:encoded><![CDATA[<p>I installed this copy of WordPress this evening and decided to add to Live Writer. But I&#8217;ve ran into problem almost immediately. While trying to auto-detect my editing style, blog name and who knows what else, Live Writer kept annoying me with this message: &quot;<strong>Invalid Server Response &#8211; The response to the blogger.getUsersBlogs method received from the weblog server was invalid</strong>&quot;.</p>
<p>I hit Ctrl-Ctrl (very handy shortcut of Google Desktop, that summons search bar) and pasted the error text there. First, I came across <a href="http://kannan.jumbledthoughts.com/index.php/windows-live-writer-problems-with-wordpress-how-to-fix/" target="_blank">this article</a>. I followed every step in it (some of them twice :-) ), but it didn&#8217;t help. So I kept searching.</p>
<p>Then I found <a href="http://wlwplugins.com/how-to-fix-invalid-bloggergetusersblogs-method-response.php" target="_blank">this interesting site</a>. Performing this step didn&#8217;t help me either. I have installed <a href="http://www.fiddlertool.com/fiddler/" target="_blank">Fiddler</a> and it finally shed some light on the problem. There was an error while requesting xmlrpc.php (which is used by external systems, such as WLW, to talk to WordPress).</p>
<blockquote><p><strong>Warning</strong>: include_once(/home/tulentse/public_html/blog_technical/wp-includes/class-IXR.php) [function.include-once]: failed to open stream: No such file or directory in <strong>/home/tulentse/public_html/blog_technical/xmlrpc.php</strong> on line <strong>55</strong>      <br /><strong>Warning</strong>: include_once() [function.include]: Failed opening &#8216;/home/tulentse/public_html/blog_technical/wp-includes/class-IXR.php&#8217; for inclusion (include_path=&#8217;.:/usr/lib/php:/usr/local/lib/php&#8217;) in <strong>/home/tulentse/public_html/blog_technical/xmlrpc.php</strong> on line <strong>55</strong>      <br /><strong>Fatal error</strong>: Class &#8216;IXR_Server&#8217; not found in <strong>/home/tulentse/public_html/blog_technical/xmlrpc.php</strong> on line <strong>108</strong></p>
</blockquote>
<p>I navigated to that file and saw that the name is in lower case (and case matters on Unix-based systems). It was joint effort of me, who checked &quot;Convert filenames to lower case&quot; option and Total Commander who did what I told him.</p>
<p>Now everyone&#8217;s happy :-)</p>
]]></content:encoded>
			<wfw:commentRss>http://software.tulentsev.com/2008/10/windows-live-writer-wordpress-problems/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

