Pre-compiled dnn

Source: Internet
Author: User
Tags dnn

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.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.