<?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>Michael Sync &#187; Tips and Tricks</title>
	<atom:link href="http://michaelsync.net/category/tips-and-tricks/feed" rel="self" type="application/rss+xml" />
	<link>http://michaelsync.net</link>
	<description>Sharing our knowledge</description>
	<lastBuildDate>Tue, 10 Jan 2012 02:18:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>IIS 6: HTTP Compression Problem</title>
		<link>http://michaelsync.net/2011/12/18/iis-6-http-compression-problem</link>
		<comments>http://michaelsync.net/2011/12/18/iis-6-http-compression-problem#comments</comments>
		<pubDate>Sun, 18 Dec 2011 13:23:01 +0000</pubDate>
		<dc:creator>Michael Sync</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Tips and Tricks]]></category>

		<guid isPermaLink="false">http://michaelsync.net/?p=1990</guid>
		<description><![CDATA[Short Version Error: Internet Explorer cannot display the webpage Solution: Disable &#8220;HTTP Compression&#8221; in both Web extension and &#8220;Service&#8221; tab of Website properties This short version is for those who are not interested about the details of this problem. Long version &#8230; <a href="http://michaelsync.net/2011/12/18/iis-6-http-compression-problem">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><span style="text-decoration: underline;"><strong>Short Version</strong></span></p>
<ul>
<li>Error: Internet Explorer cannot display the webpage</li>
<li>Solution: Disable &#8220;HTTP Compression&#8221; in both Web extension and &#8220;Service&#8221; tab of Website properties</li>
</ul>
<p>This short version is for those who are not interested about the details of this problem.</p>
<p><span style="text-decoration: underline;"><strong>Long version</strong></span></p>
<p>It took me almost 2 days to figure out about this issue so I&#8217;m going to share the details with you guys in this post. But as I didn&#8217;t use IIS 6 for long time and my main technical expertise is not IIS, the solution that I found might not be the best solution. If you guys know better solution for this issue, please feel free to share with us in comment section. Thanks!</p>
<h2>Environment</h2>
<p>Our server is Windows 2003 advanced server. We have .NET 1, .NET 2 and .NET 4 installed on that server. The existing website which is written in ASP.NET 2.0 is currently running on that server.</p>
<h2>Problem</h2>
<p>We got this issue when we tried deploying our new web application which is a hybrid app of ASP.NET 4.0 and ASP.NET MVC 3 on that server. To my surprise, ASP.NET MVC works great fine but ASP.NET 4.0 pages drove us crazy. I thought that the problem might come from the fact that our application is a hybrid so I created a brand new ASP.NET 4.0 application in Visual Studio 2010 and published it on the server but it didn&#8217;t work. It&#8217;s very weird because MVC project is working fine so .NET 4 framework shouldn&#8217;t have any problem but couldn&#8217;t figure out why ASP.NET 4.0 site wasn&#8217;t working.</p>
<p>In order to narrow down the problem, I created new Virtual Directory and new application pool and put a HTML page in that directory so we don&#8217;t need to worry about .NET issue. but this issue was getting more weird. Can you guess what happened? When I tried accessing that page from browser, it was working fine for the first time request but it didn&#8217;t work for second time request. I got different errors as below in different browsers.</p>
<p><strong>IE</strong></p>
<blockquote><p>Internet Explorer cannot display the webpage</p></blockquote>
<p><strong>Google Chrome</strong></p>
<blockquote><p>This web page is not available The web page at http://19x.10x.10x.2:17x/simpleweb/c.html might be temporarily down or it may have moved permanently to a new web address. Error 330 (net::ERR_CONTENT_DECODING_FAILED): Unknown error.</p></blockquote>
<p><strong>Firefox</strong></p>
<blockquote><p>Content Encoding Error The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression. Please contact the website owners to inform them of this problem.</p></blockquote>
<p>IE didn&#8217;t give any information as usual (well, we love IE! :P ) but when I saw the error message in Firefox, the encoding and gzip things came into my mind but I wasn&#8217;t so sure whether IIS server stopped responding the second request or the encoding issue. I looked at IIS log. As you can see below, IIS returns 200 so IIS wasn&#8217;t blocking the second request.</p>
<p><strong>IIS log</strong></p>
<blockquote><p>#Software: Microsoft Internet Information Services 6.0<br />
#Version: 1.0<br />
#Date: 2011-12-14 06:27:57<br />
#Fields: date time s-sitename s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) cs(Referer) sc-status sc-substatus sc-win32-status sc-bytes cs-bytes</p>
<p>2011-12-14 06:29:27 W3SVC1531730165 127.0.0.1 GET /simpleweb/d.html &#8211; 170 &#8211; 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.2;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET4.0C;+.NET4.0E) &#8211; <strong>200</strong> 0 0 378 284</p></blockquote>
<p>Just to make it more sure, I used <a href="http://www.fiddler2.com/fiddler2/">Fiddler</a> to capture the traffic between the browser and server. I managed to get the response but when I viewed the response stream, I got this error below in Fiddler.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Fiddler: UnGZip failed<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
The content could not be decompressed.<br />
The magic number in GZip header is not correct. Make sure you are passing in a GZip stream.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
OK<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<h2>Solution</h2>
<p>As Fiddler showed that there is something wrong with gzip, I decided to turn off the HTTP compression on that server.</p>
<p>How to turn off the HTTP compression on IIS 6? It&#8217;s pretty simple. Go to the properties of Website (not virtual directory or application) and uncheck &#8220;Compress application files&#8221; and &#8220;Compress static files&#8221; on &#8220;Service&#8221; tab. And set &#8220;Prohibit&#8221; to &#8220;HTTP Compression&#8221; in Web extension.</p>
<p><img class="alignnone size-full wp-image-1993" title="IIS 6" src="http://michaelsync.net/wp-content/uploads/2011/12/IIS-6.png" alt="" width="640" height="443" /></p>
<p>Note that I tested HTTP compression on fresh 2003 server and it works so I think gzip assembly got some problems on that server only. That&#8217;s why I mentioned that disabling HTTP compression might not be the best solution but we decided to stop experimenting it for now because we are using 2003 server temporarily. I don&#8217;t think it&#8217;s good idea to host ASP.NET 4 app and MVP app on IIS 6 so we are going to get new Windows 2008 R2 service with IIS 7 later.. But yeah. if you have a better solution then please share with us.</p>
<p><em>Credits: Thank you all to everyone who gave a lot of suggestions for this issue. You guys helped me a lot. Thanks! </em>
<div class='kouguu_fb_like_button'><iframe src="http://www.facebook.com/plugins/like.php?href=http://michaelsync.net/2011/12/18/iis-6-http-compression-problem&#038;layout=standard&#038;show_faces=false&#038;width=450&#038;height=25&#038;action=like&#038;colorscheme=light&#038;" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:25px;"></iframe></div>
]]></content:encoded>
			<wfw:commentRss>http://michaelsync.net/2011/12/18/iis-6-http-compression-problem/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nuget Update Error</title>
		<link>http://michaelsync.net/2011/12/17/simple-solution-for-nuget-update-error</link>
		<comments>http://michaelsync.net/2011/12/17/simple-solution-for-nuget-update-error#comments</comments>
		<pubDate>Sat, 17 Dec 2011 10:39:15 +0000</pubDate>
		<dc:creator>Michael Sync</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>

		<guid isPermaLink="false">http://michaelsync.net/?p=1982</guid>
		<description><![CDATA[Yap. It&#8217;s happening again with Nuget Update. I got new update for nuget this morning but I kept on getting error when I update it. When I check the log, I found that it&#8217;s the same issue that we had &#8230; <a href="http://michaelsync.net/2011/12/17/simple-solution-for-nuget-update-error">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Yap. It&#8217;s happening again with Nuget Update. I got new update for nuget this morning but I kept on getting error when I update it. When I check the log, I found that it&#8217;s the same issue that we had a few months back. I&#8217;m not sure how many times we are going to face this issue in future so I&#8217;m just sharing it with you guys in case you have the same problem.</p>
<p><img class="alignnone size-full wp-image-1983" title="NuGet package manager update" src="http://michaelsync.net/wp-content/uploads/2011/12/NuGet-package-manager-update.png" alt="" width="608" height="361" /></p>
<p><strong>Error Logs</strong></p>
<p>16/12/2011 9:38:25 AM &#8211; Verifying matching extension signatures before updating&#8230;<br />
Installed Extension Path: C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft Corporation\NuGet Package Manager\1.5.20902.9026\<br />
Update Extension Path: c:\users\michael.sync\appdata\local\temp\tmp479e.tmp<br />
16/12/2011 9:38:25 AM &#8211; VSIXInstaller.SignatureMismatchException: The signature on the update version of &#8216;NuGet Package Manager&#8217; does not match the signature on the installed version. Therefore, Extension Manager cannot install the update.<br />
at VSIXInstaller.Common.VerifyMatchingExtensionSignatures(IInstalledExtension installedExtension, IInstallableExtension updateExtension)<br />
at VSIXInstaller.InstallProgressPage.BeginInstallVSIX(SupportedVSSKU targetAppID)<br />
16/12/2011 9:38:25 AM &#8211; Install Error : VSIXInstaller.SignatureMismatchException: The signature on the update version of &#8216;NuGet Package Manager&#8217; does not match the signature on the installed version. Therefore, Extension Manager cannot install the update.<br />
at VSIXInstaller.Common.VerifyMatchingExtensionSignatures(IInstalledExtension installedExtension, IInstallableExtension updateExtension)<br />
at VSIXInstaller.InstallProgressPage.BeginInstallVSIX(SupportedVSSKU targetAppID)</p>
<p><strong>Solution</strong></p>
<ul>
<li>Open Visual Studio 2010 with administrator right (You need this. Otherwise, the &#8220;Uninstall&#8221; button on Nuget will be disabled. )</li>
<li>Remove Nuget from Visual Studio 2011 first</li>
<li>And install it again from online gallery</li>
</ul>
<div>That&#8217;s it!</div>
<div class='kouguu_fb_like_button'><iframe src="http://www.facebook.com/plugins/like.php?href=http://michaelsync.net/2011/12/17/simple-solution-for-nuget-update-error&#038;layout=standard&#038;show_faces=false&#038;width=450&#038;height=25&#038;action=like&#038;colorscheme=light&#038;" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:25px;"></iframe></div>
]]></content:encoded>
			<wfw:commentRss>http://michaelsync.net/2011/12/17/simple-solution-for-nuget-update-error/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blend 4 + VS 2011 (Preview) = Problem?</title>
		<link>http://michaelsync.net/2011/11/15/blend-4-vs-2011-preview-problem</link>
		<comments>http://michaelsync.net/2011/11/15/blend-4-vs-2011-preview-problem#comments</comments>
		<pubDate>Tue, 15 Nov 2011 14:18:38 +0000</pubDate>
		<dc:creator>Michael Sync</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Tips and Tricks]]></category>

		<guid isPermaLink="false">http://michaelsync.net/?p=1910</guid>
		<description><![CDATA[Problem:  Microsoft Expression Blend 4 crash on startup after installing Visual Studio 2011 Developer Preview on my machine.. Solution:  I found this bug report in MS Connect.  Christopher Cole from Microsoft Expression responded that report with the solution below. There is a compatibility &#8230; <a href="http://michaelsync.net/2011/11/15/blend-4-vs-2011-preview-problem">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>Problem: </strong></p>
<p>Microsoft Expression Blend 4 crash on startup after installing Visual Studio 2011 Developer Preview on my machine..</p>
<p><img class="alignnone size-full wp-image-1911" title="Blend got fucked up after installing VS 11" src="http://michaelsync.net/wp-content/uploads/2011/11/Blend-got-fucked-up-after-installing-VS-11.png" alt="" width="414" height="538" /></p>
<p><strong>Solution: </strong></p>
<p>I found this bug report in <a href="http://connect.microsoft.com/Expression/feedback/details/690246/blend-4-crashes-on-startup">MS Connect</a>.  Christopher Cole from Microsoft Expression responded that report with the solution below.</p>
<blockquote><p>There is a compatibility problem with .Net 4.5 installed as part of the Developer Preview and Blend 4. This issue was fixed, but too late to make the preview build.</p>
<p>The workaround is to run:</p>
<p>%windir%\Microsoft.NET\Framework\v4.0.30319\ngen uninstall &#8220;%ProgramFiles(x86)%\Microsoft Expression\Blend 4\Microsoft.Expression.Framework.dll&#8221;<br />
%windir%\Microsoft.NET\Framework\v4.0.30319\ngen uninstall &#8220;%ProgramFiles(x86)%\Microsoft Expression\Blend 4\Microsoft.Expression.Blend.dll&#8221;<br />
%windir%\Microsoft.NET\Framework\v4.0.30319\ngen uninstall &#8220;%ProgramFiles(x86)%\Microsoft Expression\Blend 4\Microsoft.Expression.Project.dll&#8221;</p>
<p>If &#8220;%ProgramFiles(x86)%\Microsoft Expression\Blend 4\Microsoft.Expression.WindowsPhone.dll&#8221; is present (for scenarios like Blend V4 SP1 or future releases), please also run:<br />
%windir%\Microsoft.NET\Framework\v4.0.30319\ngen uninstall &#8220;%ProgramFiles(x86)%\Microsoft Expression\Blend 4\Microsoft.Expression.WindowsPhone.dll&#8221;</p></blockquote>
<p>I just tried it on my machine and it works for me so I&#8217;m sharing it with my readers here..</p>
<p><img class="alignnone size-full wp-image-1912" title="Blend Fixes" src="http://michaelsync.net/wp-content/uploads/2011/11/Blend-Fixes.png" alt="" width="677" height="485" /></p>
<p><strong>Edit: </strong></p>
<blockquote><p>Error: Unrecognized option Files</p></blockquote>
<p>You have integrated Git with Command Prompt, you will get this error when you run &#8220;ngen&#8221;. If you happen to have the older preview version of git, you will get the error below when you try to uninstall it. I had to delete the git folder manually.</p>
<blockquote><p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Error<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Runtime Error (at 18:1292):</p>
<p>Could not call proc.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
OK<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p></blockquote>
<p><img class="alignnone size-full wp-image-2067" title="git can't uninstalled" src="http://michaelsync.net/wp-content/uploads/2011/11/git-cant-uninstalled.png" alt="" width="557" height="412" /></p>
<p>&nbsp;</p>
<p>&nbsp;
<div class='kouguu_fb_like_button'><iframe src="http://www.facebook.com/plugins/like.php?href=http://michaelsync.net/2011/11/15/blend-4-vs-2011-preview-problem&#038;layout=standard&#038;show_faces=false&#038;width=450&#038;height=25&#038;action=like&#038;colorscheme=light&#038;" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:25px;"></iframe></div>
]]></content:encoded>
			<wfw:commentRss>http://michaelsync.net/2011/11/15/blend-4-vs-2011-preview-problem/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Tip for Windows Phone Wi-Fi issue</title>
		<link>http://michaelsync.net/2011/11/13/tip-for-windows-phone-wi-fi-issue</link>
		<comments>http://michaelsync.net/2011/11/13/tip-for-windows-phone-wi-fi-issue#comments</comments>
		<pubDate>Sun, 13 Nov 2011 16:44:19 +0000</pubDate>
		<dc:creator>Michael Sync</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>

		<guid isPermaLink="false">http://michaelsync.net/?p=1905</guid>
		<description><![CDATA[I&#8217;ve been using HTC Mozart Windows Phone for a few months and I&#8217;m quite happy with that phone.  Unfortunately, I got an issue after updating latest version of Mango yesterday. I was using the early version of Mango as well. &#8230; <a href="http://michaelsync.net/2011/11/13/tip-for-windows-phone-wi-fi-issue">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using <a href="http://www.htc.com/www/smartphones/htc-7-mozart/#specs">HTC Mozart Windows Phone</a> for a few months and I&#8217;m quite happy with that phone. <img class="alignnone size-full wp-image-1906" title="HTC Mozart Windows Phone" src="http://michaelsync.net/wp-content/uploads/2011/11/HTC-Mozart-Windows-Phone.jpg" alt="" width="780" height="440" /></p>
<p>Unfortunately, I got an issue after updating latest version of Mango yesterday. I was using the early version of Mango as well. I didn&#8217;t have any problem until yesterday. The problem is that I couldn&#8217;t able to detect my wi-fi network from my phone. I tried quite a few way to fix that issue. I even did the hard-reset for my phone but didn&#8217;t work. My friend suggested me to change the wireless channel of my router. Finally, the trick did work. So, I&#8217;m just sharing what I found here. Hopefully, it would help someone.. :)</p>
<p><img class="alignnone size-full wp-image-1907" title="Wireless Setting" src="http://michaelsync.net/wp-content/uploads/2011/11/Wireless-Setting.png" alt="" width="565" height="250" />
<div class='kouguu_fb_like_button'><iframe src="http://www.facebook.com/plugins/like.php?href=http://michaelsync.net/2011/11/13/tip-for-windows-phone-wi-fi-issue&#038;layout=standard&#038;show_faces=false&#038;width=450&#038;height=25&#038;action=like&#038;colorscheme=light&#038;" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:25px;"></iframe></div>
]]></content:encoded>
			<wfw:commentRss>http://michaelsync.net/2011/11/13/tip-for-windows-phone-wi-fi-issue/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTC 7 Mozart &#8211; C1010009 in updating Windows Phone 7.1 (Mango)</title>
		<link>http://michaelsync.net/2011/11/04/htc-7-mozart-c1010009-in-updating-windows-phone-7-1-mango</link>
		<comments>http://michaelsync.net/2011/11/04/htc-7-mozart-c1010009-in-updating-windows-phone-7-1-mango#comments</comments>
		<pubDate>Fri, 04 Nov 2011 08:32:37 +0000</pubDate>
		<dc:creator>Michael Sync</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Windows Phone]]></category>

		<guid isPermaLink="false">http://michaelsync.net/?p=1894</guid>
		<description><![CDATA[My phone &#8220;HTC 7 Mozart&#8221; was having problem in updating Windows 7.1 Mango &#8220;7.10 (7720)&#8221;. I kept on getting &#8220;C1010009&#8243; error whenever I tried to update. After doing some researches and googling a bit, I came to know that it&#8217;s &#8230; <a href="http://michaelsync.net/2011/11/04/htc-7-mozart-c1010009-in-updating-windows-phone-7-1-mango">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>My phone &#8220;<a href="http://www.htc.com/www/smartphones/htc-7-mozart/">HTC 7 Mozart</a>&#8221; was having problem in updating Windows 7.1 Mango &#8220;7.10 (7720)&#8221;. I kept on getting &#8220;C1010009&#8243; error whenever I tried to update.</p>
<p><img class="alignnone size-full wp-image-1895" title="HTC Update Error" src="http://michaelsync.net/wp-content/uploads/2011/11/HTC-Update-Error.png" alt="" width="667" height="119" /></p>
<p>After doing some researches and googling a bit, I came to know that it&#8217;s because of the USB port. I was using the USB ports which are in front of the system box . So, I switched my phone USB cable to the port at the back of my system box then it works.</p>
<p>If you are also having C1010009 error, please try switching different USB port and try updating again. Please feel free to share if you have any other solution!
<div class='kouguu_fb_like_button'><iframe src="http://www.facebook.com/plugins/like.php?href=http://michaelsync.net/2011/11/04/htc-7-mozart-c1010009-in-updating-windows-phone-7-1-mango&#038;layout=standard&#038;show_faces=false&#038;width=450&#038;height=25&#038;action=like&#038;colorscheme=light&#038;" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:25px;"></iframe></div>
]]></content:encoded>
			<wfw:commentRss>http://michaelsync.net/2011/11/04/htc-7-mozart-c1010009-in-updating-windows-phone-7-1-mango/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Encoding MP4 Problem in Expression Encoder 4 Pro</title>
		<link>http://michaelsync.net/2010/09/02/encoding-mp4-problem-in-expression-encoder-4-pro</link>
		<comments>http://michaelsync.net/2010/09/02/encoding-mp4-problem-in-expression-encoder-4-pro#comments</comments>
		<pubDate>Thu, 02 Sep 2010 18:53:23 +0000</pubDate>
		<dc:creator>Michael Sync</dc:creator>
				<category><![CDATA[Expression Studio]]></category>
		<category><![CDATA[Tips and Tricks]]></category>

		<guid isPermaLink="false">http://michaelsync.net/?p=1758</guid>
		<description><![CDATA[I wanna tell you guys about one problem that I&#8217;m facing with Expression Encoder 4 Pro. Do you guys ever see this error &#8220;This functionality is only available in the fully-featured Expression Encoder Pro&#8221; while you are using Expression Studio &#8230; <a href="http://michaelsync.net/2010/09/02/encoding-mp4-problem-in-expression-encoder-4-pro">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I wanna tell you guys about one problem that I&#8217;m facing with Expression Encoder 4 Pro. Do you guys ever see this error &#8220;<strong>This functionality is only available in the fully-featured Expression Encoder Pro</strong>&#8221; while you are using Expression Studio Ultimate licensed version?  I heard that the most of users who are using the MSDN subscription version of Expression Studio are having this problem.  When you change the Output Format &#8220;Windows Media&#8221; to MP4, you will get this error.</p>
<p><img class="alignnone size-full wp-image-1760" title="Expression Encoder 4 Pro - Convert MEG to MP4" src="http://michaelsync.net/wp-content/uploads/2010/09/Expression-Encoder-4-Pro-Convert-MEG-to-MP4.png" alt="" width="393" height="209" /></p>
<p>The screenshot of that error is as below..</p>
<p><img class="alignnone size-full wp-image-1759" title="Expression Encoder 4 Pro - This functionality is only available in the fully-featured Expression Encoder Pro" src="http://michaelsync.net/wp-content/uploads/2010/09/Expression-Encoder-4-Pro-This-functionality-is-only-available-in-the-fully-featured-Expression-Encoder-Pro-.png" alt="" width="469" height="118" /></p>
<p>I think Microsoft is aware of this issue and I hope we will get the fixes very soon.. Emily Anderson from Microsoft wrote below in IIS7Media forum ~</p>
<blockquote><p>Thanks for your interest in Expression Encoder.  We have two version of Expression Encoder 4: The first is included in Expression Ultimate purchased through volume licensing, MSDN, and Bizspark, and does not include royalty-bearing codecs.  The second version is included in Expression Ultimate purchased through retail channels, and does include the codecs. The reason for needing two product versions is due to codec redistribution and reporting requirements. Unfortunately we’ve experienced some technical issues with MS store, but we expect the problems to be resolved in the next 48 hours and Encoder to be available again before the end of the week.</p></blockquote>
<p>If you are wondering whether you have the same problem or not, you can go and check the AboutPage of Encoder 4. The following is mine. If you have &#8220;(without codecs)&#8221; then you will probably have the same problem..  The only solution that I know is to wait a few more days to get the latest version of Encoder 4 from MSDN subscription. Let me know if you know other workaround..</p>
<p><img class="alignnone size-full wp-image-1761" title="Expression Encoder 4 Pro Without Codes" src="http://michaelsync.net/wp-content/uploads/2010/09/Expression-Encoder-4-Pro-Without-Codes.png" alt="" width="351" height="504" />
<div class='kouguu_fb_like_button'><iframe src="http://www.facebook.com/plugins/like.php?href=http://michaelsync.net/2010/09/02/encoding-mp4-problem-in-expression-encoder-4-pro&#038;layout=standard&#038;show_faces=false&#038;width=450&#038;height=25&#038;action=like&#038;colorscheme=light&#038;" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:25px;"></iframe></div>
]]></content:encoded>
			<wfw:commentRss>http://michaelsync.net/2010/09/02/encoding-mp4-problem-in-expression-encoder-4-pro/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Easy SQL Script for handling SQL Image Data</title>
		<link>http://michaelsync.net/2010/07/20/easy-sql-script-for-handling-sql-image-data</link>
		<comments>http://michaelsync.net/2010/07/20/easy-sql-script-for-handling-sql-image-data#comments</comments>
		<pubDate>Wed, 21 Jul 2010 01:43:25 +0000</pubDate>
		<dc:creator>Michael Sync</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>

		<guid isPermaLink="false">http://michaelsync.net/?p=1728</guid>
		<description><![CDATA[Obviously, I&#8217;m not a SQL expert and I was focusing on WPF, Silverlight and patterns during last two years. But recently, I got an opportunity to wear multiple hats in my new job and SQL is the one of the &#8230; <a href="http://michaelsync.net/2010/07/20/easy-sql-script-for-handling-sql-image-data">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Obviously, I&#8217;m not a SQL expert and I was focusing on WPF, Silverlight and patterns during last two years. But recently, I got an opportunity to wear multiple hats in my new job and SQL is the one of the hats that I&#8217;m wearing now. :)</p>
<p>Okay. Let&#8217;s talk about this post.. This post is about how to read the SQL image data, save it as an image file and how to update the existing image data with new image file from SQL Query Panel.</p>
<p>This is the screenshot of one of our games. As you can see in this screenshot, there are some images that we are using in our Silverlight game. Those image comes from database.</p>
<p style="text-align: center;"><img class="size-full wp-image-1729 aligncenter" title="Images from SQL" src="http://michaelsync.net/wp-content/uploads/2010/07/Images-from-SQL.png" alt="" width="470" height="287" /></p>
<p>I thought that SQL 2008 R2 Management Studio would have something that allows us to view or change the existing images (binary) but Unfortunately, it has nothing that you can view the images. (Please take a look at the screenshot below. This is how you will see the image data in SQL 2008 R2 Management Studio. very powerful tool, isn&#8217;t it? :) )</p>
<p style="text-align: center;"><img class="size-full wp-image-1733  aligncenter" title="Binary in SQL" src="http://michaelsync.net/wp-content/uploads/2010/07/Binary-in-SQL.png" alt="" width="406" height="124" /></p>
<p>I looked for open source or free tool that I can view the image from SQL database and save it as a file. I found a few trail tools but none of them are good enough. I decided to do some experiments on SQL script and here is something that I come up with.. I&#8217;m not sure whether this is a good solution for you guys or not but it&#8217;s good solution that I can live with for now. If you have any good solution that you are using in your work then please feel free to let me know..</p>
<p>Let&#8217;s take a look at the script.</p>
<h2>Enabling Ole Automation Procedures in SQL</h2>
<p>Before running the script, you need to enable &#8220;Ole Automation Procedures&#8221; by using the script below. Note that you need to have an administrative right to run the script.  </p>
<pre class="brush: sql; title: ; notranslate">
sp_configure 'show advanced options', 1;
GO
RECONFIGURE;
GO
sp_configure 'Ole Automation Procedures', 1;
GO
RECONFIGURE;
GO
</pre>
<p>Once you enable the option then you should be able to read the image by using Ole and save it as a file. </p>
<h2>Reading Image Data and Save it as a image file</h2>
<p>You need to set the path where you want the generated image to be saved. Did you notice that I mentioned the file extension in @filePath? It&#8217;s because I know that all images that we are using are .jpg but it would be great if we can write something that can detect the image format from the binary data. If you have the script please share with me. ^^</p>
<pre class="brush: sql; title: ; notranslate">
DECLARE @objStream INT
DECLARE @imageBinary VARBINARY(MAX)
SET @imageBinary = (SELECT imagedata FROM dbo.tblDefaultImages WHERE imageid = 121)
DECLARE @filePath VARCHAR(8000)
SET @filePath = 'C:\\MS\\r.jpg'
EXEC sp_OACreate 'ADODB.Stream', @objStream OUTPUT
EXEC sp_OASetProperty @objStream, 'Type', 1
EXEC sp_OAMethod @objStream, 'Open'
EXEC sp_OAMethod @objStream, 'Write', NULL, @imageBinary
EXEC sp_OAMethod @objStream, 'SaveToFile', NULL,@filePath, 2
EXEC sp_OAMethod @objStream, 'Close'
EXEC sp_OADestroy @objStream
</pre>
<h2>Updating the image</h2>
<p>Here is the script for updating the existing binary data with new image file. I didn&#8217;t use Ole here because OpenRowSet is very easy to use and much shorter.. </p>
<pre class="brush: sql; title: ; notranslate">
UPDATE [YourDatabase].[dbo].[tblDefaultImages]
SET imagedata =  (SELECT * FROM
OPENROWSET(BULK N'E:\\FTPRoot\\MS\\rhyme\\rhymeObjects\\wine.png', SINGLE_BLOB)
AS Document)
WHERE imageid = 127
</pre>
<p>Okay. That&#8217;s.. What do you think?
<div class='kouguu_fb_like_button'><iframe src="http://www.facebook.com/plugins/like.php?href=http://michaelsync.net/2010/07/20/easy-sql-script-for-handling-sql-image-data&#038;layout=standard&#038;show_faces=false&#038;width=450&#038;height=25&#038;action=like&#038;colorscheme=light&#038;" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:25px;"></iframe></div>
]]></content:encoded>
			<wfw:commentRss>http://michaelsync.net/2010/07/20/easy-sql-script-for-handling-sql-image-data/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Tip: &#8220;Object reference not set to an instance of an object&#8221; Error in Silverlight for Windows Phone 7</title>
		<link>http://michaelsync.net/2010/04/09/tip-object-reference-not-set-to-an-instance-of-an-object-error-in-silverlight-for-windows-phone-7</link>
		<comments>http://michaelsync.net/2010/04/09/tip-object-reference-not-set-to-an-instance-of-an-object-error-in-silverlight-for-windows-phone-7#comments</comments>
		<pubDate>Sat, 10 Apr 2010 01:56:36 +0000</pubDate>
		<dc:creator>Michael Sync</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Tips and Tricks]]></category>

		<guid isPermaLink="false">http://michaelsync.net/?p=1645</guid>
		<description><![CDATA[Problem :  &#8221;Object reference not set to an instance of an object.&#8221;  messagebox will be displayed when you are running Silverlight Windows Phone 7 Application in Visual Studio 2010. Solution : Shawn Oster, Program Manager of Silverlight for Window Phone &#8230; <a href="http://michaelsync.net/2010/04/09/tip-object-reference-not-set-to-an-instance-of-an-object-error-in-silverlight-for-windows-phone-7">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong> :  &#8221;<strong>Object reference not set to an instance of an object.</strong>&#8221;  messagebox will be displayed when you are running Silverlight Windows Phone 7 Application in Visual Studio 2010.</p>
<p style="text-align: center;"><img class="size-full wp-image-1646  aligncenter" title="Object Reference not set Error in Visual Studio 2010 Utimate and Express Vesrion" src="http://michaelsync.net/wp-content/uploads/2010/04/Object-Reference-not-set-Error-in-Visual-Studio-2010-Utimate-and-Express-Vesrion.png" alt="" width="391" height="345" /></p>
<p><strong>Solution</strong> : Shawn Oster, Program Manager of Silverlight for Window Phone team, confirmed that this is a known issue that they are currently working on fixing for next update. The workaround for this issue is that you need to ensure that the solution is not highlighted in Solution Explorer.</p>
<p>Let&#8217;s take a look at the picture below. Solution &#8220;WP7ApplicationBar&#8221; is highlighted in Solution Explorer, right? That&#8217;s why you are getting this error.</p>
<p style="text-align: center;"><img class="size-full wp-image-1647  aligncenter" title="Don't highlight the solution." src="http://michaelsync.net/wp-content/uploads/2010/04/Dont-highlight-the-solution..png" alt="" width="361" height="257" /></p>
<p>In order to fix this, you need to move the selection by clicking on Project Name or other files in Solution Explorer. As you can see, Solution &#8220;WP7ApplicationBar&#8221; is highlighted in previous screenshot. And we moved the highlight to ProjectName in second screenshot. Then, you can try to run the application from Visual Studio again. I think it will work this time.</p>
<p style="text-align: center;"><img class="size-full wp-image-1648  aligncenter" title="Put the highlight on project Name" src="http://michaelsync.net/wp-content/uploads/2010/04/Put-the-highlight-on-project-Name.png" alt="" width="306" height="253" /></p>
<p>Hope you find it useful. I&#8217;m facing this problem quite so often lately. This funny trick helped me to solve this problem. :) If this trick doesn&#8217;t help you then please feel free to let me know.
<div class='kouguu_fb_like_button'><iframe src="http://www.facebook.com/plugins/like.php?href=http://michaelsync.net/2010/04/09/tip-object-reference-not-set-to-an-instance-of-an-object-error-in-silverlight-for-windows-phone-7&#038;layout=standard&#038;show_faces=false&#038;width=450&#038;height=25&#038;action=like&#038;colorscheme=light&#038;" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:25px;"></iframe></div>
]]></content:encoded>
			<wfw:commentRss>http://michaelsync.net/2010/04/09/tip-object-reference-not-set-to-an-instance-of-an-object-error-in-silverlight-for-windows-phone-7/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>LocBaml for .NET 4.0</title>
		<link>http://michaelsync.net/2010/03/01/locbaml-for-net-4-0</link>
		<comments>http://michaelsync.net/2010/03/01/locbaml-for-net-4-0#comments</comments>
		<pubDate>Mon, 01 Mar 2010 16:39:45 +0000</pubDate>
		<dc:creator>Michael Sync</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>

		<guid isPermaLink="false">http://michaelsync.net/?p=1579</guid>
		<description><![CDATA[Someone was asking how to use LocBaml exe with VS 2010 in Visual Studio 2010 &#38; .NET Framework 4 Release Candidate Forums Forums but noone was answering his question so I managed to take a look at his issue and &#8230; <a href="http://michaelsync.net/2010/03/01/locbaml-for-net-4-0">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Someone was asking how to use <a href="http://social.msdn.microsoft.com/Forums/en-US/vsprereleaseannouncements/thread/08130c7f-68be-4512-9da7-1e3d0f61fb86?prof=required">LocBaml exe with VS 2010</a> in <a href="http://social.msdn.microsoft.com/Forums/en-US/category/vsprerelease">Visual Studio 2010 &amp; .NET Framework 4 Release Candidate Forums Forums</a> but noone was answering his question so I managed to take a look at his issue and here is what I got. It&#8217;s just very simple one but if you are having like the error as below, you can use this updated tool.</p>
<blockquote><p>File or assembly &#8220;bin\Debug\WpfApp.resource.dll&#8221; or one of its depencies not found. The assembly was created by a runtime more actual than the currently loaded one.</p></blockquote>
<p><strong>Download ~</strong></p>
<ul>
<li><a href="http://michaelsync.net/demo/LocBaml.exe">LocBaml.exe</a></li>
<li><a href="http://michaelsync.net/demo/locbaml_sdk(.NET 4).zip">locbaml_sdk(.NET 4).zip</a></li>
</ul>
<p><img class="aligncenter size-full wp-image-1580" title="LocBaml for .NET 4.0" src="http://michaelsync.net/wp-content/uploads/2010/03/LocBaml-for-.NET-4.0.png" alt="" width="677" height="126" /></p>
<p>Hope you find it useful. :)
<div class='kouguu_fb_like_button'><iframe src="http://www.facebook.com/plugins/like.php?href=http://michaelsync.net/2010/03/01/locbaml-for-net-4-0&#038;layout=standard&#038;show_faces=false&#038;width=450&#038;height=25&#038;action=like&#038;colorscheme=light&#038;" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:25px;"></iframe></div>
]]></content:encoded>
			<wfw:commentRss>http://michaelsync.net/2010/03/01/locbaml-for-net-4-0/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Gtalk problem in Windows 7 (64 bits)</title>
		<link>http://michaelsync.net/2010/02/15/gtalk-problem-in-windows-7-64-bits</link>
		<comments>http://michaelsync.net/2010/02/15/gtalk-problem-in-windows-7-64-bits#comments</comments>
		<pubDate>Tue, 16 Feb 2010 04:37:13 +0000</pubDate>
		<dc:creator>Michael Sync</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>

		<guid isPermaLink="false">http://michaelsync.net/?p=1569</guid>
		<description><![CDATA[I was having a problem with Gtalk client on my Windows 7 64 bits machine. The problem was that Gtalk got hanged when someone send the message while the gtalk client is in inactivated mode. The solution for that problem &#8230; <a href="http://michaelsync.net/2010/02/15/gtalk-problem-in-windows-7-64-bits">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-1568" title="Gtalk on Win7 64 bit" src="http://michaelsync.net/wp-content/uploads/2010/02/Gtalk-on-Win7-64-bit.png" alt="" width="542" height="342" /></p>
<p>I was having a problem with Gtalk client on my Windows 7 64 bits machine. The problem was that Gtalk got hanged when someone send the message while the gtalk client is in inactivated mode. The solution for that problem is that you need to disable the notification (esp: Play Sound) in Gtalk Setting. Some said that disabling &#8220;Play Sound&#8221; for incoming chat or call does the trick but I disabled all notifications since I don&#8217;t need them. I hope you find it useful.</p>
<p><img class="aligncenter size-full wp-image-1570" title="Gtalk Setting" src="http://michaelsync.net/wp-content/uploads/2010/02/Gtalk-Setting.png" alt="" width="562" height="516" />
<div class='kouguu_fb_like_button'><iframe src="http://www.facebook.com/plugins/like.php?href=http://michaelsync.net/2010/02/15/gtalk-problem-in-windows-7-64-bits&#038;layout=standard&#038;show_faces=false&#038;width=450&#038;height=25&#038;action=like&#038;colorscheme=light&#038;" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:25px;"></iframe></div>
]]></content:encoded>
			<wfw:commentRss>http://michaelsync.net/2010/02/15/gtalk-problem-in-windows-7-64-bits/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

