Missing language drop-down list
Versions:
4.6x,
FAQ number:
194,
Old FAQ number: 13274
Question:
Why can't I see the language drop-down list when I try to change the master language with ChangeMasterLanguage.aspx?
Answer:
The problem is the following line in ChangeMasterLanguage.aspx which is added by Visual Studio:
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Remove it and you should be able to change the master language.
You will receive the following null reference exception, due to the fact that you have not chosen a language in the drop-down list.
Source Error:
_numberOfConvertedPages = _numberOfTotalPages = 0;
Line 39: _changeMasterLanguageDB = new ChangeMasterLanguageDB();
Line 40: ConvertTree(StartPage.PageLink, LanguageBranch.Load(NewMasterLanguage.SelectedLanguage).ID);
Line 41: PagePrefix.Message += "Converted " + _numberOfConvertedPages + " of " + _numberOfTotalPages + " page(s)";
Line 42: }
Source File: C:\Inetpub\wwwroot\EPi20\ChangeMasterLanguage.aspx.cs Line: 40
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
NewFunctions.ChangeMasterLanguage.ChangeMasterLanguage_Click(Object sender, EventArgs e) in C:\Inetpub\wwwroot\EPi20\ChangeMasterLanguage.aspx.cs:40
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102