Search code examples
c#asp.netmultilingualapp-globalresources

Multilingual ASP.NET Web Site doesn't work


Here is the link, where author explains how to a build multilingual website

When I run the code, I get such an error mesage "An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode."

Then I found such an workaround in web.config file:

<configuration>
    .
    .
    .
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
  </system.webServer>
</configuration>

Now the website works for me, but is shown only in russian, not in english or greek. I am new to ASP.NET, so don't clearly understand source's LanguageModule class, should I somehow modify it?


Solution

  • There are 2 types of pipeline modes in IIS, integrated and classic. The error you are getting is symptomatic of having your web.config arranged in the classic configuration.

    Integrated mode provides more flexibility as both IIS and ASP.NET functionality are executed in the same pipeline, instead of 1 after the other.

    It might be possible the the project was configured and hosted on a website configured to run under integrated mode. If this is the case, hosting the Website yourself in an application pool which is set to classic mode, may get you going.

    Another thing to check is to ensure things like the HttpModule are registered in the correct manner.