473,706 Members | 2,582 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.as p, 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 1610
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.as p, 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.comwro te in message
news:%2******** ********@TK2MSF TNGP04.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.as p, 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(ByV al 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.comwro te:
>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
11115
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 before displaying stuff to the browser. Then, step through each individual piece of code, etc, whilst having the output mirrored to either another file or the debugger screen...
1
3387
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 fine for about two months; the Debugger was getting control. Then, all of a sudden, it has stopped getting control. I checked the settings above and they still OK. Anybody can tell me why the Debugger is not getting control? Should I report this...
9
2151
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 for MIE? Where can I locate the debugger for MEI 6.0? I am using WIN 98 operating system.
2
1370
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 the debugger will break execution on line 92 in another source file. I've tried doing a clean build and I've tried remaking my project files. Does anyone have information on how the debugger links source files to object files?
9
2314
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. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER // EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
4
1504
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 the debugger than when I run the exe. The code in question is this; iniFileName = Replace(System.Reflection.Assembly.GetExecutingAssembly.Location, ".exe", "") & ".ini"
18
2960
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 perldb) or "run" (gdb) command. I was pleasantly pleased discover how easy though it was patch pdb.py and pdb.doc; my patch for this is here: http://sourceforge.net/tracker/index.php?func=detail&aid=1393667&group_id=5470&atid=305470
14
1740
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 compiled it completes 10 images in about 6 seconds, which is acceptable and as expected. When i run it through VS it does about 1 frame every 10 seconds.
12
1600
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 app isnt finished and theres still a lot of things it gets wrong. the processing is so complex its hard to determine where the difference can be occuring, its a visual display of 3d models, and theres a couple of surfaces
0
8697
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9285
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...
1
9053
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8995
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
5939
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
4449
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...
0
4709
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2502
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2095
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.