When recompiling a DotNetNuke using version 4.0.3 the App_GlobalResources
directory is removed and all files are compiled into an assembly. This causes issues for DotNetNuke localization. It is not possible to copy this directory to a precompiled
site as you will get the following error.
The directory '/DotNetNuke/App_GlobalResources/' is not
allowed because the application is precompiled.
3 solutions I see for this ….
- Rename
App_GlobalResources directory to AppGlobalResources. Change line 62 in Localization.vb to
Public Const
ApplicationResourceDirectory As String = "~/AppGlobalResources"
I have done this
on my local machine for now and it appears to work ok
- Rename
App_GlobalResources directory to App_localRespource. This directory is not
precompiled if site is set to be updateable. This might not be ideal if site is to be
compiled with no update option.
- Change
logic engine to pull resources from DLL. Probably not ideal as two code bases would
need to be maintained
Any thoughts?
Bert