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.0Error Installing Resource Files from Private AssemblyError Installing Resource Files from Private Assembly
Previous
 
Next
New Post
4/17/2006 6:01 PM
 

Hello to all,

    I am trying to install a private assembly which contains the localization resources found in the App_LocalResources directory of the module.  I've created an App_LocalResources.zip file (I've tried it with having a root App_LocalResources directory and all resource files contained under it and also with all of the resource files in the root directory of the .zip, neither way seems to work), and I've added the file to the module manifest with the following entry:

<file>
    <name>App_LocalResources.zip</name>
</file>  

I've placed this file into the private assembly .zip file and when I go to perform the install, I get the following messages (excerpts from the logs):

...

Info Loading App_LocalResources.zip
Info File App_LocalResources.zip read successfully
EndJob

Reading files done.

Info

Created C:\DNN_4.0.2\Website\DesktopModules\Dashboard\App_LocalResources.zip
Info Created C:\DNN_4.0.2\Website\DesktopModules\Dashboard\Dashboard.dnn
EndJob Files created

However, I don't see the files installed anywhere (either in App_LocalResources or in the module root directory).  I think I must be missing something pretty basic.  Does anyone have any ideas that might be able to help get me on the right path?

Thanks in advance for your help!

Justin

 
New Post
4/17/2006 7:40 PM
 

are you creating the file manually, as the best way is to get the portal to do it for you. log in  as admin, and go to admin->languages. Click "create language pack", and then select "module" as the type and your module.

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
4/17/2006 9:40 PM
 

The way to do this is to create the resources zip file with a folder hirearchy matching that into which (relative to the main module folder) you want the various files placed. So, your .ascx.resx files should be placed into a App_LocalResources folder within the resources zip file. Then, rather than specifying this resources zip file in a <file> node of the DNN manifest file, it needs to be specified in a <resourcefile> node.  The name of the resources zip file is not relavent as long as its name matches that in the <resourcefile node>. The <resourcefile> node should be placed under the <folder> node.

So, in the DNN manifest:

<?xml version="1.0" encoding="utf-8" ?>
   <dotnetnuke version="3.0" type="module">
       <folders>
            <folder>
                 <name>Dashboard</name>
                 <description> .... </description>
                 <version> .... </version>
                 <businesscontrollerclass> .... </businesscontrollerclass>
                 <resourcefile>resources.zip</resourcefile>
                 <modules>
                        <module>

                 . . . and so on

 


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
4/18/2006 5:16 PM
 

Cathal and Bill,

    Thanks for  taking the time to respond.  I used the <resourcefile> tag and it works perfectly now.  I appreciate all of your help!

Justin

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Error Installing Resource Files from Private AssemblyError Installing Resource Files from Private Assembly


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