Web Deployment Project and Resources

Posted on 2007-10-01
Last Modified: 2013-11-26
I am developing a website that I want to use as a deployment project in other websites. I want to create a dll and use the controls that I have developed.
I have the following structure in my website


I have created a user control in the Events folder and have local recources for that control. There is an App_LocalResources folder in the Events folder

If I use the usercontrols in a page within the WebControls website the controls function and display the labels from my resources correctly.

I then compile the website using the Web Deployment Project, which creates my DLL. I have added the correct entries into the web.config of my website so that the controls can be used. I have then added a tag to one of my pages <membershipcontrols:ucSearchResults ID="ucSearchResults" runat="server" />

When I try to browse my page that is using this user control I get the following error:
Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure "ucSearchResults.ascx.resources" was correctly embedded or linked into assembly "App_LocalResources.event.cdcab7d2.jml4mn1l" at compile time, or that all the satellite assemblies required are loadable and fully signed

How do I use local resources with the web deployment project?

Question by:irmsystems
    LVL 5

    Accepted Solution

    When you add the dll to another project, are you including the related .resx files? I suspects that what its looking for.

    Author Comment


    That worked great, I was trying to make it too difficult I guess, in thinking that my website needed a dll for the resources.

    In my website project that I use the dll in, I have to put the resources in the same folder structure as the development website. I had to create an Events folder and put the App_LocalResources folder in that folder. I could then use the control and the resources worked properly.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
    A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
    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…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    737 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

    22 Experts available now in Live!

    Get 1:1 Help Now