System.web globalization and Windows Service

  • Thread starter Thread starter Sparkiee
  • Start date Start date
S

Sparkiee

Hi,
A lil bit of help required from you guys, I am trying to make a
windows service that will also focus on globalization, the problem i
am facing is when i am trying to put globalization code in app.config
the windows service throws an error its probably because of using the
<system.web> in app.config that contains the globalization parameters,
copied and pasted from one of my asp.net website where i already used
the globalization and i came to the point that this <system.web> thing
couldnt be used in windows service, would you guys please help me out
in this regard that if any alternative way is there for globalizing
the windows service. the code i am pasting is below:

<system.web>
<globalization responseEncoding="utf-8" requestEncoding="utf-8"
culture="en-CA" uiCulture="auto"
resourceProviderFactoryType="CustomResourceProviders.DBResourceProviderFactory,
CustomResourceProviders, Version=1.0.0.0, Culture=neutral"/>
</system.web>
 
That is an ASP.Net configuration element and is not relevant to a Windows
Service, or any other non-ASP.Net application.

--
HTH,

Kevin Spencer
Chicken Salad Surgeon
Microsoft MVP
 
Back
Top