You need to Register for free and Login to post a message in the forum.

Forum

Create new Events module from Events core module
Last Post 2007-02-22 05:44 AM by Andy Hock. 1 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Adrian Lazau-IgnaUser is Offline
Nuke Newbie
Nuke Newbie
Posts:3

--
2007-02-08 08:19 PM  

I have been trying to create my own Events module from the core Events module 03.02.00. I named this module TME_Events.

I will eventually also create my own tables, stored procedures used by the Events module using the prefix "TME_" but for now I am only trying to focus on the module itself to see if it even compiles.

Here are things that I have done:

1. I copied the Events (source code) folder (from underneath DesktopModules) and pasted it in the same location (under DesktopModules). I renamed this folder: TME_Events.

2. In all the ASCX file, I have changed the Inherits="Dotnetnuke.Modules.Events.xxxx" to Inherits="TME.Modules.TME_Events.xxxx" (where xxxx is the name of the ASCX file without the .ascx extension)

3. In all the VB files, I changed Namespace Dotnetnuke.Modules.Events to Namespace TME.Modules.TME_Events and Dotnetnuke.Events to TME.TME_Events

4. Replaced file paths (such as ???/Events/???) to ???/TME_Events/???) in every file.

5. Renamed the .dnn file to DNN_TME_Events.dnn and replaced any instance of the word Events to TME_Events inside this file

6. Compiled the entire DNN solution!

7. Logged in as the host to my DNN website, went under Module Definition, clicked Add new module definition, selected the DNN_TME_Events.dnn module manifest and clicked the Install button.

8. When I try to add the module to the page by selecting TME_Events from the drop down containing all available modules, I get the following error:

Error: TME_Events is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Could not load type 'TME.Modules.TME_Events.TME_Events'. ---> System.Web.HttpParseException: Could not load type 'TME.Modules.TME_Events.TME_Events'. ---> System.Exception: Could not load type 'TME.Modules.TME_Events.TME_Events'. ---> System.Exception: Could not load type 'TME.Modules.TME_Events.TME_Events'. ---> System.Web.HttpException: Could not load type 'TME.Modules.TME_Events.TME_Events'. at System.Web.UI.TemplateParser.GetType(String typeName, Boolean ignoreCase, Boolean throwOnError) at System.Web.UI.TemplateParser.ProcessInheritsAttribute(String baseTypeName, String codeFileBaseTypeName, String src, Assembly assembly) at System.Web.UI.TemplateParser.PostProcessMainDirectiveAttributes(IDictionary parseData) --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ProcessException(Exception ex) at System.Web.UI.TemplateParser.PostProcessMainDirectiveAttributes(IDictionary parseData) at System.Web.UI.TemplateParser.ProcessMainDirective(IDictionary mainDirective) at System.Web.UI.TemplateControlParser.ProcessMainDirective(IDictionary mainDirective) at System.Web.UI.TemplateParser.ProcessDirective(String directiveName, IDictionary directive) at System.Web.UI.BaseTemplateParser.ProcessDirective(String directiveName, IDictionary directive) at System.Web.UI.TemplateControlParser.ProcessDirective(String directiveName, IDictionary directive) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ProcessException(Exception ex) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath) at System.Web.UI.TemplateParser.ParseInternal() at System.Web.UI.TemplateParser.Parse() at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType() at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider) at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders() 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 ---

 

[If you are wondering, in the above error message the last TME_Events in 'TME.Modules.TME_Events.TME_Events' refers to the TME_Events.ascx]

It looks like the error might be caused by the TME_Events module DLLs not being created during compilation. [They cannot be found in the bin folder for the

DNN installation]. Why aren't they being created? Or is there a different reason for obtaining this error?

Andy HockUser is Offline
Nuke Pro
Nuke Pro
Posts:90
Avatar

--
2007-02-22 05:44 AM  
Is the .dll file included in the zip file? If you compile the entire DNN solution, I'm assuming you downloaded the source (which I agree is the right way to go), downlaoded the Events project source, copied this into a new folder under DesktopModules, changed the proj file accordingly, etc.

One thing you might try is to add the module one item at a time--by adding the view module, then edit, then controller, etc. Another thing to try is to make sure that your build makes a copy of the dll into the /bin folder. DotNetNuke definitely won't like it if the dll is not in the /bin folder...

Hope this helps...

DotNetNuke and .NET web parts, web services, modules and code snippets.
You are not authorized to post a reply.

Active Forums 4.3

Latest Forum Posts

iPhone website logo in DNN root directory by JohnnieD
I'm trying to put an iPhone logo that I made into my site so when someone saves the website on their
RE: Fixed size container by Joseph Craig
Use an HTML module and style the container to have a fixed height and width. Set the overflow attr
Fixed size container by Aggiedan97
I am looking for advice or an actual container that has a fixed height (and width). An HTML module w
RE: DNN 6.1 app_offline.htm by Joseph Craig
If the site "works" in Chrome, Firefox and Safari, but not in IE8 look to IE8 as the problem. It is
RE: DNN site automatically redirects to a different domain name. by Joseph Craig
Make a copy what is in the portalalias table and then remove all but the localhost entry. Verify th
DNN 6.1 app_offline.htm by Dave Hassall
Hi As recommended I have successfully been using the app_offline.htm whilst performing upgrades t
RE: DNN site automatically redirects to a different domain name. by imran shaikh
Hi i have done same as mention in this post my dnn folder name is Trademaxomanupg with
Enforce Terms Tutorial Update by Vistalogix Corporation
I tried configuring my DNN 6.1.2 install to have a required "accept terms" checkbox as described in
RE: Best Practices for Modifying a Custom Module by Joseph Craig
Start up the development website, then install the module using the package that you have. Then, yo
Best Practices for Modifying a Custom Module by schilders
Good Morning, I'm needing to modify a custom built module created by another developer targeted f
RE: Admin menu problem by alireza arabiyan
hi in localhost i have http://localhost/senf/خانه.aspx and http://localhost/senf/Admi
RE: Admin menu problem by Joseph Craig
Yes, that is what you should have done. What is the URL for your home page? What is the URL for
RE: Admin menu problem by alireza arabiyan
hi first in localhost i add my domain.com as portal alias. then copy all files to host , restore my
RE: Admin menu problem by Joseph Craig
How did you move it? Have you added an entry in the portalalias table for the site's domain name?
RE: Re: SQL SERVER 2008 R2 Remote connection by Joseph Craig
Set up a user with dbo privileges and set the connection string for that user, rather than using Win
Re: SQL SERVER 2008 R2 Remote connection by Prakasam Srinivasan
I have successfully configured MSSQL Server 2008 r2 remote connection. I am using windows 7 and it h
Admin menu problem by alireza arabiyan
hi i installed dnn 6 on localhost and move it in my host, all link's , pages and modules are ok,
RE: dnn 4.4 upgrade issue by imran shaikh
Thanks you all it is done by renaming release.config to web.config procedure
RE: dnn 4.4 upgrade issue by imran shaikh
Thanks you all it is done by renaming release.config to web.config
dnn 4.4 upgrade issue by imran shaikh
hi this is imran i am upgrading dnn 4.4 to dnn 6.0.2 and getting this error please help me for this
You are not logged in.
You must log in to access all 
650+ videos, tutorials, podcasts, and more.
RSS Feeds