Shared hosting and ASP.NET MVC

Last post 08-09-2008 9:18 PM by SpeedBump. 6 replies.

Sort Posts:

  • Shared hosting and ASP.NET MVC

    03-22-2008, 10:32 AM

    Hi,

    I am using discountasp.net as my hoster. When I try a basic MVC (Preview 2) it does not work and I get 404. I even updated the Routetable to have .mvc extension infront of controller.

    Does the hoster needs to add .mvc mapping in his IIS ?. And what it should be mapped to ?

    Regards & thanks

    Kapil 

     

     

  • Re: Shared hosting and ASP.NET MVC

    03-22-2008, 11:48 AM
    • Loading...
    • tangle
    • Joined on 07-23-2002, 12:04 PM
    • Posts 72

    This is my script map on webhost4life. It still doesn't work all the time. One app works, but another one on another server doesn't. I can't figure it out. 

    .mvc  C:\WINDOWS\MICROSOFT.NET\FRAMEWORK\V2.0.50727\ASPNET_ISAPI.DLL

  • Re: Shared hosting and ASP.NET MVC

    03-22-2008, 2:58 PM
    • Loading...
    • Haacked
    • Joined on 09-17-2003, 2:43 PM
    • Posts 318
    • AspNetTeam

    Instead of .mvc, you could try using .aspx in your routes. Not as nice, but it ought to work. For example, your route url might look like:

     {controller}.aspx/{action}/{id}

    Phil Haack (http://haacked.com/)
    Senior Program Manager, Microsoft

    What wouldn’t you do for a Klondike bar?
  • Re: Shared hosting and ASP.NET MVC

    03-22-2008, 7:03 PM

    This is the first thing that I had tried [i.e. using .aspx in the routes] but it did not work. I saw it in web.config also, changing there did not make a difference.

     Is there any other place where I need to change .mvc to .aspx ?

    Regards & thanks

    Kapil

  • Re: Shared hosting and ASP.NET MVC

    03-23-2008, 7:50 AM
    • Loading...
    • srulyt
    • Joined on 02-02-2008, 6:16 PM
    • Posts 209

    If i'm not mistaken Discountasp offers iis7 hosting. You can ask for an upgrade and that should take care of your problem. In IIS7 you can register an asp.net httpmodule directly to IIS in the web.config file. The asp.net mvc web.config already comes with this configured and you should have no problem running in iis7.

    another option which is not very elegant and may slow your server is to rout all traffic to the asp.net isap dll. this slows performance but it was the only thing that worked for me in server 2003 with iis6.

    Filed under: ,
  • Re: Shared hosting and ASP.NET MVC

    06-30-2008, 4:48 AM
    • Loading...
    • oazabir
    • Joined on 12-31-2005, 4:45 PM
    • Kuala Lumpur, Malaysia
    • Posts 7
    I did the tricks mentioned in my blog post to get around the 404 problem and some other compression, caching and performance problems: http://msmvps.com/blogs/omar/archive/2008/06/30/deploy-asp-net-mvc-on-iis-6-solve-404-compression-and-performance-problems.aspx
    Regards,
    Omar AL Zabir
    Filed under:
  • Re: Shared hosting and ASP.NET MVC

    08-09-2008, 9:18 PM
    • Loading...
    • SpeedBump
    • Joined on 08-09-2008, 9:15 PM
    • Posts 1

    ksachdeva17:

    I am using discountasp.net as my hoster.

    Regards & thanks

    Kapil 

     

     

     Did you get anywhere with discountasp.net? I'm having the same issue, only when I deploy to their servers and I've made no changes to my own.

     

    Kind Regards,

    -Dye

Page 1 of 1 (7 items)
Microsoft Communities
Page view counter