Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsEventsEventsII'm tired and rather crabby :)
Previous
 
Next
New Post
11/16/2006 12:49 PM
 

Frank,

it looks like an issue of Events module, not aking into account, that GetSearchItem is called by a queued service without proper htp context. This can be solved by either using the author's individual or portal's default culture when formatting values - your solution does only work for your situation and not globally. Thank you for pointing this outm I expect, that the project team will take care of the proper implementation.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
11/16/2006 11:08 PM
 

Leupold,

Can you pass this along to ALL of the core developers and project members?  When I did what this thread suggests, the events code that was originally in the eventscontroller.vb using the format (.eventdatebegin, "D") works great.  It does what its supposed to do.  Any multithreaded application needs to set spawned threads to the culture.  I assume that when the search job indexes stuff, it is a different thread in the app pool.  It seems that without this line of code, it will not inherit the thread that spawned it, but instead that of the machine it is running on, which for me is a german 1and1 server.  So setting my DNN to english-US has no effect on other threads.  Therefore, every thread and spawned thread needs to set this put this line somewhere in the thread.   I realize this is hardcoded for en-US but I'm an arrogant american :)

System.Threading.Thread.CurrentThread.CurrentCulture = New CultureInfo("en-US")

http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/VB_DOT_NET/Q_21041085.html

http://www.microsoft.com/globaldev/getWR/steps/wrg_date.mspx

 

 


Version: DNN 4.4.1
Hosting Provider: 1and1
RAISE
 
New Post
11/17/2006 5:32 AM
 

Actually that is alread done in DNN, in PageBase.OnInit:

Protected Overrides Sub OnInit(ByVal e As System.EventArgs)

' Set the current culture

Thread.CurrentThread.CurrentUICulture = PageCulture

Thread.CurrentThread.CurrentCulture = PageCulture

' Localize portalsettings

Services.Localization.Localization.LocalizePortalSettings()

MyBase.OnInit(e)

End Sub

 


Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
New Post
11/17/2006 8:33 AM
 

Erik,

Thanx.  But how is a PageBase.OnInit called from a threaded service such as the search indexer thread?   That's where the problem lies.  The problem is that when the search service indexes the content is there a page that's even loaded?


Version: DNN 4.4.1
Hosting Provider: 1and1
RAISE
 
New Post
11/17/2006 8:42 AM
 

ah.. sorry i think i missread this thread

However, the solution seems simple: just add a forced culture to the thread, just like you proposed.. only not a fixed culture, but the portal default culture would be a better solution. I will look at the code, and try your fix.. if it works, i will create a gemini issue, include the fix, and alert a core team trustee to apply the fix


Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsEventsEventsII'm tired and rather crabby :)


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out