473,748 Members | 2,502 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

The '%' character, hexadecimal value 0x25

All,

Any valuable idea about subj: "The '%' character, hexadecimal value 0x25" ?
I tried to google, but nothing interesting was found.

Is it IIS settings problem, user side problem or whatever? We receive it
regularly and I guess the problem is not in our source codes. Please help!

Just D.
Jan 31 '07 #1
5 11658
Just D wrote:
All,

Any valuable idea about subj: "The '%' character, hexadecimal value 0x25" ?
I tried to google, but nothing interesting was found.

Is it IIS settings problem, user side problem or whatever? We receive it
regularly and I guess the problem is not in our source codes. Please help!

Just D.
What is the problem?

Is it a part of an error message? If so, you should show the entire
error message, and explain when and where it appears.

The % character has the hexadecimal character value 0x25, that is
correct. There is nothing wrong with that.

One place that I can think of where you might have problems with this
character, is if you haven't correctly encoded values in an URL. The %
character is used to encode characters in an URL. It's followed by two
hexadecimal digits that is the character code. To use the actual %
character in an URL, you have to encode it as %25. If the % character
appears in an URL without being followed by two hexadecimal characters,
the URL can't be decoded correctly, and you might get an error message
that looks something like what you mentioned.

/Göran Andersson
_____
http://www.guffa.com
Jan 31 '07 #2
I'm not sure if it really helps but this is the much more complete.

Just D.

Message:
-----------------
The '%' character, hexadecimal value 0x25, cannot begin with a name. Line 1,
position 2667.

Target Site:
-----------------
Boolean LoadPostData(Sy stem.String,
System.Collecti ons.Specialized .NameValueColle ction)

Stack Trace:
-----------------
at Infragistics.We bUI.UltraWebGri d.UltraWebGrid. LoadPostData(St ring
postDataKey, NameValueCollec tion values)
at System.Web.UI.P age.ProcessPost Data(NameValueC ollection postData, Boolean
fBeforeLoad)
at System.Web.UI.P age.ProcessRequ estMain()

ContentSizeSent (just an example):
-----------------
240903

CurrentInputStr eam (just an example):
-----------------
212719

HttpMethod:
-----------------
POST

ServerVariables :
-----------------
ALL_HTTP=HTTP_C ACHE_CONTROL%3a no-cache%0d%0aHTTP _CONNECTION%3aK eep-Alive%0d%0aHTTP _CONTENT_LENGTH %3a240903%0d%0a HTTP_CONTENT_TY PE%3aapplicatio n%2fx-www-form-urlencoded%0d%0 aHTTP_ACCEPT%3a image%2fgif%2c+ image%2fx-xbitmap%2c+imag e%2fjpeg%2c+ima ge%2fpjpeg%2c+. ..

ContentType (always):
-----------------
application/x-www-form-urlencoded

UserLanguage (always):
-----------------
en-us

UserAgent (always IE, some differencies):
-----------------
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322)
Mozilla/4.0 (compatible; MSIE 7.0; AOL 9.0; Windows NT 5.1; .NET CLR
1.1.4322)
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; .NET CLR
1.1.4322; .NET CLR 2.0.50727)
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET
CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; IEMB3; IEMB3)
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET
CLR 1.1.4322; Media Center PC 4.0; InfoPath.1; IEMB3; IEMB3)
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705;
..NET CLR 1.1.4322)
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Tablet PC 1.7; .NET CLR
1.0.3705; .NET CLR 1.1.4322)
UrlReferred:
-----------------
always same as CurrentExecutio nPath. The same UrlReferrer tells me that the
page was going to be refreshed or something like that. Maybe I'm wrong.

"Göran Andersson" <gu***@guffa.co mwrote in message
news:uH******** ******@TK2MSFTN GP03.phx.gbl...
Just D wrote:
>All,

Any valuable idea about subj: "The '%' character, hexadecimal value 0x25"
? I tried to google, but nothing interesting was found.

Is it IIS settings problem, user side problem or whatever? We receive it
regularly and I guess the problem is not in our source codes. Please
help!

Just D.

What is the problem?

