I have created a module following Michael Washington's guide on creating a module for DNN 4, located here http://www.dotnetnuke.com/Community/Blogs/tabid/825/EntryID/1140/Default.aspx
I created the module using Visual Studio's 2005 Standard and DNN 4.5.1.
I have packaged the module and can install the module on other DNN 4.5.1 sites. However, if I try to install the module on any 4.x site less than 4.5.1 I get an error.
Error: UserDirectory is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\dnn437\09c73e46\a7d93426\App_Web_viewuserdirectory.ascx.39a9c34e.ajooarys.0.vb(56): error BC32206: Indirect reference is being made to assembly DotNetNuke version 4.5.1.28, which contains 'StuartHilbert.Modules.UserDirectory.ViewUserDirectory'. This Project references a prior version of DotNetNuke version 4.3.7.14114. To use 'StuartHilbert.Modules.UserDirectory.ViewUserDirectory', you must replace the reference to DotNetNuke with version 4.5.1.28 or higher. ---> System.Web.HttpCompileException: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\dnn437\09c73e46\a7d93426\App_Web_viewuserdirectory.ascx.39a9c34e.ajooarys.0.vb(56): error BC32206: Indirect reference is being made to assembly DotNetNuke version 4.5.1.28, which contains 'StuartHilbert.Modules.UserDirectory.ViewUserDirectory'. This Project references a prior version of DotNetNuke version 4.3.7.14114. To use 'StuartHilbert.Modules.UserDirectory.ViewUserDirectory', you must replace the reference to DotNetNuke with version 4.5.1.28 or higher. 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) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at System.Web.UI.TemplateControl.LoadControl(String virtualPath) at DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings) --- End of inner exception stack trace ---
I have seen some mention aroudn the forums about this but I haven't figured out how to address the issue. How do I get my module to work on all versions of DNN 4?
Thank You,
Stuart