System.web globalization and Windows Service

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>
 
K

Kevin Spencer

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top