Published on: http://shiningrise.cnblogs.com/(reprinted please keep this link)
After dnn is pre-compiled, the resource file cannot be found.
See F: \ programming \ dnn \ dnn4.5.5 \ dotnetnuke_04.05.05_source \ library \ Components \ localization. VB
# Region
"Constants"
Friend
Const keyconst
String = "resourcekey"
Public
Const systemlocale
String = "En-us"
Public
Const sharedresourcefile
String = applicationresourcedirectory + "/sharedresources. resx"
Public
Const localresourcedirectory
String = "app_localresources"
Public
Const localsharedresourcefile
String = "sharedresources. resx"
Public
Const applicationresourcedirectory
String = "~ /App_globalresources"
Public
Const globalresourcefile
String = applicationresourcedirectory + "/globalresources. resx"
Public
Const supportedlocalesfile
String = applicationresourcedirectory + "/locales. xml"
Public
Const timezonesfile
String = applicationresourcedirectory + "/timezones. xml"
Public
Const systemtimezoneoffset
Integer =-480
# End
Region
Because app_globalresources does not exist after pre-compilation, but the system still finds it in this directory. Of course, it cannot be found, so an error occurs.
Error description:
Innerexception: Failed to find part of path "F: \ programming \ dnn \ dnn4.5.5 \ precompiled \ app_globalresources \ locales. xml.
Change: app_globalresources-> app_globalresourcesfiveyears
Public
Const applicationresourcedirectory
String = "~ /App_globalresources"
->
Public
Const applicationresourcedirectory
String = "~ /App_globalresourcesfiveyears"
In this way, you can pre-compile it into an upgradeable webapp, but you cannot pre-compile it into a non-upgradeable webapp.
You cannot update or deploy the dnn website.