Navigation

Tuesday, December 07, 2010

Great Collection of Free Microsoft eBooks

Here are some great free Microsoft eBook offers from the last few months.
Free ebook: Moving to Microsoft Visual Studio 2010 http://blogs.msdn.com/b/microsoft_press/archive/2010/09/13/free-ebook-moving-to-microsoft-visual-studio-2010.aspx
Free ebook: Introducing Microsoft SQL Server 2008 R2 http://blogs.msdn.com/b/microsoft_press/archive/2010/04/14/free-ebook-introducing-microsoft-sql-server-2008-r2.aspx
Petzolds Programming Windows Phone 7 http://download.microsoft.com/download/5/0/A/50A39509-D015-410F-A8F2-A5511E5A988D/Microsoft_Press_ebook_Programming_Windows_Phone_7_PDF.pdf
Free ebook: Own Your Future: Update Your Skills with Resources and Career Ideas from Microsoft http://blogs.msdn.com/b/microsoft_press/archive/2010/03/03/free-ebook-own-your-future-update-your-skills-with-resources-and-career-ideas-from-microsoft.aspx
Free ebook: Understanding Microsoft Virtualization Solutions (Second Edition) http://blogs.msdn.com/b/microsoft_press/archive/2010/02/16/free-ebook-understanding-microsoft-virtualization-r2-solutions.aspx
Free ebook: Introducing Windows Server 2008 R2 http://blogs.msdn.com/b/microsoft_press/archive/2009/10/20/free-ebook-introducing-windows-server-2008-r2.aspx
Free ebook: Deploying Windows 7, Essential Guidance http://blogs.msdn.com/b/microsoft_press/archive/2009/10/16/free-e-book-deploying-windows-7-essential-guidance.aspx

Friday, December 03, 2010

How to use IIS Compression with Web Services

Using IIS compression with web services is a simple way to provide better performance for your services.  This article will detail implementing this solution in IIS6 and IIS7.

First, you need to ensure that the web service proxy in your application has the following property set to true;

Dim myService as new localhost.service1
myService.EnableDecompression = True

This will ensure that your application takes advantage of the compression.

 

Second, you need to configure IIS compression on your server.  To do this ensure that you have the following installed;image

Then turn compression on in the IIS management console;

image

Then create a bat file in C:\inetpub\AdminScripts and place the following lines of code into the bat file;

IISreset.exe /stop
cscript.exe adsutil.vbs set w3svc/filters/compression/parameters/HcDoDynamicCompression true
cscript.exe adsutil.vbs set w3svc/filters/compression/parameters/HcDoStaticCompression true
cscript.exe adsutil.vbs set W3Svc/Filters/Compression/GZIP/HcFileExtensions "htm" "html" "txt" "ppt" "xls" "xml" "pdf" "xslt" "doc" "xsl" "htc" "js" "css"
cscript.exe adsutil.vbs set W3Svc/Filters/Compression/DEFLATE/HcFileExtensions "htm" "html" "txt" "ppt" "xls" "xml" "pdf" "xslt" "doc" "xsl" "htc" "js" "css"
cscript.exe adsutil.vbs set W3Svc/Filters/Compression/GZIP/HcScriptFileExtensions "asp" "dll" "exe" "aspx" "asmx" "ashx"
cscript.exe adsutil.vbs set W3Svc/Filters/Compression/DEFLATE/HcScriptFileExtensions "asp" "dll" "exe" "aspx" "asmx"
cscript.exe adsutil.vbs set W3Svc/Filters/Compression/DEFLATE/HcScriptFileExtensions "asp" "dll" "exe" "aspx" "asmx"
cscript.exe adsutil.vbs set W3Svc/Filters/Compression/DEFLATE/HcDynamicCompressionLevel "9"
IISreset.exe /restart

This will enable compression on your web service.

The following tool is a easy free application that allows you to compare the difference in your application communication between compressed and uncompressed communications of xml data.

http://devolutions.net/products/TCP-Spy-Net.aspx

image