Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesDNN MVC Module developmentDNN MVC Module development
Previous
 
Next
New Post
2/10/2016 1:08 PM
 

I tried to create the Dnn Mvc Module by using the mvc module template in VS2015, but it shows quite a few errors:

such as: the type of namespace name "LocalizeString" does not exit in the namespace "Dnn";

The name "ViewBag" does not exist in the current content;  .. etc.

And when I try to add a controller or add a view, it always show the error below:

Error: There was an error running the selected code generator. 'The parameter is incorrect 

(Exception from HRESULT:0x80070057(E_INVALIDARG))'.

Does anyone have any idea about this problem?

Thanks.



 

 

 
New Post
2/10/2016 10:45 PM
 
I created a video of how to create the project using the template tonight, and to debug.

https://www.youtube.com/watch?v=oEtGL...

The LocalizeString type issues, don't prevent you from compiling and running the module, but do show up as an issue.

As for the problems adding a controller or a view, I am at a loss for that. Did you create the project in /desktopmodules/mvc/ModuleName?

Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
2/11/2016 7:08 AM
 
Thank you Chris. Does this mean that the templates Joe Brinkman published before are now obsolete? I know you guys worked together on this.
 
New Post
2/11/2016 7:39 AM
 

Doesn't work to install the SOURCE ZIP of fresh module created with the new DNN 8 MVC template. The INSTALL ZIP installs fine  though.

