useUnsafeHeaderParsing(WebRequest) in Win app.config

G

Guest

I use WebRequest.Create/WebRequest.GetResponse to handle HTTP request in a
VS2003 project. I got HTTP violation exception on some of the machine. So I
did the research, and found to put <useUnsafeHeaderParsing ="true"> in
app.config can fix the problem.

But the app.config cause problem on other machines which work fine without
application config file. The exception is <Unrecognized attribute
'useUnsafeHeaderParsing'>. I use framework1.1 on this machine. Install
framework2.0 did not fix the problem.

Because my application will distribute to other users machine, the users is
not IT professional. How could I fix the problem with a simple installation,
other than manually change configuration on end user machine?

Thanks.
 
G

Guest

I believe from checking the documentation that useUnsafeHeaderParsing is new
in .NET 2.0. You might try taking any of the offending control or other
characters in your post that may be causing this and converting them to their
"HTML - safe" entity references instead.
--Peter
 
G

Guest

Peter,

Why some of the machines didn't throw exception on useUnsafeHeaderParsing?
These machine only have Framework 1.0 and 1.1 installed.

I searched newsgroup, some guys have the same problem, but I cannot reconize
German. Something related to Framework 1.1 SP1.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top