How to solve the 'Access to the path '...\Portals\0\Repository' is denied" Repository module problem when changing domain names
Jun
27
Written by:
6/27/2008 8:11 AM
When I changed the domain name for a client's site from "burtcohen.com" to "burtcohen.net", the Repository module started reporting:
A critical error has occurred.
Access to the path 'C:\Inetpub\vhosts\burtcohen.com\httpdocs\Portals\0\Repository' is denied.
when all the other modules had no problem.
I did some spelunking in the SQL database and found the following entries in the ModuleSettings table:
383 anonymouslocation C:\Inetpub\vhosts\burtcohen.com\httpdocs\Portals\0\Repository
383 folderlocation C:\Inetpub\vhosts\burtcohen.com\httpdocs\Portals\0\Repository
383 folderlocation C:\Inetpub\vhosts\burtcohen.com\httpdocs\Portals\0\Repository
Note the ".com" in all these paths. This path no longer exists, so that is the cause of the problem. Simply updating them to ".net" fixed the problem.
I don't believe the Repository module should be saving absolute paths to its folders. I have submitted this as a DotNetNuke Repository module bug recommending that it saves relative paths such as:
383 anonymouslocation Portals\0\Repository
383 folderlocation Portals\0\Repository
383 folderlocation Portals\0\Repository