Is it a part of an error message? If so, you should show the entire error
message, and explain when and where it appears.

The % character has the hexadecimal character value 0x25, that is correct.
There is nothing wrong with that.

One place that I can think of where you might have problems with this
character, is if you haven't correctly encoded values in an URL. The %
character is used to encode characters in an URL. It's followed by two
hexadecimal digits that is the character code. To use the actual %
character in an URL, you have to encode it as %25. If the % character
appears in an URL without being followed by two hexadecimal characters,
the URL can't be decoded correctly, and you might get an error message
that looks something like what you mentioned.

/Göran Andersson
_____
http://www.guffa.com

Jan 31 '07 #3
>The % character has the hexadecimal character value 0x25, that is
>correct. There is nothing wrong with that.

One place that I can think of where you might have problems with this
character, is if you haven't correctly encoded values in an URL. The %
I'm not using URL for anything. Yes, I'm keeping the URLs, actually the page
names for the menu to generate the menu on the fly, but that's different and
since the menu is created in the very beginning of the session it should not
be modified during the session at least if I didn't force that globally. I
didn't. Also same app/code works for many users same way and the users are
mostly not having any problems with this issue. I noticed that there are
only 4 pages from over 100 having this issue, but I maybe wrong because
these pages are mostly using by the clients and statistics is not complete
enough. Maybe it's because of some poor connection, but I guess not, the
pages are not huge, we were working with much bigger ones without any
problems, 300-400 kbytes for the fast Internet connection is nothing. The
client side serialization? Then it's a bug somewhere else, but not in our
code. Infragistics controls? I don't think so, maybe in this particular
case, but I've seen some examples on the internet with absolutely same error
message and different reason like wrong Firewall Settings, XML
serialization, wrong reference to the page instead to an external XML file,
etc. That's all I saw on the Internet, but it has nothing to my code. I'm
not serialiaing anything here and finally it mostly works fine giving us
exceptions from time to time, approximately 2-3 times per day, but very
annoying.

Any more ideas?

Just D.
>character is used to encode characters in an URL. It's followed by two
hexadecimal digits that is the character code. To use the actual %
character in an URL, you have to encode it as %25. If the % character
appears in an URL without being followed by two hexadecimal characters,
the URL can't be decoded correctly, and you might get an error message
that looks something like what you mentioned.

/Göran Andersson
_____
http://www.guffa.com


Jan 31 '07 #4
Just D wrote:
I'm not sure if it really helps but this is the much more complete.

Just D.

Message:
-----------------
The '%' character, hexadecimal value 0x25, cannot begin with a name. Line 1,
position 2667.

Target Site:
-----------------
Boolean LoadPostData(Sy stem.String,
System.Collecti ons.Specialized .NameValueColle ction)
[snip]
>
ContentSizeSent (just an example):
-----------------
240903
[snip]
>
HttpMethod:
-----------------
POST
[snip]
>
ContentType (always):
-----------------
application/x-www-form-urlencoded
That's a better error message. :)

I kept the most interresting parts of it in the reply.

It's telling you that there is an error in the URL encoded data at the
2667th character. As the error occurs in the LoadPostData method, there
is a problem when decoding the form data that is sent in the request.

The form data is URL encoded, you can even see that specified in the
content type. The error comes because the form data in the request is
broken.

If the error occurs frequently, and only ever with IE, that suggests
that there is either a bug in the browser, or you are doing something
that the browser was not built for.

It's a pretty large request you are getting. A normal postback would
only be a few kilobytes. Do you have a huge viewstate in the pages?

--
Göran Andersson
_____
http://www.guffa.com
Feb 1 '07 #5
HI Göran,

Thank you for your answer!

