How to take a System.Net trace from Windows Store applications (Developer Preview)

In desktop applications and services we frequently take System.Net traces to diagnose issues using the HttpWebRequest class, HttpListener, sockets, smpt etc… (and now the HttpClient classes).  We traditionally use the application configuration file (appname.exe.config) to enable the tracing.  The config file is read and the tracing parameters are used to trace the information we find…

0

Windows 8 on Acer Aspire One Netbook – Screen Resolution etc…

I was anxious to see what real memory usage would look like on my low end netbook.  It was better than Windows 7!  Less than 500M.  One problem I had was the native resolution of my netbook is1024X600 and the will not load Windows Store applications at that resolution.  I found a registry setting however to…

20

A simple WildCard mapped ISAPI extension, to remove a header

I needed a simple WildCard Extension to remove a header and could not find one.  This needs a little more error checking code but can get the job done.  If you use it and add some enhancements or find problems, let me know and I will tune up the example! #include <windows.h>#include <httpext.h> // basic…

0

You cannot use Geolocation (Geo-location) in an IE 9 WebBrowser control

If you build a WebBrowser control based application you will notice that Geolocation does not work properly. You do not get the prompt to accept the website “wants to track your physical location”. Because you do not get that prompt, you cannot accept this security prompt and you will not be able to use Geolocation….

0

How To: Set the proxy for the WebBrowser control in .NET

I see some horrible solutions for this out on the web.  Most involve setting the proxy for the entire machine and then toggling it back off.  Here is a class that will allow you to set it ONLY FOR THE PROCESS that the control is hosted in.  You could call it like this: WinInetInterop.SetConnectionProxy(“localhost:8888”); and…

29

Failed to install Visual Studio Update KB2455033

I had trouble installing this update this morning.  I found that since I had installed the Windows 7.1 SDK as well, I had to first install Microsoft Visual C++ 2010 Service Pack 1 Compiler Update for the Windows SDK 7.1 KB2519277.  This seemed to allow the other update work fine! Let me know if this…

2

Super secret. How to decode Base64 Basic Authentication!

OK, really not that secret.  Basic Authentication headers are pretty simple.   When the server returns 401 and the header: WWW-Authenticate: Basic.  The server wants you to send the username and password in this format:  jeff:mypassword and then encode this as a Base64String.  You can encode this with this code: string secret = Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(“jeff:mypassword”));.  To decode a username and password from…

2

Using a Client certificate when moving from the 2.0 to 4.0 Framework – The request was aborted, cannot create SSL/TLS secure channel

Code that was working on a machine with the 2.0 (3.5) version of the .NET framework all of a sudden failed when this was flipped to the 4.0 version of the framework.  The end error was “The request was aborted, cannot create SSL/TLS secure channel” and “AcquireCredentialsHandle() failed with error 0X8009030D”.  This code imported a…

1

Certificate Revocation List (CRL) Check and WinHttp Proxy settings

Starting with Windows XP SP2, the Crypto API CRL check uses WinHttp (see: http://support.microsoft.com/kb/887196).  This can cause some confusion with network administrators and developers since they might have set proxy information for WinInet or applications using CryptoAPIs but the certificate validation fails for the https calls inside certain networks. To allow the CRL check out…

4