I've written my first asp.net program using VB2005. It has a textbox with
"Hello World". When I run it from the IDE, it comes up OK. I then did a
"publish web" to my local IIS folder and ran the default.aspx file and it
came up with the following:
XML Parsing Error: not well-formed
Location: file:///C:/Inetpub/wwwroot/WebViewer/Default.aspx
Line Number 1, Column 2:<%@ page language="VB" autoeventwireup="false"
inherits="_Default, App_Web_u2trtlt1" %>
What is wrong please?
-Jerry 11 1152
On Feb 21, 9:30 am, "Jerry Spence1" <jerry.spe...@somewhere.com>
wrote:
I've written my first asp.net program using VB2005. It has a textbox with
"Hello World". When I run it from the IDE, it comes up OK. I then did a
"publish web" to my local IIS folder and ran the default.aspx file and it
came up with the following:
XML Parsing Error: not well-formed
Location: file:///C:/Inetpub/wwwroot/WebViewer/Default.aspx
Line Number 1, Column 2:<%@ page language="VB" autoeventwireup="false"
inherits="_Default, App_Web_u2trtlt1" %>
What is wrong please?
Sounds like your application isn't configured for ASP.NET in IIS,
because it's seeing the .ASPX file as an XML file instead of a .net
page.
"Larry Bud" <la**********@yahoo.comwrote in message
news:11**********************@p10g2000cwp.googlegr oups.com...
On Feb 21, 9:30 am, "Jerry Spence1" <jerry.spe...@somewhere.com>
wrote:
>I've written my first asp.net program using VB2005. It has a textbox with "Hello World". When I run it from the IDE, it comes up OK. I then did a "publish web" to my local IIS folder and ran the default.aspx file and it came up with the following:
XML Parsing Error: not well-formed Location: file:///C:/Inetpub/wwwroot/WebViewer/Default.aspx Line Number 1, Column 2:<%@ page language="VB" autoeventwireup="false" inherits="_Default, App_Web_u2trtlt1" %>
What is wrong please?
Sounds like your application isn't configured for ASP.NET in IIS,
because it's seeing the .ASPX file as an XML file instead of a .net
page.
Good point Larry. I've gone though the IIS configuration and it keeps
mentioning ASP.NET so I guess it is, but I'm not sure where to look to be
sure.
-Jerry
Good point Larry. I've gone though the IIS configuration and it keeps
mentioning ASP.NET so I guess it is, but I'm not sure where to look to be
sure.
Right click on the item in IIS for your site (either Default Website or the
Virtual Site) - on the Properties window, Home Directory tab, there should
be a box for the application name and a button to "Create" it if it hasn't
already been done, "Remove" if it has. If you have the create button then
type in a name for your application and click create, scripts and
executables and medium pooled seem to be the typical options.
On the Documents tab, check to see if "Default.aspx" is listed. If its not,
you might not have the .net framework installed in IIS (can sometimes happen
if the framework is installed BEFORE IIS), if you have an ASP.Net tab (comes
with .net 2.0 installation) then you should be ok I believe, although for
..net 1.1 you may need to check the script mappings to confirm.
If the drop down on the ASP.Net tab has 1.1.4322 and 2.0.50727 then both
..net 1.1 and 2.0 are installed, ensure you select the appropriate framework
for the application you've just created.
Ok all settings/windows and re launch your app...
Any good?
Rob
"Rob Meade" <ku***************@edaem.borwrote in message
news:e2**************@TK2MSFTNGP03.phx.gbl...
>Good point Larry. I've gone though the IIS configuration and it keeps mentioning ASP.NET so I guess it is, but I'm not sure where to look to be sure.
Right click on the item in IIS for your site (either Default Website or
the Virtual Site) - on the Properties window, Home Directory tab, there
should be a box for the application name and a button to "Create" it if it
hasn't already been done, "Remove" if it has. If you have the create
button then type in a name for your application and click create, scripts
and executables and medium pooled seem to be the typical options.
On the Documents tab, check to see if "Default.aspx" is listed. If its
not, you might not have the .net framework installed in IIS (can sometimes
happen if the framework is installed BEFORE IIS), if you have an ASP.Net
tab (comes with .net 2.0 installation) then you should be ok I believe,
although for .net 1.1 you may need to check the script mappings to
confirm.
If the drop down on the ASP.Net tab has 1.1.4322 and 2.0.50727 then both
.net 1.1 and 2.0 are installed, ensure you select the appropriate
framework for the application you've just created.
Ok all settings/windows and re launch your app...
Any good?
Rob
Thank you for all this help. Unfortunately everything seems OK. There is a
default.aspx document listed, and I know that I have 2.0 .Net Framework
installed.
I did a Google search for this problem and I saw a web site whcih suggested
making up a simple file default.htm.
<html>
<body bgcolor="yellow">
<center>
<h2>Hello W3Schools!</h2>
</center>
</body>
</html>This ran OK, as you would expect. They then suggested renaming it to
default.aspx and running it again which should appear the same. When I
opened it in explorer it said:This XML file does not appear to have any
style information associated with it. The document tree is shown
below.<html>- <body bgcolor="yellow">- <center><h2>Hello
W3Schools!</h2></center></body></html>Now this may not have anything to do
with my current problem but this does seem odd. BTW I also tried it in
Mozilla and that didn't work either.-Jerry
change line 1 to
<%@ page language="VB" %>
"Jerry Spence1" <je**********@somewhere.comwrote in message news:45**********************@ptn-nntp-reader02.plus.net...
I've written my first asp.net program using VB2005. It has a textbox with "Hello World". When I run it from the IDE, it comes up
OK. I then did a "publish web" to my local IIS folder and ran the default.aspx file and it came up with the following:
XML Parsing Error: not well-formed
Location: file:///C:/Inetpub/wwwroot/WebViewer/Default.aspx
Line Number 1, Column 2:<%@ page language="VB" autoeventwireup="false" inherits="_Default, App_Web_u2trtlt1" %>
What is wrong please?
-Jerry
"Jon Paal" <Jon[ nospam ]Paal @ everywhere dot comwrote in message
news:Ow**************@TK2MSFTNGP02.phx.gbl...
change line 1 to
<%@ page language="VB" %>
"Jerry Spence1" <je**********@somewhere.comwrote in message
news:45**********************@ptn-nntp-reader02.plus.net...
>I've written my first asp.net program using VB2005. It has a textbox with "Hello World". When I run it from the IDE, it comes up OK. I then did a "publish web" to my local IIS folder and ran the default.aspx file and it came up with the following:
XML Parsing Error: not well-formed Location: file:///C:/Inetpub/wwwroot/WebViewer/Default.aspx Line Number 1, Column 2:<%@ page language="VB" autoeventwireup="false" inherits="_Default, App_Web_u2trtlt1" %>
What is wrong please?
-Jerry
Thanks Jon. I get a different error now:
XML Parsing Error: not well-formed
Location: file:///C:/Inetpub/wwwroot/WebViewer/Default.aspx
Line Number 1, Column 2:
<%@ page language="VB" %>
-^
Also how can I change it at source? This is coming from my VB code so I need
to change a config file somewhere?
I have this at the top of my web.config file in VB.
<?xml version="1.0" encoding="iso-8859-1"?>
Is that OK?
-Jerry
On Feb 21, 11:48 am, "Jerry Spence1" <jerry.spe...@somewhere.com>
wrote:
"Rob Meade" <ku.shn.tsews.t...@edaem.borwrote in message
news:e2**************@TK2MSFTNGP03.phx.gbl...
Good point Larry. I've gone though the IIS configuration and it keeps
mentioning ASP.NET so I guess it is, but I'm not sure where to look to be
sure.
Right click on the item in IIS for your site (either Default Website or
the Virtual Site) - on the Properties window, Home Directory tab, there
should be a box for the application name and a button to "Create" it if it
hasn't already been done, "Remove" if it has. If you have the create
button then type in a name for your application and click create, scripts
and executables and medium pooled seem to be the typical options.
Also, if you right click on your website in IIS (go to Properties),
there should be an ASP.NET TAB. If not, I would say .NET isn't
installed properly.
On the .NET tab you can choose what version of .NET you'd like to run
if you have both 1.1 and 2.0 installed.
If you click on the Configuration button in the Home Directory tab,
you can look at the application mappings. Find .ASPX and see if it's
pointing to
C:\WINNT\Microsoft.NET\Framework\v2.0.50727\aspnet _isapi.dll
(or whatever ver your framework is).
that's the same error. must be an IIS problem then. http://msdn2.microsoft.com/en-us/library/33487zw6.aspx
Thanks Jon. I get a different error now:
XML Parsing Error: not well-formed
Location: file:///C:/Inetpub/wwwroot/WebViewer/Default.aspx
Line Number 1, Column 2:
<%@ page language="VB" %>
-^
Also how can I change it at source? This is coming from my VB code so I need to change a config file somewhere?
I have this at the top of my web.config file in VB.
<?xml version="1.0" encoding="iso-8859-1"?>
Is that OK?
-Jerry
"Larry Bud" <la**********@yahoo.comwrote in message
news:11**********************@v45g2000cwv.googlegr oups.com...
On Feb 21, 11:48 am, "Jerry Spence1" <jerry.spe...@somewhere.com>
wrote:
>"Rob Meade" <ku.shn.tsews.t...@edaem.borwrote in message
news:e2**************@TK2MSFTNGP03.phx.gbl...
>Good point Larry. I've gone though the IIS configuration and it keeps mentioning ASP.NET so I guess it is, but I'm not sure where to look to be sure.
Right click on the item in IIS for your site (either Default Website or
the Virtual Site) - on the Properties window, Home Directory tab, there
should be a box for the application name and a button to "Create" it if
it
hasn't already been done, "Remove" if it has. If you have the create
button then type in a name for your application and click create,
scripts
and executables and medium pooled seem to be the typical options.
Also, if you right click on your website in IIS (go to Properties),
there should be an ASP.NET TAB. If not, I would say .NET isn't
installed properly.
On the .NET tab you can choose what version of .NET you'd like to run
if you have both 1.1 and 2.0 installed.
If you click on the Configuration button in the Home Directory tab,
you can look at the application mappings. Find .ASPX and see if it's
pointing to
C:\WINNT\Microsoft.NET\Framework\v2.0.50727\aspnet _isapi.dll
(or whatever ver your framework is).
The last point is interesting as I haven't got an application mapping for
..aspx. I tried to add one and filled in .aspx in the extension box and
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspn et_isapi.dll in the
executable box, but the OK button wouldn't stop being greyed out so I could
save it. Very strange! (Yes I am logged on as Administrator)
-Jerry
"Jon Paal" <Jon[ nospam ]Paal @ everywhere dot comwrote in message
news:uT**************@TK2MSFTNGP02.phx.gbl...
that's the same error. must be an IIS problem then.
http://msdn2.microsoft.com/en-us/library/33487zw6.aspx
>Thanks Jon. I get a different error now:
XML Parsing Error: not well-formed Location: file:///C:/Inetpub/wwwroot/WebViewer/Default.aspx Line Number 1, Column 2: <%@ page language="VB" %> -^
Also how can I change it at source? This is coming from my VB code so I need to change a config file somewhere?
I have this at the top of my web.config file in VB.
<?xml version="1.0" encoding="iso-8859-1"?>
Is that OK?
-Jerry
I've at long last cracked this one. You have to create things in the right
order:
1. Create the folder under c:\inetpub\wwwroot using Windows Explorer
2. Create a Virtual directory which points to that folder, and give it an
alias
3 In VB.Net, create a new Web Site and point it to the newly created
Virtual directory using "File System"
4. When accessing it, use the full URL http://localhost/NewFolder/Default.aspx rather than just clicking on the
file.
-Jerry
"Jerry Spence1" <1@2.comwrote in message
news:45**********************@ptn-nntp-reader02.plus.net...
>
The last point is interesting as I haven't got an application mapping for
.aspx. I tried to add one and filled in .aspx in the extension box and
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspn et_isapi.dll in the
executable box, but the OK button wouldn't stop being greyed out so I could
save it. Very strange! (Yes I am logged on as Administrator)
-Jerry
You don't need to add it manually. Just open the VS .NET
command prompt and run:
aspnet_regiis -i This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Philip Ronan |
last post by:
OK, here's my 2p worth:
===
Q. Why am I getting the error message 'Headers already sent'?
A. PHP produces this error message when you try to set a header for a web
page after you have already...
|
by: soni29 |
last post by:
Hi,
I'm going to be starting a project with a friend of mine in C#, we're
doing it to learn the language a little better, to get more experience
with it. We've already come up with an idea of the...
|
by: cara_little |
last post by:
Good Morning,
I'm trying to get started with the Enterprise Library to evaluate it
and recommend to the rest of the developers in the company. However,
I'm having a heck of a time getting started...
|
by: tamdino |
last post by:
Please accept my apologies if I am posting this in the wrong place. I
am trying to get started using MySQL-Front and I am totally lost. Does
anyone know where there is a tutorial for getting...
|
by: Bibby |
last post by:
Hi, I'm interested in getting started in the programming world. I've dabbled
in C, C++ and VB6. Which would be the best language to focus my attention to
regarding the following considerations:
...
|
by: Jack Duijf |
last post by:
Hello,
I am looking for a person in The Netherlands that is willing to help me
getting started with Vb.net. Please send a message to jack@aicn.nl if you can
help me getting started with the...
|
by: =?Utf-8?B?Q29kZVNsaW5nZXI=?= |
last post by:
I plan to build my own 2008 Server/Hyper-V system and will not be using one
of the tested Dell or HP systems from the release notes and could use some
pointers as to my assumnptions and answers to...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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...
|
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,...
|
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...
|
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...
| |