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

IIS configuration issue?

Hi all,

I recently upgraded a sample app from .net 1.0 to 2.0 in VS2005. When I
browse the app from the ide, I obtain the page. (i.e. provided by cassini as
the localhost). However, when I try to use my local IIS I get this. In IIS I
made sure
that ASP >Net was running version 2.0. Can anyone help?

Thanks,

Carlos.
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/myapp/WebForm1.aspx'. Line 1, ...

<%@ Page language="c#" Inherits="myapp.WebForm1" CodeFile="WebForm1.aspx.cs"
%>
-^
Apr 17 '07 #1
3 11390
On Apr 17, 8:43 pm, "Carlos" <ch_sa...@yahoo.comwrote:
Hi all,

I recently upgraded a sample app from .net 1.0 to 2.0 in VS2005. When I
browse the app from the ide, I obtain the page. (i.e. provided by cassinias
the localhost). However, when I try to use my local IIS I get this. In IIS I
made sure
that ASP >Net was running version 2.0. Can anyone help?

Thanks,

Carlos.

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/myapp/WebForm1.aspx'. Line 1, ...

<%@ Page language="c#" Inherits="myapp.WebForm1" CodeFile="WebForm1..aspx.cs"
%>
-^
Try to register ASP.net

C:\WINNT\Microsoft.NET\Framework\v2.0.50727\aspnet _regiis -i

Apr 17 '07 #2
Thanks Alexey, I did , and I got:

Start installing ASP.NET (2.0.50727).
.............................
Finished installing ASP.NET (2.0.50727).

however, it did not help. Any other suggestions?

Thanks again,

Carlos.

"Alexey Smirnov" <al************@gmail.comwrote in message
news:11**********************@o5g2000hsb.googlegro ups.com...
On Apr 17, 8:43 pm, "Carlos" <ch_sa...@yahoo.comwrote:
Hi all,

I recently upgraded a sample app from .net 1.0 to 2.0 in VS2005. When I
browse the app from the ide, I obtain the page. (i.e. provided by cassini
as
the localhost). However, when I try to use my local IIS I get this. In IIS
I
made sure
that ASP >Net was running version 2.0. Can anyone help?

Thanks,

Carlos.

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/myapp/WebForm1.aspx'. Line 1, ...

<%@ Page language="c#" Inherits="myapp.WebForm1"
CodeFile="WebForm1.aspx.cs"
%>
-^
Try to register ASP.net

C:\WINNT\Microsoft.NET\Framework\v2.0.50727\aspnet _regiis -i
Apr 17 '07 #3
Any of a number of culprits could be at work.

1. Instead of just running aspnet_regiis -i , first run
aspnet_regiis -u and *then* run aspnet_regiis -i.

If there's problems with your mappings that will fix them.

2. Make sure you have a default document for your application.

3. You have :
<%@ Page language="c#" Inherits="myapp.WebForm1" CodeFile="WebForm1.aspx.cs" %>

Does WebForm1.aspx.cs have this :

public partial class WebForm1 : System.Web.UI.Page

?

If you use Inherits="myapp.WebForm1", that must map to the partial class's name

If you have : public partial class _WebForm1, you must use

Inherits="myapp._WebForm1"

Verify your page syntax. The syntax changed from 1.x to 2.0.

ASP.NET 1.1 didn't use partial classes.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Carlos" <ch******@yahoo.comwrote in message news:uX**************@TK2MSFTNGP05.phx.gbl...
Thanks Alexey, I did , and I got:

Start installing ASP.NET (2.0.50727).
............................
Finished installing ASP.NET (2.0.50727).

however, it did not help. Any other suggestions?

Thanks again,

Carlos.

"Alexey Smirnov" <al************@gmail.comwrote in message
news:11**********************@o5g2000hsb.googlegro ups.com...
On Apr 17, 8:43 pm, "Carlos" <ch_sa...@yahoo.comwrote:
>Hi all,

I recently upgraded a sample app from .net 1.0 to 2.0 in VS2005. When I
browse the app from the ide, I obtain the page. (i.e. provided by cassini as the localhost).
However, when I try to use my local IIS I get this. In IIS I made sure that ASP.Net was running
version 2.0. Can anyone help?

Thanks,

Carlos.

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/myapp/WebForm1.aspx'. Line 1, ...

<%@ Page language="c#" Inherits="myapp.WebForm1" CodeFile="WebForm1.aspx.cs"
%>
-^

Try to register ASP.net

C:\WINNT\Microsoft.NET\Framework\v2.0.50727\aspnet _regiis -i


Apr 17 '07 #4

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

Similar topics

0
by: Brian Riley | last post by:
Hi all, I'm new to the .NET environment, and have run into an issue configuring the ..NET environment and deploying my code onto our production server. Everything runs fine on our development box,...
2
by: I am Sam | last post by:
In my web.config file I have placed the following settings: <authentication mode="Forms"> <forms name=".tqSecure" loginUrl="/Login.aspx" protection="All" timeout="80" /> </authentication>...
2
by: Chris_24 | last post by:
To all, I am experiencing difficulties with an asp.net web application and its web.config file. No matter what I try I keep getting the following error: Server Error in '/action' Application....
0
by: te goody | last post by:
Problem summary: Web Site Admin Tool is not generating the application services database (aspnetdb.mdf) in a SS 2005 only environment; i.e. The DB is not found under the app_data directory. The...
2
by: Matt | last post by:
I am getting the following Error. Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific...
0
by: mohamed_moulana | last post by:
On Windows XP and 9i database, both developer 2000 and Developer 6i are there. Suddenly,Developer 2000 does not connect to the database. Probably a sql net configuration error. How do I troubleshoot...
1
by: Abbas | last post by:
Hello, I have a COM+ application built using C# and the MSI for it runs just dandy, its basically a COM proxy for .NET to ASP. However, when running a test VBScript, I get the following message...
1
by: shefu | last post by:
when i use internet in pc it doesnt show me the problem but when i dont use internet emctl command could not start and gives problem of oc4j configuration issue <path>local_host could not found
5
by: blaine | last post by:
The wxPython group is a bit stale compared to this group, so I'll give it a shot :) (READ: Originally when I started htis post, Python 2.5 at the shell did not work (identical behavior to...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...

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.