CSharp/Services/HttpServiceHelper/Get

    Q1:
    Exception	Exception thrown: 'System.InvalidOperationException' in System.dll ("The key 'LocalizedPerfCounter' does not exist in the appSettings configuration section.")	System.InvalidOperationException

    KB2783767 补丁引起
    http://support.microsoft.com/kb/2783767
    解决方案:

    <configuration>
        <appSettings>
            <add key="LocalizedPerfCounter" value="true" />
        </appSettings>
    </configuration>

    Q2:Exception	Exception thrown: 'System.IO.IOException' in mscorlib.dll ("The specified registry key does not exist.")	System.IO.IOException
    http://support.microsoft.com/kb/2745030    
    解决方案:另存 ***.reg 导入

    Windows Registry Editor Version 5.00

    ; The following value prevents an IOException from being thrown and caught
    ; by System.Net.HybridWebProxyFinder.InitializeFallbackSettings() (in System.dll)
    ; when WebRequest.Create is first called.  By default the "LegacyWPADSupport"
    ; value doesn't exist, and when InitializeFallbackSettings calls GetValueKind,
    ; an IOException is thrown.  This adds the value with its default of false to
    ; prevent the exception.
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework]
    "LegacyWPADSupport"=dword:00000000
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework]
    "LegacyWPADSupport"=dword:00000000