Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Problem with scheduled job retrieving information from startpages in enterprise setup of EPiServer

Vote:
 

Hello,


We have a scheduled job that tries to retrieve information (settings for the job) from the startpages of a couple of different sites in an enterprise setup of EPiServer by iterating through the site-sections in web.config. It works ok sometimes but now and then we get a message saying something like this:

Error: Application is initialized with settings for siteId="Site1", but current request maps to siteId="Site2" at EPiServer.Configuration.Settings.get_Instance() at EPiServer.Globalization.ContentLanguage.LanguagePreferenceList(String priorityLanguage) at EPiServer.Globalization.ContentLanguage.SetCulture(String priorityLanguage) at

This post (http://world.episerver.com/Forum/Pages/Thread.aspx?id=26239&epslanguage=en) points to a similar problem but no solution has been provided there so I'm wondering if anyone has experienced the same problem and found a solution to it?

Best regards

Martin

#29854
May 19, 2009 11:23
Vote:
 

Did you find a solution to this?

I am having the same problem?

Thanks


Oliver

#31953
Aug 18, 2009 11:39
Vote:
 

This problem occurs when you have one IIS website which resolves to two 'sites' in EPiServer. In other words, the traffic for any particular site in EPiServer must come through one, and only one, IIS website.

If you want to have multiple domain names that you want to resolve to an EPiServer site, then make sure that you have ONE single IIS website with multiple host headers.

#32104
Aug 21, 2009 20:21
Vote:
 

Using host headers screws up the styles/paths in Edit or Admin mode: http://world.episerver.com/Templates/Forum/Pages/thread.aspx?id=37387&pageIndex=1#reply

#37436
Mar 05, 2010 12:53
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.