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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryRepository not working after a restore of DNN to another locationRepository not working after a restore of DNN to another location
Previous
 
Next
New Post
9/22/2008 12:26 PM
 

I restored my DNN installation from my remote host to my local computer (db backup/restore and file system copy). I was able to get the whole site back up and running under localhost with no problems, except for the Repository module. Pages containing this module result in the error:

     A critical error has occurred.

     The device is not ready.

Is there anything special that needs to be done to the Repository module when peforming a backup/restore from location to location?

Thanks,

 
New Post
9/22/2008 12:49 PM
 

yes, there is .. you MUST log in using the Host account, then go to the module settings page and at the bottom you will see where you can specify the physical location of the Repository files. Set the location to match your local drive and path to the files.

 
New Post
9/22/2008 1:16 PM
 

Great, thanks!

 
New Post
11/5/2008 1:14 AM
 

I migrated my DNN from one host to another, then spend several hours attempting to figure out why I was getting the error:

A critical error has occurred.
Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

This message led me down various paths regarding improper permissions, setting trust levels in the config file and a host of other dead-end issues. All the rest of the modules move just fine from one host to another -- just be sure to add the portal alias for the new host before you move the site, then change the connection string in the config file in two places (the FAQ and UsersOnLine modules haven't been updated to use the connection string section of the web.config file).  All seems to work well, except that in each repository that you may have in the site, the help instructions indicate to use a fully qualified address for the location of the repository -- eg. C:\inetpub\domainname\Portals\0\Repository, so when you physically move the files along with the rest of the site to a new host environment, it likely isn't going to be in the same place on the new machine.  As noted in this thread, once you know the problem, the solution is simple -- just change the settings on each repository to the new location address. 

Oops, you say?  How do you get the address from a shared environment?  Try setting up another repository module on a test page.  The proper path information will be placed in the settings for the new repository module.  Just copy/paste those paths back to your live modules and the uploads in your repository will re-appear and the error  message above will go away.

Should you find this as annoying as I did, then send feedback to the team to increase the priority of the bug noted in http://support.dotnetnuke.com/issue/ViewIssue.aspx?ID=7973&PROJID=22 -- the proposed solution is to set up relative rather than absolute paths (or at least build the absolute path in two parts -- one part picked up by the system - the c:\inetpub\domainname\Portals\0 part, then permit the user to add the variable aspect of the path \Repository or \Repository\Anonymous).  Such a fix would be relatively straightforward in the code and then the module wouldn't be as brittle when moved between development, test, staging, production or into alternative hosted environments.

Brad

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryRepository not working after a restore of DNN to another locationRepository not working after a restore of DNN to another location


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