ASP.NET MVC Configuration

You can either use the sample project MethodWorx.CMS.WebSite as a starting point, or deploy your own MVC Project (The projects can also be executed from visual studio in debug mode(
  1. Create a database in SQL Server 2008 Express or Above, and copy the schema to the database from the MethodWorx.CMS.Database project. By default the system uses a database name called "CMS" however this can be changed
  2. Publish the MethodWorx.CMS.UI project to IIS
  3. Publish the MethodWorx.CMS.WebSite project to IIS or your own
  4. If you are not using the database name CMS, or the database is not on your local server you can set the connection string the appSettings of the web.config file of MethodWorx.CMS.UI, and the WebConfiguration section of MethodWorx.CMS.WebSite project
  5. Any controllers that require access to the CMS should inhert from ContentController
  6. If you are using your own MVC Project, ensure the following items are in the web.config file:

    <sectionGroup name="mwcms">
      <section name="web" type="MethodWorx.CMS.Configuration.WebConfiguration, MethodWorx.CMS"/>

      <provider type="MethodWorx.CMS.Providers.SqlServer, MethodWorx.CMS" connectionString="Data Source=localhost\sqlexpress; Initial Catalog=cms; Integrated Security=SSPI; MultipleActiveResultSets=true"/>
      <service abstract="MethodWorx.CMS.Plugins.ITemplateCompilationProvider, MethodWorx.CMS" concrete="MethodWorx.CMS.TemplateParser.Compiler.TemplateCompiler, MethodWorx.CMS.TemplateParser"/>

        <add tagPrefix="mwcms" assembly="MethodWorx.CMS.Web" namespace="MethodWorx.CMS.Web"/>

  <modules runAllManagedModulesForAllRequests="true">
      <add name="MethodWorx Plugins" type="MethodWorx.CMS.Web.Mvc.PluginModule, MethodWorx.CMS" />

You can now Attempt to log in, if the database is empty it should create a default user with the username: admin and password: admin

Last edited Jun 13, 2011 at 9:33 PM by methodworx, version 3


No comments yet.