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...Upgrading DNN P...Upgrading DNN P...Upgrade DNN 5.5.1 issue Upgrade DNN 5.5.1 issue
Previous
 
Next
New Post
3/3/2016 2:18 AM
 
I tried to upgrade the current DNN 5.5.1 to DNN 5.6.7 using the DNN 5.6.7 upgrade software. However, there was an upgrade error "The directory '/xxx/App_GlobalResources/' is not allowed because the application is precompiled. " What can be done to resolve the error ?
 
New Post
3/3/2016 3:24 AM
 
DNN 5 doesn't support precompile - are you using a custom build?

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
4/5/2016 11:36 AM
 
After looking at everything and re-reading the threads, I found the cause of the error and was able to fix if using a piece of code from a previous version of DNN.

The cause of this error stems from the following section of code in the vw.Modules view:

Case when tm.IconFile LIKE 'fileid=%'
then (SELECT IsNull(Folder, '') + [FileName] FROM dbo.[vw_Files]
WHERE fileid = CAST(SUBSTRING(tm.IconFile, 8, 10) AS Int))
else Coalesce(tm.IconFile,'')
end as IconFile,
CASE WHEN LEFT(LOWER(TM.IconFile), 6) = 'fileid' THEN (SELECT Folder + FileName FROM dbo.Files WHERE 'fileid=' + CONVERT(varchar, dbo.Files.FileID) = TM.IconFile) ELSE TM.IconFile END AS IconFile,

When you dissect that statement, it fails when trying to do the following:

CAST(SUBSTRING(tm.IconFile, 8, 10) AS Int)

Because the substring that it's utilizing is the file location of the IconFile column, it cannot convert or cast the text string to a number. It would be different if it were trying to convert a text value which is a number. For example try the following:

since tm.IconFile represents a value in a column we can substitute it with "~/Icons/Sigma/SiteSettings_32X32_Standard.png"

SELECT SUBSTRING('~/Icons/Sigma/SiteSettings_32X32_Standard.png', 8, 10)
RETURNS: /Sigma/Sit

Now cast it as an Int.
SELECT CAST('/Sigma/Sit' as int)
RETURNS: Conversion failed when converting the varchar value '/Sigma/Sit' to data type int.

When executing the SPROC GetModuleByDefinition, it uses the vw.Modules view and joins it with other tables. The error is only encountered on specific module definition names entered into the SPROC's parameters. For Example:

DECLARE @return_value int
EXEC @return_value = [dbo].[GetModuleByDefinition]
@PortalId = 0,
@DefinitionName = N'Site Settings'
SELECT 'Return Value' = @return_value

Returns the error referenced in this thread.

Basically any module definition which has a value in the IconFile column, which cannot be converted to a numerical value e.g., "~/Icons/Sigma/SiteSettings_32X32_Standard.png", will fail.

I ended up looking at an older version of DNN I had quick access to, (6.2.9) and copied the following line out it's vw.Module view:

CASE WHEN LEFT(LOWER(TM.IconFile), 6) = 'fileid' THEN (SELECT Folder + FileName FROM dbo.Files WHERE 'fileid=' + CONVERT(varchar, dbo.Files.FileID) = TM.IconFile) ELSE TM.IconFile END AS IconFile,

That fixed the issue. Why, because it's using the actual dbo.Files.Fileid in the conversion which is a numerical representation. I haven't checked how the 7.x versions handle that statement, I'm sure there's probably a better way of doing it.

Why this issue seems to appear in certain instances of SQL Versions, I'm not sure. But it's definitely an issue in SQL 2012 Express. The only reason why I'm running it in express is for testing and module development purposes. I have yet to install it on our production and staging environments, which run the full version of SQL 2012. So I'm curious if it's an issue.



 
New Post
4/6/2016 11:34 PM
 
AFAIK this has been fixed in DNN 6 or early DNN 7.
I suggest upgrading to a current version of DNN.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
4/6/2016 11:54 PM
 
Hey Sebastian,

Sorry, my last post was actually intended to resolve the issue in this thread.

http://www.dnnsoftware.com/forums/for...

It seems to fix the 8.0 install error. Sorry that I accidentally posted it here.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Upgrade DNN 5.5.1 issue Upgrade DNN 5.5.1 issue


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