WebMasterSam

.Net, SEO, Dynamics CRM, AdSense/AdWords, Dating sites, Silverlight, Web hosting and more
PPC management, Online Marketing, Search Marketing, SEO, Website development - dotmedias.com

About me

I'm an IT consultant working primarily with the .Net Framework as a developper and architect. I also work on my own on my personnal dating websites. I've been developping websites since 2000.

If you like what I do, feel free to support me

PayPal - The safer, easier way to pay online!

Bookmark

Bookmark and Share

Sponsored links

Amazon hot deals

Computer releases

Last comments

None

Solution for "The server committed a protocol violation: Section=ResponseStatusLine"

If you get an error like "The server committed a protocol violation", you may have some of the following problem (which can be solved by one of the provided solution as well).

Unsafe header parsing

Unsafe header parsing is an option you can turn on on your ASP.Net website (in the web.config) to allow the framework to parse responses. But what is an unsafe header ? It is a header in which the keys contains one or more spaces (that is not allowed in the HTTP 1.1 specifications).

The common case is having a space in the "content-length" header key. The server actually returns a "content length" key, which, assuming no spaces are allowed, is considered as an attack vector (HTTP response split attack), thus, triggering a "HTTP protocol violation error" exception.

To allow the parsing of unsafe headers, add the following to your web.config :


<system.net>
   <settings>
      <httpWebRequest useUnsafeHeaderParsing="true" />
   </settings>
</system.net>

You forgot to allow HttpGet and/or HttpPost on your web.config

If you call a WebService, you must accept the HttpGet and/or HttpPost protocols in your web.config (they are disabled by default).

So add the following to your web.config file :


<configuration>
  <system.web>
    <webServices>
      <protocols>
        <add name="HttpGet"/>
        <add name="HttpPost"/>
      </protocols>
    </webServices>
  </system.web>
</configuration>

You're using Skype

If you use Skype, make sure to uncheck the option for using port 80 and 443.

None of the above: find it yourself

If this has not helped, use the following links to help you find the answer :

Configure network tracing : http://msdn2.microsoft.com/en-us/library/ty48b824.aspx

Interpreting a network trace : http://msdn2.microsoft.com/en-us/library/46fcs6sz.aspx

Posted: Jul 03 2009, 15:37 by WebMasterSam | Comments (0) RSS comment feed |
  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Filed under: .Net | Programming
Social Bookmarks: E-mail | Kick it! | DZone it! | del.icio.us

Culture ID 2155 (0x086B) is not a supported culture

I recently came across a VERY annoying problem on my personnal (this one) BlogEngine.Net blog.

What happened is that I installed some Windows Updates (a bunch) on my Windows Server 2003 server and then, every time I accessed an article of this blog I received this error message : Culture ID 2155 (0x086B) is not a supported culture. What a real annoying problem !!

I don't know the exact reason but what I know is that cultures are OS specific, so the Windows Update is the cause... it's not related to the .Net Framework so don't waste your time trying to reinstall the framework, it will not work.

The Solution...

Resintall the Service Pack 2 for your Windows Server 2003.

LINK BUILDING IS PROHIBITED ON THIS WEBSITE