Standard theme css/locale glitches in pages (Mono)

Topics: ASP.NET 2.0, Themes
Mar 9, 2013 at 7:30 PM
Edited Mar 11, 2013 at 8:58 PM
While under Windows everything looks fine, under Mono css for blog page ( has following css references :
Also some locale data is missing (Chrome detects language of page as Czech and shows automatic translation panel on top). Main blog page have correct css link without "page" in it and displays correctly.
Tried to fix this problem by editing Standard theme's site.master, but changing include/styles.min.css to ../../include/styles.min.css or ~/themes/Standard/include/styles.min.css breaks default page. I'm pretty sure that somewhere is url rewriting specific to Mono, but can't find it for now. Temporarily this issue might be fixed by changing css url to absolute instead of relative, but locale problem remains. Looking for universal fix.
p.s. Optimization is off duo to unavailability under Mono platform.
Added screenshot
Fullsize Image Link
Same page in edit mode displays correctly.
Mar 12, 2013 at 1:29 AM
This is odd. It happens for all themes, right, not just standard?
Yes we can change it to use absolute root, for example in page load add links like this:
var l1 = "<link href=\"{0}editors/tiny_mce_3_5_8/plugins/syntaxhighlighter/styles/shCore.css\" rel=\"stylesheet\" type=\"text/css\" />";
HeadContent.Controls.Add(new LiteralControl(string.Format(l1, Utils.AbsoluteWebRoot)));
But what is a locale problem you talking about?

Also, looks like you are using latest code from repository - can you send me steps you do to get it running under Mono?
I can try to recreate it and verify on my side.
Mar 12, 2013 at 8:58 AM
Thanks for reply.
Tested TitaniumX theme, same problem occurs. About absolute root - doesn't look like elegant solution regarding the fact in edit mode everything is fine. I guess problem lies in some helper that have different behavior under Windows and Mono.
About locale problem - despite the fact page has <html lang="en"> declared, Chrome detects page language as Czech and pops Automatic Webpage translation panel that is totally annoying. My default locale is "uk-UA" (Ukrainian, Ukraine) but i guess that's not where problem lies (under Windows problem doesn't exist). Again, in edit mode everything is fine, so later I will compare generated html for page.aspx and edit mode page in both Win/Linux and dig it deeper into problem.
Regarding running project on Mono - after my last pull requests were merged into master there is only one requirement - deleting Infrastructure assembly from Bin folder (by the way, if its presence in Bin is not required under Windows, we can delete it from solution making project ready-to-go under Mono out-of-the-box). And, of course, web site root must have read-write permissions for www-data group (apache default). BlogEngine.NET folder is copied to server and everything works. Only problem i've noticed - if it's deployed from Visual Studio 2012 directly, some new errors are popping (didn't have time to study them much).
May 2, 2013 at 12:30 PM