Solved, wcf, app_globalresources

Posted on 2012-08-15
Last Modified: 2012-09-11
I have App_GlobalResources with Resource.resx  and Resource.zh-HK in my web application.

And I also have WCF project with reference of my web application.

How can I get the Resource.resx information and put into my WCF project?
like the following codes in my wcf cs file.
The "Company Name" should be captured from App_GlobalResource file. Is it possible to do that? If yes, how? Thanks

            table.AddCell("General Information");
            table.AddCell(new Phrase("Company Name:", bodyFont));
            table.AddCell(new Phrase(DataLibs.CompanyName, bodyFont));
Question by:Webboy2008
    LVL 25

    Accepted Solution

    Create a library project which will manage your resouces. Have this dll reference in both and WCF Project .  Hope this helps.

    Author Comment

    How? Need sample codes
    LVL 25

    Expert Comment

    Hope u have already function to read your resource . Place this method and loading of resource manager in a separate project which of type, library component . Add this dll either to your wcf project or project .  Call the above function with a resource key as parameter. Hope it helps.

    Author Comment

    I don't have function to read the resource file. and this is why I need sample codes to help.
    Just response if you can show me sample codes in c#. Thanks

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    While working on Silverlight and WCF application, I faced one issue where fault exception occurred at WCF operation contract is not getting propagated to Silverlight client. So after searching net I came to know that it was behavior by default for s…
    Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now