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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Problem packaging a moduleProblem packaging a module
Previous
 
Next
New Post
12/12/2007 12:57 PM
 

Hello everybody,

I've created a module and I've packaged it using this tutorial:

 http://adefwebserver.com/DotNetNukeHELP/DNN_PackageModule/Default.htm

I've created a source package and an install package.

The source package works fine, I've tried to install the module and there is no problem.

But with the install package I've got a problem. The installation of the module is ok, but if I put a module instance in a page I've got an error message, which says that it can't find the View user control. So I've controlled in module definition, I've clicked on the pencil near the user control and I've seen that in the dropdownlistlist in which you can choose the source instead of DesktopModules/MyModule/ViewMyModule.ascx there is DesktopModules/MyModule/MyModule_01.00.00_Install/ViewMyModule.ascx. And for the other user controls is the same.

How can I solve the problem?

I've controlled my dnn file and it seems ok...

Any help will be appreciate.

 

 
New Post
12/13/2007 5:55 AM
 

Please help me, I've tried and tried and tried...

If I install the Source package there is no problem. But if I try with Install package the folder MyModule is correctly created under DesktopModules directory. And also folders MyModule/App_LocalResources, MyModule/DataProviders and MyModules/Images are correctly created. The problem is that other files (for example ViewMyModule.ascx) aren't placed in MyModule folder, they are placed in MyModule/MyModule_01.00.00_Install subfolder.

Anyone can help me please?

Some DNN guru? Someone which had the same problem and has solved it?

 
New Post
12/13/2007 8:47 AM
 

Have a look in the MyModule.dnn file and make sure everything is included that should be. Also compare your dnn file with the source dnn file and see if there are major differences.


Steve White
 
New Post
12/13/2007 9:04 AM
 

The dnn file seems to be ok...

The differences from the dnn file of source version are:

  • There are no references to any .cs file
  • There are references to dll of the module I have obtained publishing the web site.

Any ideas?

I can't understand where is the error...

 

 
New Post
12/13/2007 10:02 AM
 

Here is my dnn file, perhaps it can help solve the problem:

<dotnetnuke version="3.0" type="Module">
  <folders>
    <folder>
      <name>MyModule</name>
      <friendlyname>MyModule</friendlyname>
      <foldername>MyModule</foldername>
      <modulename>MyModule</modulename>
      <description>MyModule</description>
      <version>01.00.00</version>
     <businesscontrollerclass>MyCompany.Modules.MyModule.MyModuleController</businesscontrollerclass>
      <modules>
        <module>
          <friendlyname>MyModule</friendlyname>
          <cachetime>0</cachetime>
          <controls>
            <control>
             <src>DesktopModules/MyModule/ViewMyModule.ascx</src>
              <type>View</type>
            </control>
            <control>
              <key>Edit</key>
              <title>Edit Content</title> <src>DesktopModules/MyModule/EditMyModule.ascx</src>
              <type>Edit</type>
            </control>
            <control>
              <key>Settings</key>
              <title>MyModule Settings</title>
             <src>DesktopModules/MyModule/Settings.ascx</src>
              <type>Edit</type>
            </control>
          </controls>
        </module>
      </modules>
      <files>
        <file>
          <path>App_LocalResources</path>
          <name>EditMyModule.ascx.it-IT.resx</name>
        </file>
        <file>
          <path>App_LocalResources</path>
          <name>EditMyModule.ascx.resx</name>
        </file>
        <file>
          <path>App_LocalResources</path>
          <name>Settings.ascx.it-IT.resx</name>
        </file>
        <file>
          <path>App_LocalResources</path>
          <name>Settings.ascx.resx</name>
        </file>
        <file>
          <path>App_LocalResources</path>
          <name>ViewMyModule.ascx.it-IT.resx</name>
        </file>
        <file>
          <path>App_LocalResources</path>
          <name>ViewMyModule.ascx.resx</name>
        </file>
        <file>
          <path>Images</path>
          <name>defaultPreview.bmp</name>
        </file>
        <file>
          <path>Images</path>
          <name>Thumbs.db</name>
        </file>
        <file>
         <path>Providers\DataProviders\SqlDataProvider</path>
          <name>01.00.00.SqlDataProvider</name>
        </file>
        <file>
          <name>EditMyModule.ascx</name>
        </file>
        <file>
          <name>module.css</name>
        </file>
        <file>
          <name>Settings.ascx</name>
        </file>
        <file>
          <name>Uninstall.SqlDataProvider</name>
        </file>
        <file>
          <name>ViewMyModule.ascx</name>
        </file>
   <file>
 <name>App_Web_viewMyModule.ascx.4bb0b1ff.dll</name>
        </file>
        <file>
          <name>App_SubCode_MyModule.dll</name>
        </file>
        <file>
         <name>App_Web_editMyModule.ascx.4bb0b1ff.dll</name>
        </file>
      </files>
    </folder>
  </folders>
</dotnetnuke>

Where .dll files are the dll I have obtained publishing the web site. (Visual Studio: Open -> Web Site -> DotNetNuke/Website. Then Build -> Publish Web Site. I have checked the firs two checkboxes, the site has been published. I have found all dll with "MyModule" in name, and I've copied them in the install folder. As the tutorial said.).

There is something wrong in my dnn file or in what I've done?

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Problem packaging a moduleProblem packaging a module


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