?
Solved

Web Deployment Project and Resources

Posted on 2007-10-01
2
Medium Priority
?
291 Views
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

http:\\localhost\WebControls\Events

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?

Thanks
0
Comment
Question by:irmsystems
2 Comments
 
LVL 5

Accepted Solution

by:
ina_don earned 2000 total points
ID: 19996425
When you add the dll to another project, are you including the related .resx files? I suspects that what its looking for.
0
 

Author Comment

by:irmsystems
ID: 19999258
Thanks,

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.

0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses

850 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