Home > Uncategorized > Configuration files for .NET DLL’s

Configuration files for .NET DLL’s

When performing a HTTP web request against a certain website, I get a protocol violation error. I’ve read that this is caused by a malformed header coming back from the server. (i.e. missing HTTP status tag).

I managed to fix this in asp.net code by affing useUnsafeHeaderParsing=true in the web.config, but how do I do this in a dll. there’s no such thing as a .dll.config?

Well, I did find a work around for the protocol violation, by installing VS 2003, .NET 1.1, added an app.config file to the project with useUnsafeHeaderParsing set.

 

Advertisements
Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: