.Net MVC site dont works in DiscountASP

Discussion in 'ASP.NET / ASP.NET Core' started by ghporras, Sep 14, 2010.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hello..

    I´m new here and I´m trying to Config a MVC 2.0 site here.

    I´ve uploaded our site to this host and its not working: http://tqmadridcom.eweb703.discountasp.net/

    It is made in .Net MVC 2 and i´ve copied in the bin folder the System.Web.Mvc.dll as your help says.

    This site it´s already working in ohter host as you can see: http://tqmadrid2.gabrielizalo.com/

    I think its problem with IIS configuration. If I use "Application Pool Pipeline Mode" in CLASSIC the home page works, but none of the internal pages. The Routes dont works.

    With Application Pool Pipeline Mode" in INTEGRATED no one page works and the error appears in a line Where I ask about the Current Context:

    if (HttpContext.Current == null || HttpContext.Current.Request == null || HttpContext.Current.Request.Cookies == null
    ...

    Also I´ve read about this error in this blog: http://mvolo.com/blogs/serverside/a...n-this-context-in-Application_5F00_Start.aspx

    That it is caused by the Application_Start, but we have no used this method apart MVC methods:

    protected void Application_Start()
    {
    AreaRegistration.RegisterAllAreas () ;
    RegisterRoutes ( RouteTable.Routes ) ;
    }


    Maybe can you help me?

    Thanks!
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    For MVC to work properly, you'll have to use Integrated Pipeline mode.
     
  3. Thanks Bruce...
    I´ve already the site in the Integrated mode.

    But I found the problem and the solution. I was strange but now it works..

    Thanks!
     
  4. mjp

    mjp

    What was the problem/solution?
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page