"Göran Andersson"
I kept the most interresting parts of it in the reply.
It's telling you that there is an error in the URL encoded data at the
2667th character. As the error occurs in the LoadPostData method, there is
a problem when decoding the form data that is sent in the request.
Yea, I suspect that and I'm going to save the stream upon this exception to
analyze it later because it seems I have no choice but to do that.
The form data is URL encoded, you can even see that specified in the
content type. The error comes because the form data in the request is
broken.
Maybe it's Infragistics controls, particularly the DataGrid that can't
accept some info inside. I tested the database and didn't find anything
suspicious. The whole stream would be more comprehensive, but it should
significantly slow the whole app down and I will do that if I have no any
other ways.
If the error occurs frequently, and only ever with IE, that suggests
Frequently means...? Over 70 times per month is so frequently? :)
that there is either a bug in the browser, or you are doing something that
the browser was not built for.
Well, it has a lot of bugs and we know that, especially after December's
"improvemen ts".
It's a pretty large request you are getting. A normal postback would only
be a few kilobytes. Do you have a huge viewstate in the pages?
Normal for whom? We need to show the patient list, some more details, get
the schedule information, and something else. It's not looking very large,
it's real data and it's already truncated where possible.
Göran Andersson
Thanks,
Just D.
Feb 1 '07 #6

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

Similar topics

3
22367
by: Todd | last post by:
Our ASP.NET (C#) application accepts form entry and saves inputed data in XML. We are finding that users are sometimes cutting and pasting special characters (from MS Word) into these forms. The data is saved successfuly, but when the XML is later read the following error is encountered depending on the invalid character found: This is a sample:
2
8166
by: Pushpendra | last post by:
I am storing the encrypted password in xml file which I have saved in unicode format. While I try to read the xml file and create a dataset from it, it shows me the following error System.Xml.XmlException: The '{' character, hexadecimal value 0x7B, cannot begin with a name. The xml tag that I want to read is below: <DSNNAME>, ($»<{Å `Ê®A]]'Ã</DSNNAME> I will be very much thakful If someone writes about the solution for this...
1
10158
by: King Kong | last post by:
we are facing this kind of error when we double click the infragistic web grid please help me on this Regards Moid Iqbal Server Error in '/NetworkAccess' Application. ---------------------------------------------------------------------------- ----
6
32007
by: jasn | last post by:
Hello I am getting the following error message when I try and send an XML sting to a web service, I read somewhere that most web services prefer ascii and some throw errors when using unicode so I have changed the encoding but still cant get rid of the error. System.Xml.XmlException: '', hexadecimal value 0x00, is an invalid character. Line 6, position 124. at System.Xml.XmlScanner.ScanHexEntity() at...
23
3188
by: Akhil | last post by:
Since a character constant is an int value represented as a character in single quotes,so it is treated as a 1 byte integer now look at the following snippet. #include<stdio.h> int main(void) { char a='Abbc'; printf("%c",a);
2
12315
by: theonlyzahid | last post by:
Hi, I am getting his weired error when i open my webpage. Parser Error Message: '<', hexadecimal value 0x3C, is an invalid attribute character. Line 13, position 68. Source Error:
1
29107
by: Mike9900 | last post by:
I am getting The ' ' character hexadecimal value 0x20, cannot be included in a name in the following module: public XmlRegistryKey GetSubKey(string path, bool createpath) { XmlElement e = Elem, parent = null; for (int len, start = 0; start < path.Length; start += len + 1) { len = path.IndexOf('/', start); if (len == -1)
2
16259
by: jerrysc99 | last post by:
I'm getting the following error below. System.Configuration.ConfigurationException: '<', hexadecimal value 0x3C, is an invalid attribute character. Line 8, position 68. (c:\inetpub\wwwroot\essential-ehs\e6dataimporter\bin\e6dataimportservice.exe.config line 8) ---> System.Xml.XmlException: '<', hexadecimal value 0x3C, is an invalid attribute character. Line 8, position 68. <configuration> <appSettings> <add key="MessageQueueName"...
11
1918
by: Fred Chateau | last post by:
I found the following code in an online tutorial, and I'm having some difficulty understanding it. Unfortunately, it did not list any expected output examples for val. What type is val? Is this statement comparing, adding, and subtracting ASCII numbers? if ('0' <= ch && ch <= '9') val = ch - '0'; else if ('A' <= ch && ch <= 'Z') val = 10 + ch - 'A'; else {val = 0; Console.WriteLine("invalid character {0}", ch);}
0
8987
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9534
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9241
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8239
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6793
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6073
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4597
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2777
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2211
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.