Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Web Form not displaying, instead ask to download the file.


Message #1 by comching@y... on Fri, 17 Jan 2003 08:37:45
Hi All,

Happy New Year!!  I'm having problem displaying the web forms in browser, 
i.e. IE 6.0.  Had just re-install the IIS and IE, cos the web forms 
couldn't be loaded when the project is open in .NET environment.  After re-
installing IIS, project can then be loaded, but they can't be view in 
Browser, instead it's saying "File Downloading" and asked user to select 
either to "Open" or "Save" the .aspx file.  If user selects, "Open" - it 
will open the .aspx.vb source code file and not the web form, same goes to 
the "Save" option!!

Appreciate yr help on the above!!

Thanks...  Doris
Message #2 by "Pratap Ladhani" <pratapl@b...> on Fri, 17 Jan 2003 14:18:11 +0530
Just run the aspnet_regiis.exe to be found in the .NET directory (Typically
found at C:\WINNT\Microsoft.NET\Framework\v1.0.3705)

C:\WINNT\Microsoft.NET\Framework\v1.0.3705>aspnet_regiis -i

Pratap Ladhani
Software Engineer
Blue Star Infotech Ltd.
SDF V, Seepz,
Andheri (East),
Mumbai - 400 096.


-----Original Message-----
From: comching@y... [mailto:comching@y...]
Sent: Friday, January 17, 2003 8:38 AM
To: ASP.NET
Subject: [aspx] Web Form not displaying, instead ask to download the
file.


Hi All,

Happy New Year!!  I'm having problem displaying the web forms in browser,
i.e. IE 6.0.  Had just re-install the IIS and IE, cos the web forms
couldn't be loaded when the project is open in .NET environment.  After re-
installing IIS, project can then be loaded, but they can't be view in
Browser, instead it's saying "File Downloading" and asked user to select
either to "Open" or "Save" the .aspx file.  If user selects, "Open" - it
will open the .aspx.vb source code file and not the web form, same goes to
the "Save" option!!

Appreciate yr help on the above!!

Thanks...  Doris

Message #3 by comching@y... on Fri, 17 Jan 2003 09:37:40
Hi Pratap,

Thanks for yr help!!  This time it doesn't ask me to download the file, 
but it's giving me other error message:

Parser Error Message: It is an error to use a section registered as 
allowDefinition='MachineToApplication' beyond application level. This 
error can be caused by a virtual directory not being configured as an 
application in IIS.

does it mean i have to create a new virtual directory pointing to the 
Project directory in IIS??...  or how should i configure my IIS??...

Thanks alot,
Doris

> Just run the aspnet_regiis.exe to be found in the .NET directory 
(Typically
found at C:\WINNT\Microsoft.NET\Framework\v1.0.3705)

C:\WINNT\Microsoft.NET\Framework\v1.0.3705>aspnet_regiis -i

Pratap Ladhani
Software Engineer
Blue Star Infotech Ltd.
SDF V, Seepz,
Andheri (East),
Mumbai - 400 096.


-----Original Message-----
From: comching@y... [mailto:comching@y...]
Sent: Friday, January 17, 2003 8:38 AM
To: ASP.NET
Subject: [aspx] Web Form not displaying, instead ask to download the
file.


Hi All,

Happy New Year!!  I'm having problem displaying the web forms in browser,
i.e. IE 6.0.  Had just re-install the IIS and IE, cos the web forms
couldn't be loaded when the project is open in .NET environment.  After re-
installing IIS, project can then be loaded, but they can't be view in
Browser, instead it's saying "File Downloading" and asked user to select
either to "Open" or "Save" the .aspx file.  If user selects, "Open" - it
will open the .aspx.vb source code file and not the web form, same goes to
the "Save" option!!

Appreciate yr help on the above!!

Thanks...  Doris

Message #4 by "Pratap Ladhani" <pratapl@b...> on Fri, 17 Jan 2003 15:14:34 +0530
Just create and application for the virtual directory.
You can do it by right clicking the virtual directory in IIS (Run inetmgr)
and click properties.
In the Application Settings Section next to be Application Name textbox
(which is greyed out and text is Default Application) click on create to
create a new Application out for the directory.


Pratap Ladhani

-----Original Message-----
From: comching@y... [mailto:comching@y...]
Sent: Friday, January 17, 2003 9:38 AM
To: ASP.NET
Subject: [aspx] RE: Web Form not displaying, instead ask to download the
file.


Hi Pratap,

Thanks for yr help!!  This time it doesn't ask me to download the file,
but it's giving me other error message:

Parser Error Message: It is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level. This
error can be caused by a virtual directory not being configured as an
application in IIS.

does it mean i have to create a new virtual directory pointing to the
Project directory in IIS??...  or how should i configure my IIS??...

Thanks alot,
Doris

> Just run the aspnet_regiis.exe to be found in the .NET directory
(Typically
found at C:\WINNT\Microsoft.NET\Framework\v1.0.3705)

C:\WINNT\Microsoft.NET\Framework\v1.0.3705>aspnet_regiis -i

Pratap Ladhani
Software Engineer
Blue Star Infotech Ltd.
SDF V, Seepz,
Andheri (East),
Mumbai - 400 096.


-----Original Message-----
From: comching@y... [mailto:comching@y...]
Sent: Friday, January 17, 2003 8:38 AM
To: ASP.NET
Subject: [aspx] Web Form not displaying, instead ask to download the
file.


Hi All,

Happy New Year!!  I'm having problem displaying the web forms in browser,
i.e. IE 6.0.  Had just re-install the IIS and IE, cos the web forms
couldn't be loaded when the project is open in .NET environment.  After re-
installing IIS, project can then be loaded, but they can't be view in
Browser, instead it's saying "File Downloading" and asked user to select
either to "Open" or "Save" the .aspx file.  If user selects, "Open" - it
will open the .aspx.vb source code file and not the web form, same goes to
the "Save" option!!

Appreciate yr help on the above!!

Thanks...  Doris



  Return to Index