473,465 Members | 1,570 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

VS8 bug? something corrupted my Default.aspx

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
3 1854
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Byron | last post by:
I am uploading a JPG file using FTP to a remote server and often the file is corrupted at the server end. The file size is the same, but the image often has a block of garbage embedded, or the...
3
by: Leinad Kong | last post by:
I'm using Access 2002, as front-end and back-end as well: 1) I faced database corrupted problems, when more than 1 user edit concurrently. I'm using All-records Locking, and open-exclusively as...
3
by: Gvnn | last post by:
Hi, I've a little problem, i've an asp.net page, with a runat server form, like this: <%@ Page Language="vb" AutoEventWireup="false" Codebehind="index.aspx.vb" Inherits="indexGstPro"%> <HTML>...
2
by: Ben Rush | last post by:
Hello World, Okay, I have spent the day browsing the newsgroups and reading up on article after article concerning ViewState corruption and so forth, and I have a couple questions. We...
2
by: Brad | last post by:
I have an intranet app that has just started sporadically getting the following error "The viewstate is invalid for this page and might be corrupted." By sproadic I mean 3-4 times during the past...
1
by: Jelle Huygen | last post by:
Hello, I have developped a webapplication and I keep on getting this error: Source: System.Web Method name: LoadPageStateFromPersistenceMedium Message: The viewstate is invalid for this page...
5
by: Anup Jishnu | last post by:
Hi, I have installed ASP.Net application on a system. When accessing the Application from within the LAN, it works fine. However, when I access the application from the Internet, some pages...
2
by: Magdelin | last post by:
Hi, I get a Viewstate corrupted error on the Web servers(Win2K3, IIS 6.0, Application Center 2K SP1, ASP.NET) configured for NLB with no afinity/sticky sessions. ****Note: The servers are...
3
by: Nathan Sokalski | last post by:
I am recieving the following error on the second postback of a page I have written: The state information is invalid for this page and might be corrupted Stack Trace: ...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
1
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
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...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.