maybe have problem when switch sites.

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

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.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
1/23/2012 5:56:08 AM
Gravatar
Total Posts 46

maybe have problem when switch sites.

I have too sites. one is for Chinese, second is for english. and config as below:

<add key="UseRelatedSiteMode" value="true"/>

<add key="UseFoldersInsteadOfHostnamesForMultipleSites" value="true"/>

I want switch between these two sites.

The first method I use a asp:DropDownList's, and on its onselectedindexchanged event to switch to the another site's same page. But it often error(it only goto the Error.htm and didn't give any error information),  especially it often error when swith between two root pages,  I think maybe the reasons are:

1. bring the viewstates from one site to another site's same page lead to the error.

2.bring the sesson or the cookie  from one site to another site's same page lead to the error.

3. post data to a form with acton="" (when switch between the root pages) lead to the error.

so I give the first method. I use the second method: only use two links to switch to the two sites's same page.

but now it abnomal too:

when I switch to the another site's same page ,sometimes it can success, sometimes it will still stay on the old page, it didn't switch. though the browser's location url  switch to the right url, but the server didn't give me the new site's content. it still give the old site's content.

So I think maybe the server has problem to decide the right site from url. it didn't use the url to decide the site first, it use the session or the cookie the decide the site first?but I have no method to clear the session or the cookie when I use link to switch the sites.

my two sites is www.ipwom.com and www.ipwom.com/en/,  in the site's top-righ corner has two icons to switch the sites, but when after switch several(about 5~6) times ,it will not switch, thought the browser' location url switch right.

So joe,

Could you give some way to solve the problem?

Thanks!

 

 

1/23/2012 6:42:27 AM
Gravatar
Total Posts 18439

Re: maybe have problem when switch sites.

I have no idea what is causing that, I would try changing the link from www.ipwom.com/en/ to www.ipwom.com/en/Default.aspx

Hope that helps,

Joe

1/23/2012 10:11:12 AM
Gravatar
Total Posts 46

Re: maybe have problem when switch sites.

Hi, joe

after research, I found the problem is occurs only when switch between www.ipwom.com and www.ipwom.com/en/ or switch between www.ipwom.com/Default.aspx and www.ipwom.com/en/Default.aspx,switch between others pages didn't have this problem.

when I use asp:DropDownList control to switch, then sometimes it will goto Error.htm.

when I use link control to swith, then sometime it will not switch right, but it will not goto Error.htm.

when I didn't use any control, I open two Chrome tab to get the two site's root page, sometimes it will get the other site's root page, so it has problem too.

I can't found the problem, maybe get the  SiteSettings cache or some place is not right.

But I can resolve the problem by replace Default.aspx in the url with home.aspx.

Thanks!

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