By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,677 Members | 1,060 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,677 IT Pros & Developers. It's quick & easy.

VS8 bug? something corrupted my Default.aspx

P: n/a
I started seeing huge amounts of error messages such as "Validation (XHTML
1.0 Transitional):" Element schema is not supported". There was nothing
wrong with that for 3 weeks and suddenly there is.

======check out this bug=========

OK: I have the following code and the phrase khaki is underlined in red as
VS8 thinks something is wrong:

<input id= .... height: 24px; background-color: khaki;"
<input id= .... height: 24px; background-color: khaki;"

the error message on hitting F5 is (there are two of them)
========two identical error messages about khaki being wrong=====
Error 68 CSS validation: 'khaki' is not a valid value for property
'background-color'.
C:\projects\Projects\R9619_NChannelDetection\VS200 5_WebSite\Default.aspx 323
==== BTW, khaki was correctly colored even though the error says it is
invalid=====

OK, i change the *FIRST* khaki to blue, now VS show the following error
message (note the mis-spelling of background)

Error 67 CSS validation: 'khaki' is not a valid value for property
'ackground-color:'.
C:\projects\Projects\R9619_NChannelDetection\VS200 5_WebSite\Default.aspx 323

====== VS8 improperly removed the letter "b" from the phrase
background-color

OK, I then renamed Default.aspx to d.bin and opened it up with wordpad. I
see about 10 strange japanese/chinese characters scattered about my source
code seemingly at random locations:
http://stateson.net/pub/bug1.jpg
http://stateson.net/pub/bug2.jpg

I paste that strange character into notepad and try to save it and I am told
it is unicode and the formatting will be lost. OK, i see where encoding is
specified as utf-8 so possibly those character belong in my file? If so,
why are they seemingly at random location? Maybe I should get rid of them.
Some are exactly in the middle of a phrase, others are off by themselves.
For example, "VerticalAlign" the t is a strange chinese character. It only
shows up in wordpad. I dont see the "t". If I delete the strange character
then I am missing the "t" If I put a 't' back in, it shows up as a 't' and
not a strange character.

Also are they really there? I ran d.bin thru a hexdump "C" utility that
uses getch() and prints the hex value and where those strange characters
were (in Default.aspx), I only see spaces in my hex dump. None of those
characters show up. Nor do they show up if I use notepad to open d.bin,
only if I use wordpad to open d.bin (or Default.aspx)

====================bug continued==============

I go back to the first color: "blue" and change it to a color that has 5
letters instead of 4 and suddenly I now get the correct 'khaki' is not a
valid value for property 'background-color:'
====VS8 has now properly spelled background======

...anyway, I am clueless how to fix this. Probably will delete the entire
panel and/or work backwards to where all those error messages about "Element
xxxx is not supported" are gone.
Nov 15 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
I've experienced this in some larger products, myself, also.
If you go back to the Design View for that page, then build and run, those
errors disappear for me....haven't had time to search for the reasons why
yet.

--
David Wier
MVP/ASPInsider
http://aspnet101.com
http://aspexpress.com

"Beemer Biker" <js*******@swri.eduwrote in message
news:12*************@corp.supernews.com...
I started seeing huge amounts of error messages such as "Validation
(XHTML
1.0 Transitional):" Element schema is not supported". There was nothing
wrong with that for 3 weeks and suddenly there is.

======check out this bug=========

OK: I have the following code and the phrase khaki is underlined in red
as
VS8 thinks something is wrong:

<input id= .... height: 24px; background-color: khaki;"
<input id= .... height: 24px; background-color: khaki;"

the error message on hitting F5 is (there are two of them)
========two identical error messages about khaki being wrong=====
Error 68 CSS validation: 'khaki' is not a valid value for property
'background-color'.
C:\projects\Projects\R9619_NChannelDetection\VS200 5_WebSite\Default.aspx
323
==== BTW, khaki was correctly colored even though the error says it is
invalid=====

OK, i change the *FIRST* khaki to blue, now VS show the following error
message (note the mis-spelling of background)

Error 67 CSS validation: 'khaki' is not a valid value for property
'ackground-color:'.
C:\projects\Projects\R9619_NChannelDetection\VS200 5_WebSite\Default.aspx
323
>
====== VS8 improperly removed the letter "b" from the phrase
background-color

OK, I then renamed Default.aspx to d.bin and opened it up with wordpad. I
see about 10 strange japanese/chinese characters scattered about my source
code seemingly at random locations:
http://stateson.net/pub/bug1.jpg
http://stateson.net/pub/bug2.jpg

I paste that strange character into notepad and try to save it and I am
told
it is unicode and the formatting will be lost. OK, i see where encoding
is
specified as utf-8 so possibly those character belong in my file? If so,
why are they seemingly at random location? Maybe I should get rid of
them.
Some are exactly in the middle of a phrase, others are off by themselves.
For example, "VerticalAlign" the t is a strange chinese character. It
only
shows up in wordpad. I dont see the "t". If I delete the strange
character
then I am missing the "t" If I put a 't' back in, it shows up as a 't'
and
not a strange character.

