IIS configuration issue?

C

Carlos

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"
%>
-^
 
G

Guest

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
 
C

Carlos

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.

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
 
J

Juan T. Llibre

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,902
Latest member
Elena68X5

Latest Threads

Top