473,405 Members | 2,338 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,405 software developers and data experts.

% Character is not valid.

I get the following error:-

c:\inetpub\wwwroot\ \analysis.aspx(1): Character is not
valid.
^^^
(not a gap here, but I want to keep the folder name private)

from the fist percent character in:-

<%@ Page strict=true codeBehind="analysis.aspx.vb" aspCompat=true
language=VB Debug=true Inherits="LineViewProto.NET.analysis" %>

Can anyone tell what is wrong with this?

Thanks,
ME

--
Martin Eyles
ma**********@NOSPAM.bytronic.com

Nov 19 '05 #1
5 7089
"Martin Eyles" <ma**********@NOSPAM.bytronic.com> wrote in message
news:10*************@corp.supernews.com...
I get the following error:-

c:\inetpub\wwwroot\ \analysis.aspx(1): Character is not
valid.
^^^
(not a gap here, but I want to keep the folder name private)

from the fist percent character in:-

<%@ Page strict=true codeBehind="analysis.aspx.vb" aspCompat=true
language=VB Debug=true Inherits="LineViewProto.NET.analysis" %>

Can anyone tell what is wrong with this?

Thanks,
ME

Really weird, the build erros still appear in the task list, referencing
those lines in my .aspx file, but the underlining is gone. When I double
click on the errors, it points me to the beginning of my .vb code behind
file. The build errors are picked up each time I try to build the page, so
I'm pretty sure they must be errors and not just uncleared tasks.

Has anyone any ideas?

Thanks,
ME

--
Martin Eyles
ma**********@NOSPAM.bytronic.com
Nov 19 '05 #2
Right, pretty sure this is a bug. I renamed the aspx file to a .asp
extension, and then back to a .aspx extension, and now it runs fine! Should
I report this - if so, where?

ME

--
Martin Eyles
ma**********@NOSPAM.bytronic.com

"Martin Eyles" <ma**********@NOSPAM.bytronic.com> wrote in message
news:10*************@corp.supernews.com...
"Martin Eyles" <ma**********@NOSPAM.bytronic.com> wrote in message
news:10*************@corp.supernews.com...
I get the following error:-

c:\inetpub\wwwroot\ \analysis.aspx(1): Character is not valid.
^^^
(not a gap here, but I want to keep the folder name private)

from the fist percent character in:-

<%@ Page strict=true codeBehind="analysis.aspx.vb" aspCompat=true
language=VB Debug=true Inherits="LineViewProto.NET.analysis" %>

Can anyone tell what is wrong with this?

Thanks,
ME

Really weird, the build erros still appear in the task list, referencing
those lines in my .aspx file, but the underlining is gone. When I double
click on the errors, it points me to the beginning of my .vb code behind
file. The build errors are picked up each time I try to build the page, so
I'm pretty sure they must be errors and not just uncleared tasks.

Has anyone any ideas?

Thanks,
ME

--
Martin Eyles
ma**********@NOSPAM.bytronic.com

Nov 19 '05 #3
Hi Martin,

I don't know if anyone else had this problem, but I read your original post
yesterday, and I couldn't understand the question! As of your follow-ups, I
STILL can't understand the question. Perhaps that is why you're not getting
any responses.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"Martin Eyles" <ma**********@NOSPAM.bytronic.com> wrote in message
news:10*************@corp.supernews.com...
"Martin Eyles" <ma**********@NOSPAM.bytronic.com> wrote in message
news:10*************@corp.supernews.com...
I get the following error:-

c:\inetpub\wwwroot\ \analysis.aspx(1): Character is
not
valid.
^^^
(not a gap here, but I want to keep the folder name private)

from the fist percent character in:-

<%@ Page strict=true codeBehind="analysis.aspx.vb" aspCompat=true
language=VB Debug=true Inherits="LineViewProto.NET.analysis" %>

Can anyone tell what is wrong with this?

Thanks,
ME

Really weird, the build erros still appear in the task list, referencing
those lines in my .aspx file, but the underlining is gone. When I double
click on the errors, it points me to the beginning of my .vb code behind
file. The build errors are picked up each time I try to build the page, so
I'm pretty sure they must be errors and not just uncleared tasks.

Has anyone any ideas?

Thanks,
ME

--
Martin Eyles
ma**********@NOSPAM.bytronic.com

Nov 19 '05 #4
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote
Hi Martin,

I don't know if anyone else had this problem, but I read your original post yesterday, and I couldn't understand the question! As of your follow-ups, I STILL can't understand the question. Perhaps that is why you're not getting any responses.
"Martin Eyles" <ma**********@NOSPAM.bytronic.com> wrote
I get the following error:-

c:\inetpub\wwwroot\ \analysis.aspx(1): Character is
not
valid.


I have solved the problem, but my code was fine (see below) - it is a bug in
either visual studio or the .net framework. Sorry if my message was
confusing - I was confused about how the code could be giving an error.

the task list in visual studio was showing errors in the file analysis.aspx
I noted one particular error that made no sense (note that the file was full
of errors according to visual studio). This was:-
"Character is not valid."

The first % sign in this peice of code highlighted underlined:-
<%@ Page strict=true codeBehind="analysis.aspx.vb" aspCompat=true
language=VB Debug=true Inherits="LineViewProto.NET.analysis" %>

