.net - Setting CultureInfo on wcf service calls? -
I need to parse some data that is running the WCF service. It has come to know that the data (points, shapes) varied culture variables in Infos, and parsing spreads in many sections and methods. Since all parsing is passed without any culture, infrared because the success of parsing depends on the threads culture.
There is no programmatic setting for cultural information, so the service shows a current culture with a machine. I do not know where it comes from, because of the change in regional and language options, there is no impact on the culture of WCF service. Apart from the web. Changes in configs (Yes service is hosted in iis) either do not work.
Am I really left with only one option? Organizing the CINFAFFO program? I can get all conversion calls and passes in Culture Infoset or I can set it to thread. Present. Is there no way I can set CultureInfo for once and for all - does the effect on all open WCF methods?
Answer about using tags in web.config only works if ASP.net Compatibility mode enabled. You also need the following:
& lt; Service hosting environment enabled ASPnet compatibility = "true" /> Without asp.net compatibility mode, the http module is not used and the tag is ignored.
Comments
Post a Comment