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...Error Upgrading Community versions 5.2.2 to 5.2.3...Error Upgrading Community versions 5.2.2 to 5.2.3...
Previous
 
Next
New Post
2/28/2010 3:08 AM
 
Roger Neale wrote:

Hi Ken,

I am using Server 2008 R2 but I don't have a button to "unblock" the folders.

Let me describe the upgrade procedure that I use to see if I am doing it correctly, I have been upgrading them the same way since I started using DotNetNuke in 2009 and haven't had any real problems.

The procedure I use is this:

  1. Stop the site in IIS
  2. Copy the entire site folder (with it's sub-folders) to a backup location.
  3. Backup the SQL Database. (just in case)
  4. Unzip the 5.2.3 upgrade package and copy it over the contents of the original folder (access rights are applied to the whole folderand it's contents, including  sub-folders)
  5. Start the site in IIS
  6. Browse the site. This has usually started the upgrade process.

Browsing the site with the 5.2.3 upgrade gives me the error, checking the access rights to the folder confirms that the "Network Service" user has full control.

If I reverse the above procedure and copy back the original folder, then re-start the site, I can browse the original version of the site perfectly.

Am I doing something wrong?

Roger

 

Nope not that I see. I don't ever turn off IIS when upgrading for QA purposes. I don't even close open browsers or tabs pointing to sites I'm upgrading

That said; are you able to open the web.config on all 3 sites? Can you change the "customErrors mode ="Off" to customErrors ="ON" 

You may also need to set "Compliation Debug to "True" if you don't get anything from changing just the customErrors

If you can do that then re-hit the sites you should get a verbose error message in the browser instead of the default "something bad happened do this" message.

Post the error message(s) back to this thread. You can scrub any corporate or PII off the messaging if you have any privacy concerns about publicly posting the complete message.


Ken Grierson
DotNetNuke Corporation
Test Lead
 
New Post
2/28/2010 3:18 AM
 
John; 
 
 Can you confirm the account that you have set up in SQL has EXECUTE permissions against your database? 
If you have to change the permissions re-run the installation. If it fails re-post the log.
I ran a 5.2.2 to 5.2.3 upgrade on W2K3 R2 and W2k8 R2 tonight using SQL server named database I did not get this behavior so I'm hoping it's just permissions......
 

Ken Grierson
DotNetNuke Corporation
Test Lead
 
New Post
2/28/2010 9:59 AM
 

Hi Ken,

I have changed the settings that you suggested :-

   
and
 
   

I now get the following error :-

Server Error in '/' Application.


Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.] System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName) +0 System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +62 System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +42 System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +77 System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +105 System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +64

 

Security Exception

 


Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927

 

 
New Post
2/28/2010 10:39 AM
 

Hi Ken,

Having just restored the original files to this site, it now seems that a different problem has developed.

A couple of weeks ago I had installed the "Forums" Module ver. 4.5.3 along with "Forum_Latest" module.

However, since the latest "restore" of the web files, I seem to have now lost both of these modules from the list of installed modules.

I have also lost the Forum information from the forum page. http://www.m0oct.com/Forum/tabid/66/l...

If I try to re-install the Forum module I get following misleading error message :-

Package Installed Successfully

The package installed successfully - see below
Error loading files from temporary folder - see below
StartJob Starting Installation
Info Starting Installation - DNN_Forum
Info Starting Installation - Script
Info Begin SQL execution
Info Creating backup of previous version
Failure Exception - Access to the path 'E:\Inetpub\wwwroot\M0OCT-web\DesktopModules\Forum\03.00.00.SqlDataProvider' is denied.
Info Finished SQL execution
Failure Installation Failed - Script
Info Installation Failed - DNN_Forum
Info Deleted temporary install folder
EndJob Installation Failed
The package installed successfully - see below 

Error loading files from temporary folder - see below
StartJob Starting Installation
Info Starting Installation - DNN_Forum
Info Starting Installation - Script
Info Begin SQL execution
Info Creating backup of previous version
Failure Exception - Access to the path 'E:\Inetpub\wwwroot\M0OCT-web\DesktopModules\Forum\03.00.00.SqlDataProvider' is denied.
Info Finished SQL execution
Failure Installation Failed - Script
Info Installation Failed - DNN_Forum
Info Deleted temporary install folder
EndJob Installation Failed 

I can see that the file referred to exists in the specified folder on the E: drive and the tables still exist in the SQL database but the modules are not listed in the control panel dropdown "Add New Module".

I've tried all my backup data sets and tried restoring an older version of the SQL database but nothing has made the Forums module return.

As it was only recently installed, there wasn't much useful information in the forum so I'm happy to loose it.
Is there a way of removing these modules manually from both the site and the database so that I can re-install them?

Roger
 

 
New Post
2/28/2010 2:28 PM
 

Roger;

Let's deal with the fatal error issue first and see what issues remain after the sites are up and running.

From the error message you posted you have some sort of Trust issue going on with the site.

Are you on a Hosting provider?

What Trust level do they operate at for .Net sites?

What is the trust setting in the web.config files?

Out of the box DNN Trust is set as follows:

    <!-- set code access security trust level - this is generally set in the machine.config
    <trust level="Medium" originUrl=".*" />
    -->

You may need to change it to:

    <!-- set code access security trust level - this is generally set in the machine.config     -->
    <trust level="Medium" originUrl=".*" />
  
 

I'm thinking the way you did the copy did not merge the web.config files so you've ended up with a default web.config setup.

I think you need to reconcile the web.config Trust settings between your 5.2.2 site web.config settings; the upgraded 5.2.3 web.config settings and what your hosting provider allows for Trust.


Ken Grierson
DotNetNuke Corporation
Test Lead
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Error Upgrading Community versions 5.2.2 to 5.2.3...Error Upgrading Community versions 5.2.2 to 5.2.3...


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