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

HomeHomeUsing DNN Platf...Using DNN Platf...Language and In...Language and In...App_GlobalResources Runtime Error/Issue With Pre-Compiled Version of 4.08.04 Source Code App_GlobalResources Runtime Error/Issue With Pre-Compiled Version of 4.08.04 Source Code
Previous
 
Next
New Post
9/5/2008 2:32 PM
 

This thread may be answered somewhere else, so forgive me and point me to the solutionI'm posting this in the Localization Forum, hoping the project team my know the answer to this...

I'm currently using DNN 4.08.04 and doing some module and skin development with the Full Source Code Version of DNN. 

That being so, I've created and tested my new modules and new skins on my local DEV environment and now want to push the entire site to my webhost4life ASP.Net account.

So, I have 2 options:

1
- Copy the entire project in its pre-compiled state to the webhost account
2 - Use VS2005's "Publish Website Feature" to create a Pre-Compiled and Faster Loading/Running Website

Well Option #1 works great, but I'm kind of funny about deploying Source Code to a production site.

Also, it runs so painfully slow without being precompiled.

So in this case I've chosen Option #2.

And herein lies the Problem:

1. When Publish the site and try to invoke it in a browser, I get the following runtime error: "Could not find a part of the Path C:\DotNetNuke\App_GlogalResources\Locales.xml"

2. And sure enough, when I look at my deployed project there is no App_GlobalResources folder. 

3. When I copy it there and invoke the site, I get a message "'App_GlobalResources/' is not allowed because the application is precompiled."

4. So, I start debugging this with VS2005 and set a break point to find out that the App_GlobalResources folder is hardcoded into the Localization.vb module via Line via Line 819 and the static object
Localization.ApplicationResourceDirectory

5. See my VS2005 Screen shots.....

http://www.gorudeetours.com/DebugStuff/Local_XML_Not_Found1.png
http://www.gorudeetours.com/DebugStuff/App_GlobalResources_not_allowed1.png
http://www.gorudeetours.com/DebugStuff/App_GlobalResources_not_allowed2.png


Solution?

* I can always hard code around this and deploy the files in App_GlobalResources to another directory, but that sound like hack. 

* Or, I research MSDN on the proper deployment steps for packaging resource files in an ASP.Net precompiled project but I thought that this would have been covered by the DNN Localization Team. However, I can't find anything on DNN about this either...

Finally,what does the Core Team do to package the runtime (none source version) of DNN...?

This thread may be answered somewhere else, so forgive me and point me to the solution.

Thank you and Best Regards to All,
Fletcher

 
New Post
9/5/2008 3:40 PM
 

please be informed, that precompilation is currently not supported by DNN, Thank you.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
9/5/2008 4:40 PM
 

to elaborate on that a bit more: we have investigated this extensively, and the main culprit is the way we store paths to localization files in the core. This is done by using constants. Constant values are copied to assemblies referencing the dotnetnuke assembly upon compile. This means that if the constant value is changed, all compiled modules will stop to support localization (as they can no longer find the resource files)... you can imagine we did not want to go down that road.

 


Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
New Post
9/5/2008 4:50 PM
 


Alex Shirley


 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Language and In...Language and In...App_GlobalResources Runtime Error/Issue With Pre-Compiled Version of 4.08.04 Source Code App_GlobalResources Runtime Error/Issue With Pre-Compiled Version of 4.08.04 Source Code


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