473,414 Members | 1,590 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,414 software developers and data experts.

Debugger getting confused - any suggestions?

Hi - I have completely rebuilt my PC from scratch and it's running XPsp2 and
VS2003 sp1.

Sometimes when I run my ASP code (this is CLASSIC asp by the way) through
the VS2003 debugger, I get the following error message (the following is an
example):
---------------
Microsoft VBScript compilation (0x800A0408)
Invalid Character
/x/x/x/specificPage.asp, line yyy, column z
abc[]ef = hijk
---------------
- the [] is supposed to represent a square box used to display a non-ASCII
character.

However, the SAVED code line in question is:
abcdef = hij.

To get rid of this problem, I have to re-start IIS and re-start the
debugging process. It usually then falls over on a later line with the same
error message.

As you can imagine, it's a little frustrating, but can't think how best to
go about fixing the problem. Any suggestions would be appreciated (By the
way, this combination of IIS, VS2003 & Classic ASP has worked well for about
2 years now so it's not that they're inheriently incompatible).

Griff
Feb 15 '07 #1
6 1590
Griff wrote:
Hi - I have completely rebuilt my PC from scratch and it's running
XPsp2 and VS2003 sp1.

Sometimes when I run my ASP code (this is CLASSIC asp by the way)
through the VS2003 debugger, I get the following error message (the
following is an example):
---------------
Microsoft VBScript compilation (0x800A0408)
Invalid Character
/x/x/x/specificPage.asp, line yyy, column z
abc[]ef = hijk
---------------
- the [] is supposed to represent a square box used to display a
non-ASCII character.
This has happened to me when I've edited a file in a different editor that
saved the file in unicode format. It has also happened when I've pasted text
that contained unicode characters into an asp file and saved it. The only
way I've ever been able to prevent it is to make sure VS never saves a file
in unicode (it does prompt me when unicode characters are encountered). When
the error occurs, I wind up having to retype the affected portion to get rid
of the unicode character(s).
>
However, the SAVED code line in question is:
abcdef = hij.
Yes, that's what it looks like in the text editor. However, you can rest
assured that there is a unicode character in there.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Feb 15 '07 #2

"Griff" <gr************@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Hi - I have completely rebuilt my PC from scratch and it's running XPsp2
and
VS2003 sp1.

Sometimes when I run my ASP code (this is CLASSIC asp by the way) through
the VS2003 debugger, I get the following error message (the following is
an
example):
---------------
Microsoft VBScript compilation (0x800A0408)
Invalid Character
/x/x/x/specificPage.asp, line yyy, column z
abc[]ef = hijk
---------------
- the [] is supposed to represent a square box used to display a
non-ASCII
character.

However, the SAVED code line in question is:
abcdef = hij.

To get rid of this problem, I have to re-start IIS and re-start the
debugging process. It usually then falls over on a later line with the
same
error message.

As you can imagine, it's a little frustrating, but can't think how best to
go about fixing the problem. Any suggestions would be appreciated (By the
way, this combination of IIS, VS2003 & Classic ASP has worked well for
about
2 years now so it's not that they're inheriently incompatible).
This is unlikely to have anything to do with VS2003 it isn't responsible for
the VBScript parser complaining about an invalid character.

Open the ASP file in question and goto File|Save As... what encoding does
does it think the file is using?

Does the page contain a <%@codepage directive? If so what is it?

Can you give a real example of the error instead of the pretend one you've
given?

The only possible relationship to VS2003 is that it may be saving the files
as UTF-8 instead of an OEM codepage but without a <%@codepage directive (not
recommended in this case unless applied globally to all pages) this could be
confusing the parser.

Feb 15 '07 #3
However, you can rest assured that there is a unicode character in there.

Hi Bob

I'm not sure that is the case though...

The file is often one that hasn't been edited for some weeks. It would have
the ReadOnly property set to TRUE. Restarting IIS then results in the file
being correctly parsed without any change to the file on disc.

Griff
Feb 15 '07 #4
Hi Anthony

