asp.net mvc

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


Joined: 01 Aug 2009
Posts: 3

PostPosted: Sun Aug 02, 2009 2:24 pm    Post subject: asp.net mvc Reply with quote

Hello

Does Abyss support mvc applications.

I am having a tinker and can't seem to get anything other than the launch page to open. Do I need to do something special with URL Routing ?


Many Thanks
Back to top View user's profile Send private message
aprelium-support
-


Joined: 20 Feb 2009
Posts: 356

PostPosted: Mon Aug 03, 2009 10:36 am    Post subject: Re: asp.net mvc Reply with quote

jesscurley wrote:

Does Abyss support mvc applications.

I am having a tinker and can't seem to get anything other than the launch page to open. Do I need to do something special with URL Routing ?


Many Thanks


Please contact us at support@aprelium.com to receive a modified version of Abyss Web Server for testing MVC applications.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Visit poster's website
jesscurley
-


Joined: 01 Aug 2009
Posts: 3

PostPosted: Tue Aug 11, 2009 9:11 am    Post subject: mvc Reply with quote

I have got Abyss working with mvc using the following url redirection rules which append /rewritten.aspx to the url. ( my virtual path is /apps/ ). This points everything in /apps to ASP.NET.

The contents folder is excluded so the ccs and images load as they should.

The code in global.asax then strips it off

Code:

 protected void Application_BeginRequest(Object sender, EventArgs e)
        {
            HttpApplication app = sender as HttpApplication;
            if (app != null)
                if (app.Request.AppRelativeCurrentExecutionFilePath.Contains("/rewritten.aspx"))
                    app.Context.RewritePath(
                        app.Request.Url.PathAndQuery.Replace("/rewritten.aspx", "")
                    );

        }


Code:

<rule>
                  <enabled>
                     yes
                  </enabled>
                  <pattern>
                     /apps/$
                  </pattern>
                  <casesensitive>
                     yes
                  </casesensitive>
                  <subrequests>
                     yes
                  </subrequests>
                  <redirect>
                     0
                  </redirect>
                  <replacement>
                     /apps/default.aspx
                  </replacement>
                  <qsa>
                     no
                  </qsa>
                  <escape>
                     yes
                  </escape>
                  <nextaction>
                     2
                  </nextaction>
               </rule>
               <rule>
                  <enabled>
                     yes
                  </enabled>
                  <pattern>
                     ^/apps/(.*)
                  </pattern>
                  <casesensitive>
                     no
                  </casesensitive>
                  <subrequests>
                     no
                  </subrequests>
                  <redirect>
                     0
                  </redirect>
                  <replacement>
                     $0/rewritten.aspx
                  </replacement>
                  <qsa>
                     yes
                  </qsa>
                  <escape>
                     yes
                  </escape>
                  <nextaction>
                     0
                  </nextaction>
                  <conditions>
                     <condition>
                        <variable>
                           REQUEST_URI
                        </variable>
                        <operator>
                           not_match
                        </operator>
                        <value>
                           \.aspx$
                        </value>
                        <casesensitive>
                           yes
                        </casesensitive>
                     </condition>
                     <condition>
                        <variable>
                           REQUEST_URI
                        </variable>
                        <operator>
                           not_match
                        </operator>
                        <value>
                           Content
                        </value>
                        <casesensitive>
                           yes
                        </casesensitive>
                     </condition>
                  </conditions>
               </rule>
[/code]
Back to top View user's profile Send private message
aprelium-support
-


Joined: 20 Feb 2009
Posts: 356

PostPosted: Tue Aug 11, 2009 11:04 am    Post subject: Re: mvc Reply with quote

jesscurley wrote:
I have got Abyss working with mvc using the following url redirection rules which append /rewritten.aspx to the url. ( my virtual path is /apps/ ). This points everything in /apps to ASP.NET.


Glad to know that the issue was quickly solved.

We are thinking of adding MVC support natively in the next 2.7 version, any suggestions would be much appreciated.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Visit poster's website
manupinot
-


Joined: 23 Nov 2009
Posts: 1

PostPosted: Mon Nov 23, 2009 9:52 am    Post subject: mvc Reply with quote

To jesscurley:

Thank you for your great post, I have MVC working now with Abyss. I don't use a default.aspx so I change the first rule to point to /Home/Index when the root is requested.
One thing that i haven't been able to resolve is enabling cookie less Session, if i try the CSS and images are not found...
Back to top View user's profile Send private message
chromebuster
-


Joined: 02 Jan 2010
Posts: 32
Location: boston, USA

PostPosted: Sun Jul 25, 2010 3:57 am    Post subject: Reply with quote

And I'm just curious. When is the estimated date for the next version of Abyss Web server to come out?
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
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