I quit Visual studio, and re-opened it. When I did this, all the error
underlining disappeared, but the task list still contained all the errors. I
tried double clicking on the errors, but this took me to the begining of the
code-behind (.aspx.vb) file. All the errors refered to the .aspx file still
though.

when I tried to view the page in browser, visual studio warned me that there
were build errors, and asked me wether to continue. If I said yes, I got an
error in the browser window saying there were errors.

After trying everything else, I eventually renamed the file to .asp, and
then back to .aspx - NO other changes. These errors have now completely
disappeared, and the page builds fine and works correctly, which means it
can only be a bug in visual studio or .net itself.

On reflection I think that the parser may have been trying to parse the file
as a VB file, despite the fact that it had the .aspx extension (<% is
probably illegal in VB, as would all the other errors have been - although
perfectly valid in web forms.)

Thanks for the reply Kevin - Regards, Martin

--
Martin Eyles
ma**********@NOSPAM.bytronic.com
Nov 19 '05 #5
Glad you got it fixed!

--
Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"Martin Eyles" <ma**********@NOSPAM.bytronic.com> wrote in message
news:10*************@corp.supernews.com...
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote
Hi Martin,

I don't know if anyone else had this problem, but I read your original

post
yesterday, and I couldn't understand the question! As of your follow-ups,

I
STILL can't understand the question. Perhaps that is why you're not

getting
any responses.
"Martin Eyles" <ma**********@NOSPAM.bytronic.com> wrote
>> I get the following error:-
>>
>> c:\inetpub\wwwroot\ \analysis.aspx(1): Character is
>> not
>> valid.


I have solved the problem, but my code was fine (see below) - it is a bug
in
either visual studio or the .net framework. Sorry if my message was
confusing - I was confused about how the code could be giving an error.

the task list in visual studio was showing errors in the file
analysis.aspx
I noted one particular error that made no sense (note that the file was
full
of errors according to visual studio). This was:-
"Character is not valid."

The first % sign in this peice of code highlighted underlined:-
<%@ Page strict=true codeBehind="analysis.aspx.vb" aspCompat=true
language=VB Debug=true Inherits="LineViewProto.NET.analysis" %>

I quit Visual studio, and re-opened it. When I did this, all the error
underlining disappeared, but the task list still contained all the errors.
I
tried double clicking on the errors, but this took me to the begining of
the
code-behind (.aspx.vb) file. All the errors refered to the .aspx file
still
though.

when I tried to view the page in browser, visual studio warned me that
there
were build errors, and asked me wether to continue. If I said yes, I got
an
error in the browser window saying there were errors.

After trying everything else, I eventually renamed the file to .asp, and
then back to .aspx - NO other changes. These errors have now completely
disappeared, and the page builds fine and works correctly, which means it
can only be a bug in visual studio or .net itself.

On reflection I think that the parser may have been trying to parse the
file
as a VB file, despite the fact that it had the .aspx extension (<% is
probably illegal in VB, as would all the other errors have been - although
perfectly valid in web forms.)

Thanks for the reply Kevin - Regards, Martin

--
Martin Eyles
ma**********@NOSPAM.bytronic.com

Nov 19 '05 #6

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

Similar topics

2
by: Gary | last post by:
Morning all, I have a form field called: Bsk01 How do I onBlur prompt the user to enter a ZERO as character one, if one is not already entered. At the same time, I would like to ensure at...
9
by: Safalra | last post by:
The idea here is relatively simple: a java program (I'm using JDK1.4 if that makes a difference) that loads an HTML file, removes invalid characters (or replaces them in the case of common ones...
5
by: sergej.vasiljev | last post by:
Hello, while doing strings pattern matching we use '/377' character. But this char is illegal for some Asian locales on Solaris. For example, strcoll returns error because this character is...
21
by: aegis | last post by:
7.4#1 states The header <ctype.h> declares several functions useful for classifying and mapping characters.166) In all cases the argument is an int, the value of which shall be representable as an...
6
by: Pavils Jurjans | last post by:
Hello, I am experiencing a weird behaviour on my ASP.NET project. The project consists from client-side, which can be whatever environment - web page, EXE application, etc. The client sends HTTP...
14
by: gooooglegroups | last post by:
I want to transform the following xml file ------------------------------------------------------------------------ <?xml version="1.0" encoding="ISO-8859-1"?> <a> <b attrib="if 3 2"> </b> ...
1
by: sonald | last post by:
Dear All, I am working on a module that validates the provided CSV data in a text format, which must be in a predefined format. We check for the : 1. Number of fields provided in the text file,...
14
by: Shhnwz.a | last post by:
Hi, I am in confusion regarding jargons. When it is technically correct to say.. String or Character Array.in c. just give me your perspectives in this issue. Thanx in Advance.
3
by: amija0311 | last post by:
Hi, I am new using DB2 9.1 database by windows base. I want to query the data that contain string then translate the string into integer using DB2. The problems is If the data is null, i got the...
2
by: Sallu | last post by:
Hi all and one i wrote this script, working fine without fail( just run it) import re value='This is Praveen' print value #value = 'riché gerry' #words=str(value.split()).strip('').replace(',...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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
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,...
0
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
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.