Developer forum

Forum » Development » DW 9.9.2 as an MVC Install

DW 9.9.2 as an MVC Install

Kevin O'Driscoll
Reply

Hi Im trying to set up a DW 9.9.2 impementation as an MVC install following this document:
http://doc.dynamicweb-cms.com/Files/Files/Forum/Upload/Thread45665/Message46778/Setting_up_Dynamicweb_with_MVC.docx

Unfortunately I get this in VS. All References and .dlls are in place in the solution:
The type or namespace name 'PageviewControl' does not exist in the namespace 'Dynamicweb.Frontend' (are you missing an assembly reference?)

using System;

namespace Dynamicweb10MVC
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Output.Controls.Add(new Dynamicweb.Frontend.PageviewControl());
        }
    }
}

Any ideas why this does not work?

DW_MVC.jpg

Replies

 
Nicolai Pedersen
Reply

System.web.ui.page is not mvc but good old web controls. And there is no PageViewControl (and if we had one, it must have been DW8).

So you seem to mix up some different things here?

What are you trying to achieve? Why would you put the pageview object in MVC context?

Also see this one: https://doc.dynamicweb.com/forum/dynamicweb-9-0-upgrade-issues/dynamicweb-9-0-upgrade-issues/using-webapi-with-attribute-routing-in-dw-9

BR 

 

You must be logged in to post in the forum