Hi,
Installed the Install Package from DNN website and the Project Template in Visual Studio.
I generate the module like as I downloaded it to make a simple test. But this one failed.
I obtained the following error :
Error: MODULE is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: Type 'ASP._Page_DesktopModules_MVC_DNN_POP_Slider_Views__ViewStart_cshtml' does not inherit from 'System.Web.WebPages.StartPage'. ---> System.Web.HttpException: Type 'ASP._Page_DesktopModules_MODULE_Views__ViewStart_cshtml' does not inherit from 'System.Web.WebPages.StartPage'. at System.Web.UI.Util.CheckAssignableType(Type baseType, Type type) at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) at System.Web.WebPages.BuildManagerWrapper.CreateInstanceOfType[T](String virtualPath) at System.Web.WebPages.VirtualPathFactoryManager.CreateInstanceOfType[T](String virtualPath) at System.Web.WebPages.StartPage.GetStartPage(WebPageRenderingBase page, IVirtualPathFactory virtualPathFactory, String appDomainAppVirtualPath, String fileName, IEnumerable`1 supportedExtensions) at System.Web.WebPages.StartPage.GetStartPage(WebPageRenderingBase page, String fileName, IEnumerable`1 supportedExtensions) at System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) at DotNetNuke.Web.Mvc.Framework.ActionResults.DnnViewResult.ExecuteResult(ControllerContext context, TextWriter writer) at DotNetNuke.Web.Mvc.MvcHostControl.RenderModule(ModuleRequestResult moduleResult) at DotNetNuke.Web.Mvc.MvcHostControl.OnPreRender(EventArgs e) --- End of inner exception stack trace ---
If I try to add an item when I am logged as an administrator I ve this error :
Error: is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: c:\inetpub\wwwroot\Sons of Inlay\DesktopModules\MODULE\Views\Item\Edit.cshtml(24): error CS1928: 'DotNetNuke.Web.Mvc.Helpers.DnnHtmlHelper<namespace
.Module.Models.Item>' ne contient pas une définition pour 'DropDownListFor' et la meilleure surcharge de la méthode d'extension 'DotNetNuke.Web.Mvc.Helpers.HtmlSelectExtensions.DropDownListFor<TModel,TProperty>(DotNetNuke.Web.Mvc.Helpers.DnnHtmlHelper<TModel>, System.Linq.Expressions.Expression<System.Func<TModel,TProperty>>, System.Collections.Generic.IEnumerable<System.Web.Mvc.SelectListItem>, object)' contient des arguments non valides ---> System.Web.HttpCompileException: c:\inetpub\wwwroot\Website\DesktopModules\DNN_POP_Slider\Views\Item\Edit.cshtml(24): error CS1928: 'DotNetNuke.Web.Mvc.Helpers.DnnHtmlHelper<namespace.Module.Models.Item>' ne contient pas une définition pour 'DropDownListFor' et la meilleure surcharge de la méthode d'extension 'DotNetNuke.Web.Mvc.Helpers.HtmlSelectExtensions.DropDownListFor<TModel,TProperty>(DotNetNuke.Web.Mvc.Helpers.DnnHtmlHelper<TModel>, System.Linq.Expressions.Expression<System.Func<TModel,TProperty>>, System.Collections.Generic.IEnumerable<System.Web.Mvc.SelectListItem>, object)' contient des arguments non valides at System.Web.Compilation.AssemblyBuilder.Compile() at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) at System.Web.Compilation.BuildManager.GetCompiledType(VirtualPath virtualPath) at System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) at DotNetNuke.Web.Mvc.Framework.ActionResults.DnnViewResult.ExecuteResult(ControllerContext context, TextWriter writer) at DotNetNuke.Web.Mvc.MvcHostControl.RenderModule(ModuleRequestResult moduleResult) at DotNetNuke.Web.Mvc.MvcHostControl.OnPreRender(EventArgs e) --- End of inner exception stack trace ---
And in the Views\Items\edit.cshtml
It seems that :
Html.TextBoxFor, Html.DropDownListFor
cannot be found in the assembly but it well referenced in the project
I need some help to solve this issue
Regards