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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...CanCan't read module resource file - Please help
Previous
 
Next
New Post
11/30/2009 5:11 PM
 

 Hi,

I am using the Dnn5.2.0 install on localhost to develop a simple module.

I am using windows 7 as my development platform.

I am using IIS7.

I am using SQL2005 for my DB.

I have created a custom module using the 'DotNetNuke Compiled Module' template - It installs ok.

My Dnn5.2 website works fine, but I am having serious problems reading from my modules resource file (see code below).

This line of code  Localization.GetString("DefaultContent", LocalResourceFile) RETURNS NULL.

The resource file exists as does the 'DefaultContent' key.

I think this may be a permissions problem, but I can't seem to pinpoint the problem - PLEASE COULD SOMEONE HELP.

Any help appreciated.

Regards,

Paul.

 

// add the content to the SandboxModule table SandboxModuleInfo objSandboxModule = new SandboxModuleInfo();Localization.GetString("DefaultContent", LocalResourceFile);this.UserId;

 

 

objSandboxModule.ModuleId = ModuleId;

objSandboxModule.Content =

objSandboxModule.CreatedByUser =

objSandboxModules.AddSandboxModule(objSandboxModule);

 

 
New Post
12/2/2009 3:22 AM
 

Please could someone help.

Regards,

Paul

 
New Post
12/2/2009 4:05 AM
 

please make sure you took care of capitalisation for the resourcekey, this is a typical issue.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
12/3/2009 12:57 AM
 
DNN 5.2 I have created a new module using the starter kit. Out of the box I get an exception of line 96 If objLoadASXData.Content .trim <> "" Then When I tracked this back I found that the set in the Content property was setting the Content to nothing. objLoadASXData.Content = Localization.GetString("DefaultContent", LocalResourceFile) I found that the Localization.GetString for DefaultContent was setting the Content value to Nothing or in other words not finding the key in the resource file. I have checked that the resource file exists and has the "DefaultContent" key in it (I also tried adding the .Text extension with no luck) all capitalization correct Dim sString As String sString = Localization.GetString("String1", LocalResourceFile) I also tried adding a new key ("String1") still with no luck My problem is very similiar to Pauls Any ideas Graeme
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...CanCan't read module resource file - Please help


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