Answers below each specific question. Also please refer to my reply to Bob
Barrows
Open the ASP file in question and goto File|Save As... what encoding does
does it think the file is using?
I opened the text file using Notepad and the encoding was ANSI
Does the page contain a <%@codepage directive? If so what is it?
It does not contain a code page directive.
Can you give a real example of the error instead of the pretend one you've
given?
Okay - in the property below the m_Menu1Colour was changed to
m_Menu[]Colour:

Public Property Let Menu1Colour(ByVal sValue)
m_Menu1Colour = sValue
End Property
The only possible relationship to VS2003 is that it may be saving the
files
as UTF-8 instead of an OEM codepage but without a <%@codepage directive
(not
recommended in this case unless applied globally to all pages) this could
be
confusing the parser.
Unfortunately I find no evidence that it is anything other than ANSI
Feb 15 '07 #5
In article <O1**************@TK2MSFTNGP06.phx.gbl>,
Griff <gr************@hotmail.comwrote:
>The file is often one that hasn't been edited for some weeks. It
would have the ReadOnly property set to TRUE. Restarting IIS then
results in the file being correctly parsed without any change to the
file on disc.
I'd recommend a scan for bad memory in your computer. Go to
http://www.memtest.org/ , download the .iso file, burn that to a CD,
and boot off of it. Let it run overnight, and see if it finds
anything.

Nathan Mates

--
<*Nathan Mates - personal webpage http://www.visi.com/~nathan/
# Programmer at Pandemic Studios -- http://www.pandemicstudios.com/
# NOT speaking for Pandemic Studios. "Care not what the neighbors
# think. What are the facts, and to how many decimal places?" -R.A. Heinlein
Feb 15 '07 #6
Nathan

I took your advice and yup - I had a memory problem. Memory duly swapped
and no sign of a problem, so thanks.

One thing to note - before booting from the ISO image you recommended, I
first downloaded a memory tester that works within Windows (obviously not as
thorough but quicker if it identifies the problem) from
http://hcidesign.com/memtest/ . It so happened that this identified the
memory problem immediately, so a bit of a short cut....

Griff
Mar 12 '07 #7

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

Similar topics

6
by: jonathan | last post by:
everyone, I'd like to be able to debug php scripts on the command line, going through the browser. In other words, set up the debugger to listen and then type in a url and have the code stop...
1
by: John H. | last post by:
I installed the Microsoft Script Debugger and set the "Enable Script Debug" flag on in IIS. Also, I made sure that the "Disable Script Debug" flag was off in Internet Explorer. Everything ran...
9
by: alonzo | last post by:
I am working on a piece of javaScript code and using MIE 6.0. I have and error and I would like to use a debugger to locate the error. Is there a debugger for MIE? How do I turn the debugger on...
2
by: dbrans | last post by:
Hi There, Somehow the visual studio debugger is getting confused about which source files belong to which object files. For example, I'll set a breakpoint on line 92 in once source file, but...
9
by: RalphTheExpert | last post by:
I'm getting different behavior if my code is running under the debugger or not. I have modified Winmain to look like this: // Copyright (C) 2002 Microsoft Corporation // All rights reserved....
4
by: Ryan Gaudet | last post by:
Hi, I'm making some minor changes to a VB 6 app that I converted to VB .NET a couple of years ago and I'm running into an issue with a function that is seemingly returning a different result in...
18
by: R. Bernstein | last post by:
Okay, a bit of an exaggeration. Recently, I've been using Python more seriously, and in using the debugger I think one of the first things I noticed was that there is no "restart" ("R" in...
14
by: Andrew Bullock | last post by:
Hi, I had this problem before I reinstalled Windows XP SP2 (fully patched), but I cant remember what I had to do to fix it :( I have a loop which scans every pixel in a series of images. When...
12
by: colin | last post by:
Hi, Ive got a difference in results depending on wether I run my app in the debugger, or run it seperatly (or with <ctrl-f5>) the results in the debugger seem to be more correct, although the...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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...
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...

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.