473,396 Members | 1,864 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

useUnsafeHeaderParsing(WebRequest) in Win app.config

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.

Dec 30 '05 #1
2 4015
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

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"MikeZ" wrote:
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.

Dec 30 '05 #2
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.
Jan 3 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Arsen V. | last post by:
Hello, Based on the information provided by http://support.microsoft.com/?kbid=KB888527 one should be able to add a useUnsafeHeaderParsing attribute to the <httpWebRequest> element in the...
1
by: Arsen V. | last post by:
Hello, Based on the information provided by http://support.microsoft.com/?kbid=KB888527 one should be able to add a useUnsafeHeaderParsing attribute to the <httpWebRequest> element in the...
1
by: MikeZ | last post by:
I post this question last week, no good answer, so I post again. Sorry about this. I use WebRequest.Create/WebRequest.GetResponse to handle HTTP request in a VS2003 project. I got HTTP violation...
0
by: Howard | last post by:
I would like to use useUnsafeHeaderParsing=true in my app. So far it works by having an app.config file. I would like to have a single exe file and set this property in the source code. <?xml...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.