Products » Support Forums 

Support Forums

HomeHomeDotNetNuke Modu...DotNetNuke Modu...Url MasterUrl MasterProblem migrating 4.9.3 site to new providerProblem migrating 4.9.3 site to new provider
Previous
 
Next
New Post
2/27/2010 11:50 PM
 

Hi 

I am trying to migrate a website from a hosting provider to a "proper" windows server, and I was getting the following error:

 

-------------------------

500 Server Error
An error occured during processing : if possible, check the event log of the server
Exception:
Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
Stack Trace:
at System.Collections.ArrayList.get_Item(Int32 index) at iFinity.DNN.Modules.UrlMaster.UrlRewriteModule.IdentifyPortalAlias(HttpContext context, HttpRequest request, Uri requestUri, UrlAction result, NameValueCollection queryStringCol, FriendlyUrlSettings settings) at iFinity.DNN.Modules.UrlMaster.UrlRewriteModule.ProcessRequest(HttpContext context, HttpRequest request, HttpServerUtility Server, HttpResponse response, Boolean useFriendlyUrls, String requestType, Uri requestUri, UrlAction result, NameValueCollection queryStringCol, FriendlyUrlSettings settings)

-------------------------

I guessed that this was because localhost was never defined in the PortalAlias table, so I added that, but now I get the following error:

 

-------------------------

500 Server Error

An error occured during processing : if possible, check the event log of the server
Exception:
Object reference not set to an instance of an object.
Stack Trace:
at iFinity.DNN.Modules.UrlMaster.UrlRewriteModule.IdentifyPortalAlias(HttpContext context, HttpRequest request, Uri requestUri, UrlAction result, NameValueCollection queryStringCol, FriendlyUrlSettings settings) at iFinity.DNN.Modules.UrlMaster.UrlRewriteModule.ProcessRequest(HttpContext context, HttpRequest request, HttpServerUtility Server, HttpResponse response, Boolean useFriendlyUrls, String requestType, Uri requestUri, UrlAction result, NameValueCollection queryStringCol, FriendlyUrlSettings settings)

-------------------------

Now I'm a little lost. Do you have a pointer as to where I am going wrong?
 
Many thanks
 
Alan

 


Alan from Meet & Link
www.meetnlink.com
Shaping the way networking is done
 
New Post
2/28/2010 12:08 AM
Accepted Answer 

Alan - just check that the portal alias you have entered exactly matches what you're using ie (localhost or localhost/dnnsite)  or similar.

Additionally, if you have entered a portal alias via the database directly, you will need to restart your DNN app to pick up the new alias, because these values get cached.  You can restart by 'touching' your web.config file, which means making a small edit and saving it again.

 
New Post
2/28/2010 11:53 AM
 

 Thanks Bruce, I tried all that late last night to no avail, but this morning it worked, except it rewrote the URL as www.localhost.  I have changed the redirectToSubDomain="www" to redirectToSubDomain="" and now it works fine!  Must remember to return that setting once I've completed the migration...


Alan from Meet & Link
www.meetnlink.com
Shaping the way networking is done
 
Previous
 
Next
HomeHomeDotNetNuke Modu...DotNetNuke Modu...Url MasterUrl MasterProblem migrating 4.9.3 site to new providerProblem migrating 4.9.3 site to new provider


Support Guidelines.. Please read before posting

To get support on iFinity products and services, please search the forums for the the answer to the problem you are seeking. If you cannot find a solution, post a question in the relevant forum.   Ensure that you specify the relevant versions of the problem, and the actual error message or a detailed description of the problem.    You will need to register with this site to post on the forum.  If you have a Microsoft Live (Hotmail/Passport) account you can use that.  If you have a Open Id account you can use that.  If you neither of these, you will need to register a user Id and password.

Please note : If you are posting a new thread for the Url Master module, please include the following information where applicable:

- Url Master version

- DotNetNuke version

- Example Url where possible

- If there is an error, please post the full error text and/or stack trace (from the DotNetNuke event log).