iMIS admin master page is displayed after logging off iMIS site

Has anyone else run into issues when using multiple domain names to connect to the same iMIS site?

My iMIS website has 2 URLs.

For example:
www.mysitenameEN.com
www.mysitenameFR.com

These domains are pointing to a single IIS site, but we have 2 separate iMIS web sites configured.

Everything works fine on the www.mysitenameEN.com domain, but when you log off from the www.mysitenameFR.com domain, it shows the login page with the iMIS admin master page (as opposed to showing our own custom master page).

Has anyone else run into a similar issue?

Thanks,
James

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

What version of iMIS?

Is this a cross domain or is there a parent domain that these are controled by?

 

Is this a WCM manged site?

 

 

 

 

 

Bruce M Walker

BSCI

Chicago IL

These would be cross domain,

These would be cross domain, and not on the same parent domain. But both of these URLs are mapped to the same IIS website (using host headers).

It is a WCM managed site. We have two sites: one for English and the one for French. So when I setup the WCM websites, I entered different URLs for each.

e.g. English WCM site is: www.mysitenameEN.com and French WCM site is: www.mysitenameFR.com

I wonder if it would work if I put the French site on a separate IIS site with a separate Net folder? I'm trying to avoid doing that however for maintainability reasons.

Thanks,
James

iMIS version

We're on the latest version of iMIS: 15.1.2.5454

The redirect to Admin home

The redirect to Admin home page is likely because some part of the redirect is finding a data pointer to the admin page on FR side.

The Admin page default may be set in the iMIS DB and data point might be provided by another iMIS Community lurker.

Not certain what table filed combination WCM evaluates for defaut home page.

Another method that I have had great success with this is a style of multi language website (not iMIS Public Views).

This may prevent the need for a seperate virtual directories and allow you to simply modify the language displayed by the culture used.

It is briefly discussed on this website.

http://www.c-sharpcorner.com/uploadfile/mosessaur/aspnetlocalization02042006165851pm/aspnetlocalization.aspx?articleid=96602e53-0fb1-44ec-a67b-1c68b05eb2e1

If this is appealing I can suggest methods to add this to WCM Public Views topology.

Setting Page Culture:

To set the page culture, you can set the Culture Property of the page and UICulture to use specific culture or set it to Auto to automatically Client Browser Language. Also you can make a default culture for your application by adding the following code to your web.config under system.web tag:

<globalization enableClientBasedCulture="true" culture="ar-EG" uiCulture="ar-EG"/>

Or switching the culture programmatically by overriding Page.InitializeCulture Method:

protected override void InitializeCulture()
{

string culture = Request.Form["cmbCulture"];
if (string.IsNullOrEmpty(culture)) culture = "Auto";
//Use this
this.UICulture = culture;
this.Culture = culture;
//OR This
if (culture != "Auto")
{
System.Globalization.CultureInfo ci = new System.Globalization.CultureInfo(culture);
System.Threading.Thread.CurrentThread.CurrentCulture = ci;
System.Threading.Thread.CurrentThread.CurrentUICulture = ci;
}
base.InitializeCulture();

}
Protected Overrides Sub InitializeCulture()

Dim _culture As String = Request.Form("cmbCulture")
'Use this
If (String.IsNullOrEmpty(Culture)) Then
culture = "Auto"
Me.UICulture = _culture
Me.Culture = _culture
End If
'OR This
If (_culture <> "Auto") Then
Dim ci As New System.Globalization.CultureInfo(Culture)
System.Threading.Thread.CurrentThread.CurrentCulture = ci
System.Threading.Thread.CurrentThread.CurrentUICulture = ci
End If
MyBase.InitializeCulture()

End Sub

 

Bruce M Walker

BSCI

Chicago IL

This assumes

In IIS you have 2 domains (could be one or more physical servers or locations)

 www.mysitenameEN.com

    Default website

         Virtual directories

             iMIS 15 English

             iMIS Public English

             iMIS Public French

 

 www.mysitenameFR.com

Default Website

Header pointing to the  www.mysitenameEN.com

 

 

 

Bruce M Walker

BSCI

Chicago IL

Hi Bruce, The culture on our

Hi Bruce,

The culture on our pages are being set properly - we already have code that determines the current language and sets the culture so that our resource files are applied properly.

But the part that I'm struggling with is how to tell iMIS to use our custom master page instead of the Admin.master. This issue only happens on the out-of-the-box iMIS pages at the root of the site (e.g. www.mywebsiteFR.com/iMIS15/AsiCommon/Controls/Shared/FormsAuthentication...)

Do you know of any approaches we can take to default the master page to our custom master instead of using the Admin.master when browsing to these root pages?

Thanks!
James

Bruce, I found out what was

Bruce,

I found out what was wrong. It turns out the issue was the fact that the checkbox wasn't set for "Make this website the default" for the French site.

Even though it said the current default website was the French site, but that checkbox wasn't set, so it was defaulting to the Admin.Master on certain pages.

Thanks for the help!

Cheers,
James