UnauthorizedAccessException after moving sites to new server

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
4/25/2011 9:55:16 AM
Gravatar
Total Posts 12

UnauthorizedAccessException after moving sites to new server

I have moved some sites to a new server. The sites seem to operate fine, however, the Windows Event Log contains several entries (in groups of 3) for each site that was moved that indicate an UnauthorizedAccessException for the "index" directory.

The problem isn't actually in that directory though... the problem is that the system is trying to access these files in their old path. In the old server, the sites were installed under C:\inetpub\site1\ etc, but now they are under c:\inetpub\sites\site1\ etc.

So the ASP.NET runtime is still trying to access the index under C:\Inetpub\site1\Data\Sites\1\index\ and that fails because that folder doesn't exist.

Somewhere, I guess mojoPortal recorded that original directory. Any idea where so I can fix it?

Thanks.

SA.

4/25/2011 10:10:46 AM
Gravatar
Total Posts 63

Re: UnauthorizedAccessException after moving sites to new server

When move a mojoPortal site to a different server, you will need to make sure the structure is the same. Otherwise, you will have to manually change the URL's after the move. Here is the documentation:

http://www.mojoportal.com/moving-an-installation-of-mojoportal-to-a-different-server.aspx

4/25/2011 10:32:55 AM
Gravatar
Total Posts 18439

Re: UnauthorizedAccessException after moving sites to new server

You should delete all rows from mp_IndexingQueue and mp_TaskQueue and then rebuild the search index, it sounds like it had existing rows with your old index path in the table before you moved it.

Hope it helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.