IIS configuration issue?

  • Thread starter Thread starter Carlos
  • Start date Start date
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"
%>
-^
 
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
 
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
 
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/
===================================
 
Back
Top