[SOLVED]Adding other file extensions to be served as ASP.NET

 
Post new topic   Reply to topic    Aprelium Forum Index -> ASP.NET
View previous topic :: View next topic  
Author Message
RandomSF
-


Joined: 23 Apr 2013
Posts: 5
Location: United States

PostPosted: Tue Apr 23, 2013 4:34 pm    Post subject: [SOLVED]Adding other file extensions to be served as ASP.NET Reply with quote

It looks like .ASPX files are served by default.

Can additional extensions be served, e.g., ASPY and where would this be set?


Last edited by RandomSF on Wed Aug 07, 2013 5:02 pm; edited 1 time in total
Back to top View user's profile Send private message
aprelium-support
-


Joined: 20 Feb 2009
Posts: 356

PostPosted: Wed May 22, 2013 3:02 pm    Post subject: Re: Adding other file extensions to be served as ASP.NET Reply with quote

RandomSF wrote:
It looks like .ASPX files are served by default.

Can additional extensions be served, e.g., ASPY and where would this be set?


Yes. Just add that extension to the "Associated Extensions" table which contains extensions handled by your ASP.NET application declaration: [http://www.aprelium.com/data/doc/2/abyssws-win-doc-html/hosts-configuration.html#HOSTS-ASPNET]
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Visit poster's website
RandomSF
-


Joined: 23 Apr 2013
Posts: 5
Location: United States

PostPosted: Wed Jul 17, 2013 12:02 pm    Post subject: Reply with quote

I have added the extension .ASP and it does not work. The files are old ASP files that have been converted to work as ASPX. This works on the production server running IIS, so it is not a limitation of the extension as was stated in another thread.

I don't quite understand why this is not working.
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Wed Jul 17, 2013 3:11 pm    Post subject: Reply with quote

Do this if you haven't already done all the steps

1. Go to ASP.NET Parameters
2. Click Add under ASP.NET Applications
3. In the Virtual Path field, browse or enter the path
to your ASP.NET files
4. Select .NET version
5. Click OK
6. Click Edit by the ASP.NET Application you
just added
7. From the Handling drop down menu, select Associated
File Extensions
8. Click Add under Associated Extensions
9. In the Extension field, enter the extension without the prefixed dot
10. Click OK (it may show a white screen [bug reported])
11. Restart Abyss Web Server (if it shows a white screen, just go to the main console page and restart Abyss from there).

Respectfully,

Joshua H. (TRUSTAbyss)
Back to top View user's profile Send private message Visit poster's website
RandomSF
-


Joined: 23 Apr 2013
Posts: 5
Location: United States

PostPosted: Wed Jul 17, 2013 3:35 pm    Post subject: Reply with quote

Yes, I checked each of your steps and everything is as you describe. But, when I try to access a page with a .asp extension I get this message:

Server Error in '/' Application.

This type of page is not served.

Description: The type of page you have requested is not served because it has been explicitly forbidden. The extension '.asp' may be incorrect. Please review the URL below and make sure that it is spelled correctly.

Requested URL: /webinarPTDemo.asp

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1008

This same file works in IIS. It appears to be hard-coded into Abyss to not server pages with the .asp extension.
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Thu Jul 18, 2013 1:32 am    Post subject: Reply with quote

Might be another bug then. I will report that as well and give a reference link to this topic so that they can investigate the problem further.
Back to top View user's profile Send private message Visit poster's website
aprelium-support
-


Joined: 20 Feb 2009
Posts: 356

PostPosted: Wed Aug 07, 2013 3:55 pm    Post subject: Reply with quote

RandomSF,

Not an issue from Abyss Web Server's side. It's the ASP.NET framework which is configured by default to not serve .asp files. To circumvent that behavior, do as explained in http://stackoverflow.com/a/1732864 .
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Visit poster's website
RandomSF
-


Joined: 23 Apr 2013
Posts: 5
Location: United States

PostPosted: Wed Aug 07, 2013 5:03 pm    Post subject: Reply with quote

That solved it.

Thanks much!
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> ASP.NET All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group