Moving Blog

I am moving my blogs to here: http://jsandersblog.azurewebsites.net/ so update any links!

0

Troubleshooting ASP.NET – The remote certificate is invalid according to the validation procedure

This error message is caused because the process is not being able to validate the Server Certificate supplied by the Server during an HTTPS (SSL) request.  The very first troubleshooting step should be to see if the server supplied certificate and every certificate in the chain is trouble free. Example 1 – Root Certificate only…

42

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…

33

WCF Client Inner Exception: "The Security Support Provider Interface (SSPI) negotiation failed."

Creating a WCF Client in Visual Studio 2010, I struggled with this error.  I was running as the currently logged on user and the service was as well so this made no sense to me.  I found that this entry in the client app.config was the culprit: <identity><userPrincipalName value=”MYDOMAIN\MyUsername” /></identity> Simply deleting these 3 lines…

23

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

ASP.NET asp:menu does not display Child Menu items in IE 8

Strange.  I found in my personal website the Child menus were not showing when I hovered over the root menu item. There is nothing special about the menus.  They are standard asp:menu items created when I dragged the menu tool from the navigation tools in Visual Studio 2008. UPDATE: Fix http://support.microsoft.com/kb/962351 Has the hotfix to…

18

Configuring Fiddler to be a proxy for Android Emulators in Eclipse

I struggled with getting Fiddler to work with the emulators shipped with Eclipse.  Here is a quick reference for you to get Fiddler installed so you can debug HTTP and HTTPS traffic. Install and configure Fiddler Install Fiddler from this link: http://fiddler2.com Start Fiddler (Windows Key then type Fiddler if you cannot find it on…

18

The ServicePointManager does not support proxies of https scheme (.NET 1.1 SP1)

This was an interesting error that I had to hunt down.  When specifying a proxy server in .NET like this: WebProxy(“https://someproxyserver”) you will get this error.  You will get this error for whatever scheme that you enter before the “://” characters.  For example if you use this: WebProxy(“somescheme://someproxyserver”) Then you will get the error message:…

15

Understanding MaxServicePointIdleTime and DefaultConnectionLimit

To understand these settings you need to understand how the HttpWebRequest class relates to the ServicePointManager and ServicePoint classes.  When you make a request with the HttpWebRequest class, the ServicePointManager provides a ServicePoint object to the HttpWebRequest object to handle the connection to a web resource (web server).  This ServicePoint object manages all the requests…

13