StartJob Starting Installation
Info Starting Installation - DNNModule1
Info Starting Installation - Script
Info Begin Sql execution
Info Folder Created - D:\Projects\DNN\www\DNN8\DesktopModules\MVC\DNNModule1\Providers\DataProviders\SqlDataProvider
Info Created - Providers\DataProviders\SqlDataProvider\00.00.01.SqlDataProvider
Info Executing 00.00.01.SqlDataProvider
Info Start Sql execution: 00.00.01.SqlDataProvider file
Info End Sql execution: 00.00.01.SqlDataProvider file
Info Created - Providers\DataProviders\SqlDataProvider\Uninstall.SqlDataProvider
Info Finished Sql execution
Info Component installed successfully - Script
Info Starting Installation - ResourceFile
Info Expanding Resource file
Info Creating backup of previous version - DNNModule1.csproj
Info Created - DNNModule1.csproj
Info Creating backup of previous version - DNNModule1.sln
Info Created - DNNModule1.sln
Info Created - License.txt
Info Created - module.css
Info Created - ReleaseNotes.txt
Info Creating backup of previous version - App_LocalResources\Item.resx
Info Created - App_LocalResources/Item.resx
Info Creating backup of previous version - App_LocalResources\Settings.resx
Info Created - App_LocalResources/Settings.resx
Info Creating backup of previous version - BuildScripts\ModulePackage.targets
Info Created - BuildScripts/ModulePackage.targets
Info Creating backup of previous version - BuildScripts\MSBuild.Community.Tasks.Targets
Info Created - BuildScripts/MSBuild.Community.Tasks.Targets
Info Creating backup of previous version - Components\FeatureController.cs
Info Created - Components/FeatureController.cs
Info Creating backup of previous version - Components\ItemManager.cs
Info Created - Components/ItemManager.cs
Info Creating backup of previous version - Controllers\ItemController.cs
Info Created - Controllers/ItemController.cs
Info Creating backup of previous version - Controllers\SettingsController.cs
Info Created - Controllers/SettingsController.cs
Info Creating backup of previous version - Documentation\Documentation.css
Info Created - Documentation/Documentation.css
Info Creating backup of previous version - Documentation\Documentation.html
Info Created - Documentation/Documentation.html
Info Creating backup of previous version - Models\Item.cs
Info Created - Models/Item.cs
Info Creating backup of previous version - Models\Settings.cs
Info Created - Models/Settings.cs
Info Creating backup of previous version - obj/Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
Info Created - obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
Info Creating backup of previous version - obj/Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
Info Created - obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
Info Creating backup of previous version - obj/Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
Info Created - obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
Info Creating backup of previous version - obj/Release\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
Info Created - obj/Release/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
Info Creating backup of previous version - obj/Release\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
Info Created - obj/Release/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
Info Creating backup of previous version - obj/Release\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
Info Created - obj/Release/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
Info Creating backup of previous version - packages/Microsoft.AspNet.Mvc.5.1.1\Microsoft.AspNet.Mvc.5.1.1.nupkg
Info Created - packages/Microsoft.AspNet.Mvc.5.1.1/Microsoft.AspNet.Mvc.5.1.1.nupkg
Info Creating backup of previous version - packages/Microsoft.AspNet.Mvc.5.1.1/Content\Web.config.install.xdt
Info Created - packages/Microsoft.AspNet.Mvc.5.1.1/Content/Web.config.install.xdt
Info Creating backup of previous version - packages/Microsoft.AspNet.Mvc.5.1.1/Content\Web.config.uninstall.xdt
Info Created - packages/Microsoft.AspNet.Mvc.5.1.1/Content/Web.config.uninstall.xdt
Info Creating backup of previous version - packages/Microsoft.AspNet.Mvc.5.1.1/lib/net45\System.Web.Mvc.dll
Info Created - packages/Microsoft.AspNet.Mvc.5.1.1/lib/net45/System.Web.Mvc.dll
Info Creating backup of previous version - packages/Microsoft.AspNet.Mvc.5.1.1/lib/net45\System.Web.Mvc.xml
Info Created - packages/Microsoft.AspNet.Mvc.5.1.1/lib/net45/System.Web.Mvc.xml
Info Creating backup of previous version - packages/Microsoft.AspNet.Razor.3.1.2\Microsoft.AspNet.Razor.3.1.2.nupkg
Info Created - packages/Microsoft.AspNet.Razor.3.1.2/Microsoft.AspNet.Razor.3.1.2.nupkg
Info Creating backup of previous version - packages/Microsoft.AspNet.Razor.3.1.2/lib/net45\System.Web.Razor.dll
Info Created - packages/Microsoft.AspNet.Razor.3.1.2/lib/net45/System.Web.Razor.dll
Info Creating backup of previous version - packages/Microsoft.AspNet.Razor.3.1.2/lib/net45\System.Web.Razor.xml
Info Created - packages/Microsoft.AspNet.Razor.3.1.2/lib/net45/System.Web.Razor.xml
Info Creating backup of previous version - packages/Microsoft.AspNet.WebPages.3.1.1\Microsoft.AspNet.WebPages.3.1.1.nupkg
Info Created - packages/Microsoft.AspNet.WebPages.3.1.1/Microsoft.AspNet.WebPages.3.1.1.nupkg
Info Creating backup of previous version - packages/Microsoft.AspNet.WebPages.3.1.1/Content\Web.config.install.xdt
Info Created - packages/Microsoft.AspNet.WebPages.3.1.1/Content/Web.config.install.xdt
Info Creating backup of previous version - packages/Microsoft.AspNet.WebPages.3.1.1/Content\Web.config.uninstall.xdt
Info Created - packages/Microsoft.AspNet.WebPages.3.1.1/Content/Web.config.uninstall.xdt
Info Creating backup of previous version - packages/Microsoft.AspNet.WebPages.3.1.1/lib/net45\System.Web.Helpers.dll
Info Created - packages/Microsoft.AspNet.WebPages.3.1.1/lib/net45/System.Web.Helpers.dll
Info Creating backup of previous version - packages/Microsoft.AspNet.WebPages.3.1.1/lib/net45\System.Web.Helpers.xml
Info Created - packages/Microsoft.AspNet.WebPages.3.1.1/lib/net45/System.Web.Helpers.xml
Info Creating backup of previous version - packages/Microsoft.AspNet.WebPages.3.1.1/lib/net45\System.Web.WebPages.Deployment.dll
Info Created - packages/Microsoft.AspNet.WebPages.3.1.1/lib/net45/System.Web.WebPages.Deployment.dll
Info Creating backup of previous version - packages/Microsoft.AspNet.WebPages.3.1.1/lib/net45\System.Web.WebPages.Deployment.xml
Info Created - packages/Microsoft.AspNet.WebPages.3.1.1/lib/net45/System.Web.WebPages.Deployment.xml
Info Creating backup of previous version - packages/Microsoft.AspNet.WebPages.3.1.1/lib/net45\System.Web.WebPages.dll
Info Created - packages/Microsoft.AspNet.WebPages.3.1.1/lib/net45/System.Web.WebPages.dll
Info Creating backup of previous version - packages/Microsoft.AspNet.WebPages.3.1.1/lib/net45\System.Web.WebPages.Razor.dll
Info Created - packages/Microsoft.AspNet.WebPages.3.1.1/lib/net45/System.Web.WebPages.Razor.dll
Info Creating backup of previous version - packages/Microsoft.AspNet.WebPages.3.1.1/lib/net45\System.Web.WebPages.Razor.xml
Info Created - packages/Microsoft.AspNet.WebPages.3.1.1/lib/net45/System.Web.WebPages.Razor.xml
Info Creating backup of previous version - packages/Microsoft.AspNet.WebPages.3.1.1/lib/net45\System.Web.WebPages.xml
Info Created - packages/Microsoft.AspNet.WebPages.3.1.1/lib/net45/System.Web.WebPages.xml
Info Creating backup of previous version - packages/Microsoft.Web.Infrastructure.1.0.0.0\Microsoft.Web.Infrastructure.1.0.0.0.nupkg
Info Created - packages/Microsoft.Web.Infrastructure.1.0.0.0/Microsoft.Web.Infrastructure.1.0.0.0.nupkg
Info Creating backup of previous version - packages/Microsoft.Web.Infrastructure.1.0.0.0/lib/net40\Microsoft.Web.Infrastructure.dll
Info Created - packages/Microsoft.Web.Infrastructure.1.0.0.0/lib/net40/Microsoft.Web.Infrastructure.dll
Info Creating backup of previous version - packages/MSBuildTasks.1.4.0.88\MSBuildTasks.1.4.0.88.nupkg
Info Created - packages/MSBuildTasks.1.4.0.88/MSBuildTasks.1.4.0.88.nupkg
Info Creating backup of previous version - packages/MSBuildTasks.1.4.0.88/content\MSBuild.Community.Tasks.ReadMe.md
Info Created - packages/MSBuildTasks.1.4.0.88/content/MSBuild.Community.Tasks.ReadMe.md
Info Creating backup of previous version - packages/MSBuildTasks.1.4.0.88/tools\Build.proj
Info Created - packages/MSBuildTasks.1.4.0.88/tools/Build.proj
Info Creating backup of previous version - packages/MSBuildTasks.1.4.0.88/tools\Install.ps1
Info Created - packages/MSBuildTasks.1.4.0.88/tools/Install.ps1
Info Creating backup of previous version - packages/MSBuildTasks.1.4.0.88/tools\MSBuild.Community.Tasks.dll
Failure Installation Failed - ResourceFile
Info Rolling back component install - Script
Info Component rolled back successfully - Script
Info Installation Failed - DNNModule1
Info Deleted temporary install folder
EndJob Installation Failed

 

 
New Post
2/11/2016 9:53 AM
 
Which version of the MVC module template did you use (my original template, the updated template from DNNSoftware, or the one from Chris Hammond)?  What directory did you use when creating your module?  It sounds like you didn't create your module in the Desktopmodules/MVC directory.  This directory contains a web.config file which sets up the proper base class for views. That base class is where the @dnn helper is wired up.  That is likely the root of your problems.

Joe Brinkman
DNN Corp.
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesDNN MVC Module developmentDNN MVC Module development


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out