473,659 Members | 2,765 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

a name was started with invalid character

Teaching myself ASP.NET, using Microsoft Press book called ASP.NET 2.0 by
George Shepherd.

Ch. 2, it says to type the following code:

<%@ Page Language="C#" %>

<html>

<body>

<h1>Hello World</h1>

Nothing really showing here yet, except some HTML...

</body>

</html>

Here's what I see in the browser:

The XML page cannot be displayed

Cannot view XML input using XSL style sheet. Please correct the error and
then click the Refresh button, or try again later.
--------------------------------------------------------------------------------

A name was started with an invalid character. Error processing resource
'http://localhost/ASPNETStepBySte p/HelloWorld.aspx '...

<%@ Page Language="C#" %>
-^----------------Because of wrapping, you may or may not be able to tell,
but the arrow is pointing to the percent sign, the 2nd character of the
entire page.I am quite sure I followed all directions correctly, and have
spent hours going back over them. Part of those instructions involve setting
up a virtual directory in IIS. I'm running on WinXP SP2. If anyone has any
insights on this, please let me know. TIA.
Jul 20 '06 #1
3 4148

Middletree wrote:
Teaching myself ASP.NET, using Microsoft Press book called ASP.NET 2.0 by
George Shepherd.

Ch. 2, it says to type the following code:
This group covers classic ASP. ASP.NET is a totally different
technology. Your book probably won't tell you that till Chapter 3 :-)

Try microsoft.publi c.dotnet.framew ork.aspnet. Bods over there will be
happy to help you, I'm sure.

--
Mike Brind

Jul 20 '06 #2
Sorry. Meant to post this in dotnet group.
Jul 20 '06 #3
Middletree wrote:
Teaching myself ASP.NET, using Microsoft Press book called ASP.NET
There was no way for you to know it (except maybe by browsing through
some
of the previous questions before posting yours - always a recommended
practice), but this is a classic asp newsgroup.
ASP.Net is a different technology from classic ASP.
While you may be lucky enough to find a dotnet-savvy person here who
can
answer your question, you can eliminate the luck factor by posting your
question to a newsgroup where the dotnet-savvy people hang out. I
suggest
microsoft.publi c.dotnet.framew ork.aspnet.

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 20 '06 #4

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

Similar topics

6
1614
by: lkrubner | last post by:
I'm hoping I understand this bit correctly: >>>>>>>>>>>>>>>>>>> http://www.jibbering.com/faq/faq_notes/form_access.html When writing HTML that conforms to a DTD that allows FORM elements to have NAME attributes it is possible to also give the FORM element an ID attribute that corresponds with its NAME attribute (so long as the ID is unique on the page). The form will appear as a member of the document.forms collection under a property...
7
11904
by: CharlesEF | last post by:
Hi All, I have run into another problem that is eating my lunch. Should be simple but I am having one heck of a time. Please look at this SELECT statement: SELECT FROM States WHERE ] = "US"; is the SQL column name (because it sarts with 2?). As the statement is shown I get the error message: Unclosed quotation mark before the character
4
5018
by: kevin | last post by:
When I try to select one of the following enums, I see "A name was started with an invalid character." in the tooltip (Intellisence) and under the Summary heading (object browser). Other enums seem to behave normally. I even removed the <remarks/> comment with no change in behavior. When I build I see the following warning for each enum value: warning CS1570: XML comment on 'CreditorMigration.SourceAndDestination.PayerToUs' has badly...
3
2199
by: Anders Jansson | last post by:
Hi all. I have 2 problems when I try to open and convert an ASP.NET VS 2003 web-applikation in VS 2005. In VS 2003 I have no problems at all! First: One subfolder with will not be converted! The converted web project are missing this subfolder completely. 39 errors are displayed in the Conversion Report saying: ERROR: Unable to get local copy of file <file>. Why? All files are there and readable!!
5
2126
by: emma_middlebrook | last post by:
Hi I've found the rules that cover what is a valid attribute name here: http://www.w3.org/TR/2006/REC-xml-20060816/ 2.3 Common Syntactic Constructs Is there anything already in the dotnet framework which I can use to test whether a string can be a valid attribute name or do I have to roll my own implementation?
4
4704
by: Arpan | last post by:
I am working on Win2K Pro. Due to some problems in IIS5.0, I had to uninstall & re-install IIS. After re-installing IIS, when I try to run any ASPX page (all my ASPX pages reside in C:\Inetpub\wwwroot\ASPX folder) by typing the following URL in IE6.0 http://myserver/ASPX/MyPage.aspx the following error gets generated: A name was started with an invalid character. Error processing resource
1
4178
mahet
by: mahet | last post by:
Anders Jansson was a guest here, and he was having problem: When I try to build the web, this error is displayed: ---> Error 5 Unable to convert input xml file content to a DataSet. Invalid 'name' attribute value 'Företag': 'The '¶' character, hexadecimal value 0xB6, at position 2 within the name, cannot be included in a name.'. <start path>My Webs\ProAra\wwwroot\App_Code\kappsegling\ProAra.Ka ppSegling.rorsmandataset.xsd -->
1
3174
by: banagani | last post by:
Hi All, I am facing an issue in the XmlTextWriter class in the dotnet 2.0. This is the sample code Actual XML is like this <Name>&#x8A73;&#x7D30;&#x4ED5;&#x69D8;&#x306B;</Name>
3
3079
by: =?Utf-8?B?Vmlub2Q=?= | last post by:
Hi All, I am facing an issue in the XmlTextWriter class in the dotnet 2.0. This is the sample code Actual XML is like this <Name>詳細仕様に</Name>
0
8428
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
1
8535
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
8629
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
7360
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6181
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 presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5650
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
4338
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1982
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1739
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.