Also are they really there? I ran d.bin thru a hexdump "C" utility that
uses getch() and prints the hex value and where those strange characters
were (in Default.aspx), I only see spaces in my hex dump. None of those
characters show up. Nor do they show up if I use notepad to open d.bin,
only if I use wordpad to open d.bin (or Default.aspx)

====================bug continued==============

I go back to the first color: "blue" and change it to a color that has 5
letters instead of 4 and suddenly I now get the correct 'khaki' is not a
valid value for property 'background-color:'
====VS8 has now properly spelled background======

..anyway, I am clueless how to fix this. Probably will delete the entire
panel and/or work backwards to where all those error messages about
"Element
xxxx is not supported" are gone.


Nov 15 '06 #2

P: n/a
xhtml does not supprt any named colors, thus the message. neither IE nor
firefox are xhtml browsers, so they support named colors (even when the html
is specified as xhtml). you probably added the xhtml doc tag which turns on
validation. you can ignore these errors, as the browser does, or fix them
up.

-- bruce (sqlwork.cm)
"Beemer Biker" <js*******@swri.eduwrote in message
news:12*************@corp.supernews.com...
>I started seeing huge amounts of error messages such as "Validation (XHTML
1.0 Transitional):" Element schema is not supported". There was nothing
wrong with that for 3 weeks and suddenly there is.

======check out this bug=========

OK: I have the following code and the phrase khaki is underlined in red
as VS8 thinks something is wrong:

<input id= .... height: 24px; background-color: khaki;"
<input id= .... height: 24px; background-color: khaki;"

the error message on hitting F5 is (there are two of them)
========two identical error messages about khaki being wrong=====
Error 68 CSS validation: 'khaki' is not a valid value for property
'background-color'.
C:\projects\Projects\R9619_NChannelDetection\VS200 5_WebSite\Default.aspx
323
==== BTW, khaki was correctly colored even though the error says it is
invalid=====

OK, i change the *FIRST* khaki to blue, now VS show the following error
message (note the mis-spelling of background)

Error 67 CSS validation: 'khaki' is not a valid value for property
'ackground-color:'.
C:\projects\Projects\R9619_NChannelDetection\VS200 5_WebSite\Default.aspx
323

====== VS8 improperly removed the letter "b" from the phrase
background-color

OK, I then renamed Default.aspx to d.bin and opened it up with wordpad. I
see about 10 strange japanese/chinese characters scattered about my source
code seemingly at random locations:
http://stateson.net/pub/bug1.jpg
http://stateson.net/pub/bug2.jpg

I paste that strange character into notepad and try to save it and I am
told it is unicode and the formatting will be lost. OK, i see where
encoding is specified as utf-8 so possibly those character belong in my
file? If so, why are they seemingly at random location? Maybe I should
get rid of them. Some are exactly in the middle of a phrase, others are
off by themselves. For example, "VerticalAlign" the t is a strange chinese
character. It only shows up in wordpad. I dont see the "t". If I delete
the strange character then I am missing the "t" If I put a 't' back in,
it shows up as a 't' and not a strange character.

Also are they really there? I ran d.bin thru a hexdump "C" utility that
uses getch() and prints the hex value and where those strange characters
were (in Default.aspx), I only see spaces in my hex dump. None of those
characters show up. Nor do they show up if I use notepad to open d.bin,
only if I use wordpad to open d.bin (or Default.aspx)

====================bug continued==============

I go back to the first color: "blue" and change it to a color that has 5
letters instead of 4 and suddenly I now get the correct 'khaki' is not a
valid value for property 'background-color:'
====VS8 has now properly spelled background======

..anyway, I am clueless how to fix this. Probably will delete the entire
panel and/or work backwards to where all those error messages about
"Element xxxx is not supported" are gone.


Nov 15 '06 #3

P: n/a
Thanks David and Bruce. Switching to design and back can clear error
messages and named colors actually work but are flagged as errors during
validation using xhtml 1.0

1. Got rid of the strange chinese characters by deleteing them and
replaceing them with the correct character. When I saved Default.aspx from
wordpad (where I did the editing) I was warning the format was being lost.
I do not know how they got in the code in the first place and the
mis-spelling of "ackground-color" is a VS8 bug I would think irregardless.
All pages works fine without those strange characters.

2. Got rid of all the error messages. Some time ago we installed 3rd party
postgresql drivers and a few days ago admin found the drivers would cost $99
so I uninstalled them. Seems the uninstall didnt remove schema code from
the page that was put in when I was evaluating their sql objects. I didnt
actually use them in my design so I assume that is why the pages all work ok
(they are never executed).

So admin saved $99 for the license cost, but paid much more than that in
my debug time figuring out what was going wrong. Nice.
I would think that if the validator is set to 1.0 and the doc is 1.0, then
the style designer would gray out "named colors" as an option???? blue and
green can be named, but khaki cannot ???? Anyway I can compile and run
without any errors.

--
================================================== =====================
Beemer Biker joestateson at grandecom dot net
http://TipsForTheComputingImpaired.com
http://ResearchRiders.org Ask about my 99'R1100RT
================================================== =====================

Nov 15 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.