ASP.Net MVC 3

Discussion in 'Hosting Services / Control Panel' started by KeelRisk, Jan 8, 2011.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. When will ASP.Net MVC 3 be supported by DiscountAsp.net? I would like to use the new MVC 3 razor view engine and need to know approximate timing when this will be supported.

    Thanks a lot!
    Jim
     
  2. ...Search the forums, I think it is supported now if you deploy the binaries to your /bin/ folder. I'm not sure but I think a few have posted that.
     
  3. Bruce

    Bruce DiscountASP.NET Staff

    Razor and MVC 3 are both bin deployable, ie. you can simply upload all the dlls onto your site's bin directory.
     
  4. vbphil

    vbphil Guest

    cshtml page won't display

    I'd like some help getting a Razor page (.cshtml) to display on my discountASP web site. Here's what I've done so far. I've upgraded my dev PC VS2010 with SP1 and the addons for MVC3, IIS 7 Express and all the rest. Razor pages are playing fine on my PC.

    My discountASP site is configured for .NET 4 and I've added

    <security>
    <requestFiltering>
    <fileExtensions>
    <remove fileExtension=".cshtml" />
    <add fileExtension=".cshtml" allowed="true" />
    </fileExtensions>
    </requestFiltering>
    </security>

    to the web.config as I saw in other posts.

    I created a simple cshtml page and uploaded it to the root of my existing site. When I request the page I'm getting the "This type of page is not served error".

    I haven't uploaded any MVC3 or Razor DLLs to my site. Is this still required and if so what are those DLL names and where do I find them?

    Thanks, -phil
     
  5. vbphil

    vbphil Guest

    It's Working now

    I found a Blog on DiscountASP pertaining to what binaries are required for MVC3 which would include Razor support.

    Getting ASP.NET MVC 3 working on DiscountASP.net; http://blog.discountasp.net/getting-asp-net-mvc-3-working-on-discountasp-net/

    Even though I was getting a different error than what was mentioned in the Blog, loading the binaries fixed my issue.

    In my VS Project I selected to Add Deployable Dependencies in the Project and selected the choice; ASP.NET Web Pages with Razor Syntax. I copied these assemblies to my Bin folder and the cshtml pages are now rendered. :)

    BTW... I also set up to remotely administer my site with the IIS 7 Manager as detailed in other articles on DiscountASP to verify that cshtml files were not forbidden. Using the Request Filtering plugin for the Manager I saw that cshtml was marked True so that was already preset. With that, the additional <security> tag entry is not required in the web.config file.

    bye for now... -phil
     
  6. RayH

    RayH DiscountASP.NET Lackey DiscountASP.NET Staff

    Glad you were able to get everything working, Phil. :)
     
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