1

Closed

ping services and theme preview fails

description

As title, exception thrown when trying to view ping services or preview theme in settings.
Moreover, System.Globalization.CultureInfo.GetCultureInfoByIetfLanguageTag is deprecated (in \admin\Pages\Setting.aspx.cs line 264).
 
Thanks for your work, this multilingual feature helps me a lot.

file attachments

Closed Mar 23, 2009 at 6:06 PM by jkoblizek
Bug fixed. Solution is inside this issue or in planned release.

comments

jkoblizek wrote Mar 22, 2009 at 4:40 PM

Thanks for the report.

I was able to reproduce the exception when trying to view ping services with XML data source. The problem is in missing attribute "cultureid" in all elements of /App_Data/pingservices.xml. Simply, add cultureid="1" to all elements or download the attached default xml.

But, I wasn't able to reproduce the exception with theme preview anyhow. I also downloaded the original themes and used some of them, but still without any problem. Could you please attach the theme that fails, or do all themes fail? Do you use v1.0.1? If possible, write exception message or stack trace, or any other detailed info.

Concerning GetCultureInfoByIetfLanguageTag() method. I know that it's deprecated since .NET 3.0, but the project is based on .NET 2.0 and the original engine uses this method as well. That's why I keep using it as well. But, thanks for noticing.

wrote Mar 22, 2009 at 4:40 PM

wingkit wrote Mar 23, 2009 at 1:12 AM

the theme preview problem is simply a missing of default.aspx in the URL (e.g. http://example.com/en/?theme=Sapiens.Net). It can be solved by adding wildcard application maps in IIS (Properties -> Directory -> Application Settings -> Configuration -> Mappings -> Wildcard application maps -> insert C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll).

jkoblizek wrote Mar 23, 2009 at 5:52 PM

Thanks for additional info. Using IIS6 settings I reproduced the error. It will be fixed in the next version. Better solution is to simply replace line 12 of admin/Pages/Settings.aspx to:
var path = '../../<%= Utils.CurrentLanguage %>/default.aspx?theme=' + theme;

Some web hosting providers are not so kind in case of custom IIS settings :)

wrote Mar 23, 2009 at 6:03 PM

wrote Mar 23, 2009 at 6:06 PM

wrote Jul 7, 2012 at 5:04 PM

wrote Feb 12, 2013 at 7:22 PM

wrote May 15, 2013 at 3:40 AM