Web Deployment Project and Resources

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?

Who is Participating?
ina_donConnect With a Mentor Commented:
When you add the dll to another project, are you including the related .resx files? I suspects that what its looking for.
irmsystemsAuthor Commented:

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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.