<?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>Ilya Gorodnyanskiy - IT-Blog &#187; Microsoft .net</title>
	<atom:link href="http://i-gorod.org/itblog/category/dotnetdevelopment/feed/" rel="self" type="application/rss+xml" />
	<link>http://i-gorod.org/itblog</link>
	<description>Personal web site of Ilya Gorodnyanskiy</description>
	<lastBuildDate>Fri, 20 Apr 2012 15:27:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.2</generator>
		<item>
		<title>Visual Studio 2005. Cannot Create Visual C++ Smart Device Project.</title>
		<link>http://i-gorod.org/itblog/2008/06/24/visual-studio-2005-cannot-create-visual-c-smart-device-project/</link>
		<comments>http://i-gorod.org/itblog/2008/06/24/visual-studio-2005-cannot-create-visual-c-smart-device-project/#comments</comments>
		<pubDate>Tue, 24 Jun 2008 13:43:38 +0000</pubDate>
		<dc:creator>Ilya G.</dc:creator>
				<category><![CDATA[Microsoft .net]]></category>

		<guid isPermaLink="false">http://i-gorod.org/itblog/2008/06/24/visual-studio-2005-cannot-create-visual-c-smart-device-project/</guid>
		<description><![CDATA[If you experices difficulties with creating a new Visual C++ Smart Device project in your Visual Studio 2005 (symptoms: submitting required inputs like project name, path, etc. in &#8220;New Project&#8221; dialog, &#8220;New Project&#8221; displays again without creating anything), that&#8217;s the way how to fix it quickly: Close VS Start RegEdit.exe Find the following registry entry: [...]]]></description>
			<content:encoded><![CDATA[<p>If you experices difficulties with creating a new Visual C++ Smart Device project in your Visual Studio 2005 (symptoms: submitting required inputs like project name, path, etc. in &#8220;New Project&#8221; dialog,  &#8220;New Project&#8221; displays again without creating anything), that&#8217;s the way how to fix it quickly: <span id="more-62"></span></p>
<ol>
<li>
<address>Close VS </address>
</li>
<li>
<address>Start RegEdit.exe </address>
</li>
<li>
<address>Find the following registry entry:<br />
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows<br />
\CurrentVersion\Ext\PreApproved </address>
</li>
<li>
<address>Add a new entry and name it<br />
{D245F352-3F45-4516-B1E6-04608DA126CC}  </address>
</li>
<li>
<address>Close RegEdit </address>
</li>
<li>
<address>Start VS </address>
</li>
<li>
<address>Try and create a Smart Device C++ project</address>
</li>
</ol>
<p>This is a known Visual Studio bug, which is caused by IE7 at your system. The other possibilities for fixing it are to install Visual Studion SP1 or to remove IE7 from your computer.</p>
]]></content:encoded>
			<wfw:commentRss>http://i-gorod.org/itblog/2008/06/24/visual-studio-2005-cannot-create-visual-c-smart-device-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visual Studio 2005. Error &#8220;An existing connection was forcibly closed by the remote host &#8221; and &#8220;An operation was attempted on something that is not a socket&#8221;.</title>
		<link>http://i-gorod.org/itblog/2008/06/10/visual-studio-2005-error-an-existing-connection-was-forcibly-closed-by-the-remote-host-and-an-operation-was-attempted-on-something-that-is-not-a-socket/</link>
		<comments>http://i-gorod.org/itblog/2008/06/10/visual-studio-2005-error-an-existing-connection-was-forcibly-closed-by-the-remote-host-and-an-operation-was-attempted-on-something-that-is-not-a-socket/#comments</comments>
		<pubDate>Tue, 10 Jun 2008 10:52:26 +0000</pubDate>
		<dc:creator>Ilya G.</dc:creator>
				<category><![CDATA[Microsoft .net]]></category>

		<guid isPermaLink="false">http://i-gorod.org/itblog/2008/06/10/visual-studio-2005-error-an-existing-connection-was-forcibly-closed-by-the-remote-host-and-an-operation-was-attempted-on-something-that-is-not-a-socket/</guid>
		<description><![CDATA[Developing an application for  Smart Device, I faced a curious problem. Suddenly I could not deploy my project to my PDA. The concole of Visual Studio showed the only message: An existing connection was forcibly closed by the remote host, in my localized German version it was Eine vorhandene Verbindung wurde vom Remotehost geschlossen. Knowing Visual [...]]]></description>
			<content:encoded><![CDATA[<p>Developing an application for  Smart Device, I faced a curious problem. Suddenly I could not deploy my project to my PDA. The concole of Visual Studio showed the only message: <strong></strong><em>An existing connection was forcibly closed by the remote host</em>, in my localized German version it was <em>Eine vorhandene Verbindung wurde vom Remotehost geschlossen</em>. <span id="more-59"></span>Knowing Visual Studio quite well, I thought it was mistaking and I repeated the deployment process. Now the error message was <em>An operation was attempted on something that is not a socket</em> (German:<em> Ein Vorgang bezog sich auf ein Objekt, das kein Socket ist</em>). Ok, the nightmare began. I cleaned the project, compiled and recompiled it hundred times, changed PDAs, checked windows GAC, patched the regestry etc. Nothing helped&#8230;</p>
<p>The cause was really strange. In my project there are some files that are attached to my project as Content . They have the property value <em>copy if newer.  </em>Having changed this property to<em> always copy </em>has solved the problem. Oh ye. After several wasted hours I could finally continue my work.</p>
]]></content:encoded>
			<wfw:commentRss>http://i-gorod.org/itblog/2008/06/10/visual-studio-2005-error-an-existing-connection-was-forcibly-closed-by-the-remote-host-and-an-operation-was-attempted-on-something-that-is-not-a-socket/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>DriverInvalidCallException.</title>
		<link>http://i-gorod.org/itblog/2007/10/22/driverinvalidcallexception/</link>
		<comments>http://i-gorod.org/itblog/2007/10/22/driverinvalidcallexception/#comments</comments>
		<pubDate>Mon, 22 Oct 2007 19:46:49 +0000</pubDate>
		<dc:creator>Ilya G.</dc:creator>
				<category><![CDATA[Microsoft .net]]></category>

		<guid isPermaLink="false">http://i-gorod.org/itblog/2007/10/22/driverinvalidcallexception/</guid>
		<description><![CDATA[DriverInvalidCallException is one of those Microsoft splendid documented classes, that drive a developer mad. How do you like this msdn explanation: &#8220;The driver reports that the current method call is invalid.&#8221;?! Oh yeah, this is really useful. I&#8217;ve got this exception using DirectX on a PDA, trying to load a texture by TextureLoader.FromStream(dev,&#8230;) The same [...]]]></description>
			<content:encoded><![CDATA[<p>DriverInvalidCallException is one of those Microsoft splendid documented classes, that drive a developer mad. How do you like this msdn explanation: &#8220;The driver reports that the current method call is invalid.&#8221;?! Oh yeah, this is really useful.<span id="more-50"></span></p>
<p>I&#8217;ve got this exception using DirectX on a PDA, trying to load a texture by <em>TextureLoader.FromStream(dev,&#8230;)</em> The same affect was achieved using <em>TextureLoader.FromFile(dev, &#8220;fileName.png&#8221;)</em>. The exception came not every time during the execution, but rather sporadically. The <em>device </em>was absolutely ok all the time.</p>
<p>The real reason for DriverInvalidCallException in my case was the lack of memory. Notwithsdanging there was still enough programm memory (more than 10mb), data memory was almost full (only 1mb free). After cleaning the data space, the exception dissapeared. Hope this posting could help you.</p>
]]></content:encoded>
			<wfw:commentRss>http://i-gorod.org/itblog/2007/10/22/driverinvalidcallexception/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Accuracy of GPS Data. SharpGPS is Fine but not Smart Enough.</title>
		<link>http://i-gorod.org/itblog/2007/09/13/accuracy-of-gps-data-sharpgps-is-fine-but-not-smart-enough/</link>
		<comments>http://i-gorod.org/itblog/2007/09/13/accuracy-of-gps-data-sharpgps-is-fine-but-not-smart-enough/#comments</comments>
		<pubDate>Wed, 12 Sep 2007 23:32:37 +0000</pubDate>
		<dc:creator>Ilya G.</dc:creator>
				<category><![CDATA[GPS]]></category>
		<category><![CDATA[Microsoft .net]]></category>

		<guid isPermaLink="false">http://i-gorod.org/itblog/2007/09/13/accuracy-of-gps-data-sharpgps-is-fine-but-not-smart-enough/</guid>
		<description><![CDATA[The task I&#8217;m currently work on is to increase the accuracy of GPS data. More concretely speaking I&#8217;m looking for approaches that would help to filter out the imprecise coordinates. It&#8217;s a well known problem that  even if you don&#8217;t move, each second you get GPS coordinates from your reciever that deviate at up to [...]]]></description>
			<content:encoded><![CDATA[<p>The task I&#8217;m currently work on is to increase the accuracy of GPS data. More concretely speaking I&#8217;m looking for approaches that would help to filter out the imprecise coordinates. It&#8217;s a well known problem that  even if you don&#8217;t move, each second you get GPS coordinates from your reciever that deviate at up to 15 m. (GPS signal is quite good) from your current location. Thus such a simple task as to calculate the total distance that the user passed gets to a great challenge. <span id="more-45"></span>Yes, you can ignore the coordinates that lay under a certain HODP threshold or to take into consideration only those coordinates that you get from a certain speed. Some of the heuristics I&#8217;m trying out at the moment.  So if you have some suggestions I would highly appreciate your help. <img src='http://i-gorod.org/itblog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Looking in the internet for possible solutions, I didn&#8217;t find any helpful tips. But I came across a very nice API called <a href="http://www.codeplex.com/SharpGPS" title="sharpgps - gps api">SharpGPS</a>. This is a GPS library for .NET 2.0 and .NET 2.0 Compact Framework. The current version is 0.5 alpha <img src='http://i-gorod.org/itblog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I liked the structural organization of the .NET Solution. The project comrises even some GUIs for testing the implemented features. This API can suite well for those developers who don&#8217;t want to invent bicycle once again and don&#8217;t want to waste their time with parsing NMEA protocol strings. For alpha 0.5 it&#8217;s a good result. I hope that in the future this API will contain some methods for increasing the quality of GPS precision and offer solutions for the problems I talked about at the beginning of the posting.</p>
]]></content:encoded>
			<wfw:commentRss>http://i-gorod.org/itblog/2007/09/13/accuracy-of-gps-data-sharpgps-is-fine-but-not-smart-enough/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visual Studio. &#8220;The operation could not be completed&#8221; Error.</title>
		<link>http://i-gorod.org/itblog/2007/09/08/visual-studio-the-operation-could-not-be-completed-error/</link>
		<comments>http://i-gorod.org/itblog/2007/09/08/visual-studio-the-operation-could-not-be-completed-error/#comments</comments>
		<pubDate>Sat, 08 Sep 2007 21:50:58 +0000</pubDate>
		<dc:creator>Ilya G.</dc:creator>
				<category><![CDATA[Microsoft .net]]></category>

		<guid isPermaLink="false">http://i-gorod.org/itblog/2007/09/08/visual-studio-the-operation-could-not-be-completed-error/</guid>
		<description><![CDATA[The weird popup error window &#8220;The operation could not be completed&#8221; while trying to deploy the project to a Windows Mobile 5 device was an unpleasant surprise for a Friday morning. No further tips from Visual Studio (2005). The first thought was, there was something wrong with connection to a mobile device. ActiveSync icon was [...]]]></description>
			<content:encoded><![CDATA[<p>The weird popup error window &#8220;The operation could not be completed&#8221; while trying to deploy the project to a Windows Mobile 5 device was an unpleasant surprise for a Friday morning. No further tips from Visual Studio (2005). The first thought was, there was something wrong with connection to a mobile device. <span id="more-42"></span>ActiveSync icon was actually green, but for any case I decided explicitly to press the button in IDE to establish manually the connection. The popup windows didn&#8217;t appear anymore, yes! &#8230; but the things became more strange. Something like &#8220;No execution file was found&#8221; message appeared now on my PDA display. The project seemed not to be compiled, but Visual Studio tried already to start it on PDA. The most interesting thing was the fact, that I checked out the fresh version of the project from our SVN server. My colleague didn&#8217;t experienced this problem.</p>
<p><strong>Solution</strong>. Check once again, wether all the static content like images, video, files etc. are still in you project directory!!! Usually if a class is missing Visual Studio immediately inform you. But with static content it turned out to be not so obvious. The project we work on now is very large and contains a large directory tree with numerous html pages and images. My colleague deleted an image from SVN by mistake, but it was still registered in the solution. It took a while till I found the picture that was the cause for an unpleasant Friday morning <img src='http://i-gorod.org/itblog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://i-gorod.org/itblog/2007/09/08/visual-studio-the-operation-could-not-be-completed-error/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Visual Studio. &#8220;There is no source code available for the current location&#8221; Error.</title>
		<link>http://i-gorod.org/itblog/2007/06/21/visual-studio-there-is-no-source-code-available-for-the-current-location-error/</link>
		<comments>http://i-gorod.org/itblog/2007/06/21/visual-studio-there-is-no-source-code-available-for-the-current-location-error/#comments</comments>
		<pubDate>Thu, 21 Jun 2007 09:05:29 +0000</pubDate>
		<dc:creator>Ilya G.</dc:creator>
				<category><![CDATA[Microsoft .net]]></category>

		<guid isPermaLink="false">http://i-gorod.org/itblog/2007/06/21/visual-studio-there-is-no-source-code-available-for-the-current-location-error/</guid>
		<description><![CDATA[Visual Studio is really full of surprises. Having debugged today the whole morning I became suddenly a Visual Studio exception, saying that there were no source code for debugging. I was confused. I see the code, I see the debug mark, and I compare what I seewith the exception message and I understand that there [...]]]></description>
			<content:encoded><![CDATA[<p>Visual Studio is really full of surprises. Having debugged today the whole morning I became suddenly a Visual Studio exception, saying that there were no source code for debugging. I was confused. I see the code, I see the debug mark, and I compare what I see<span id="more-18"></span>with the exception message and I understand that there is something wrong. I saw around in the internet and indeed, there were also other guys who got to know this side of Visual Studio. I didn’t find any good solutions how to make the debugger to find the code again. What I found was an advice to build a new project and just to copy all the classes into the new solution. Fortunately the part of the application I work at now is not that large, so it took only several minutes to repair my debugger.</p>
]]></content:encoded>
			<wfw:commentRss>http://i-gorod.org/itblog/2007/06/21/visual-studio-there-is-no-source-code-available-for-the-current-location-error/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Using Microsoft.VisualBasic Namespace in C#. Input Box.</title>
		<link>http://i-gorod.org/itblog/2007/06/04/using-microsoftvisualbasic-namespace-in-c-input-box/</link>
		<comments>http://i-gorod.org/itblog/2007/06/04/using-microsoftvisualbasic-namespace-in-c-input-box/#comments</comments>
		<pubDate>Mon, 04 Jun 2007 15:52:58 +0000</pubDate>
		<dc:creator>Ilya G.</dc:creator>
				<category><![CDATA[Microsoft .net]]></category>

		<guid isPermaLink="false">http://i-gorod.org/itblog/2007/06/04/using-microsoftvisualbasic-namespace-in-c-input-box/</guid>
		<description><![CDATA[Sometimes it&#8217;s very useful to get quickly an input from the user in your application. If you just want to prompt the user to enter a single string, it would be absurdly to dedicate a form for such a simple task. C# itself does not offer such a pleasant convenience as InputBox. It is buried [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes it&#8217;s very useful  to get quickly an  input from the user in your application. If you just want  to prompt the user to enter a single string, it would be absurdly to dedicate a form for such a simple task. C# itself does not offer such a pleasant convenience as <strong>InputBox</strong>. It is buried in the depths of Microsoft.VisualBasic name space. You have to add this name space to your references in order to use the <strong>InputBox</strong>. <span id="more-4"></span></p>
<p>The function InputBox looks like:</p>
<pre><a title="syntaxToggle" name="syntaxToggle"></a>public static string InputBox (</pre>
<pre>	       string Prompt,</pre>
<pre>  	       [OptionalAttribute] string Title,</pre>
<pre> 	       [OptionalAttribute] string DefaultResponse,</pre>
<pre>	       [OptionalAttribute] int XPos,</pre>
<pre>               [OptionalAttribute] int YPos)</pre>
<p>There is a possibility to seperate the line of Promp string. For this purpose just use carriage return character (<strong>Chr(</strong>13<strong>)</strong>), a line feed character (<strong>Chr(</strong>10<strong>)</strong>), or a carriage return/line feed combination (<strong>Chr(</strong>13<strong>)</strong> &amp; <strong>Chr(</strong>10<strong>)</strong>).</p>
<p>How the <strong>InputBox</strong> works is demonstrated in the example bellow:</p>
<p><code>string promptString = "Please enter something here";</code></p>
<p><code>String titleString = "Input Required"; </code></p>
<p><code>String defaultResponse = "something"; </code></p>
<p><code>int xPosition = 80; </code></p>
<p><code>int yPosition = 80;   </code></p>
<p><code>string inputString = </code></p>
<p><code>        Microsoft.VisualBasic.Interaction.InputBox(</code></p>
<p><code>                                                    </code><code>promptString,</code></p>
<p><code>                                        </code><code>titleString,</code></p>
<p><code>                                        </code><code>defaultResponse,</code></p>
<p><code> </code><code>                                        xPosition,</code></p>
<p><code>                                        yPosition</code></p>
<p><code>                                        );   </code></p>
<p><code></code><code>if(</code><code>inputString </code><code>!= "") { 	</code></p>
<p><code>    MessageBox.Show("You entered: " + inputString); </code></p>
<p><code>} else { 	</code></p>
<p><code>    MessageBox.Show("You entered nothing or you just closed InputBox");</code></p>
<p><code>}</code></p>
<p>Please pay attention, that if you just close the <strong>InputBox </strong>your inputString will be empty.</p>
]]></content:encoded>
			<wfw:commentRss>http://i-gorod.org/itblog/2007/06/04/using-microsoftvisualbasic-namespace-in-c-input-box/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

