I'm working in a solution created in ASP.NET - Framework 3.5.
This solution has a WebForm (child from a Site.master) with contains multiple UpdatePanels, TabContainer and a single AsyncFileUpload control.
Locally (i.e. in developer enviroment), the WebForm loads and works successfully, but, once published the WebForm in an different server - when a file is selected (by using the AsyncFileUpload control), the following message shows:
Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "AjaxControlToolkit.Properties.Resources.resources" was correctly embedded or linked into assembly "AjaxControlToolkit" at compile time, or that all the satellite assemblies required are loadable and fully signed.
In my local developer enviroment, this error does not occur and the file can be selected and processed as expected.
While searching for the causes of this error, most of the suggestions are:
- Add an
ScriptManagerorToolkitScriptManager- source. When tried this option (by adding any of those ScriptManager controls), the WebForm is loaded blank and in the output window - shown in runtime - says: only a single ScriptManager can be added in the page - this is correct, since theToolkitScriptManagercontrol is already in the Site.master. - Check if
AjaxControlToolkit.dllis on thebinfolder. Checked also and this dll is in thebinfolder.
I also tried:
- Check if
AjaxControlToolkit.dllandAjaxControlToolkit.resources.dllis on the bin folder. Those dlls are in thebinfolder. - Change
AsyncFileUploadforFileUpload, but, since this WebForm already usesUpdatePanels, the FileUpload wont work for security reasons - as I tested and the results of Google says so (like this answer, for example). - I tried also using only FileUpload and Triggers, but the WebForm contains various UpdatePanels and each time I added the
TriggerandPostBackTriggerorAsyncPostBackTrigger. For this reason, I gave up and ended using theAsyncFileUploadcontrol.
What else can be done for check the missing resources and/or the cause of this error and fix this issue?


I couldn't solve the problem with the
AsyncFileUploadcontrol, but, as a good side, while searching about how to solve this issue, I tried again changing the code and use bothFileUploadandUpdatePanelcontrols.I came across with this entry - in spanish where it links another thread on another page where it's explained how to use both
FileUploadandUpdatePanelcontrols.The linked thread is this: Using FileUpload Control inside ASP.Net AJAX UpdatePanel Control
I changed my code for (instead using
AsyncFileUpload) for useFileUploadinside aUpdatePanel, but, here is the catch:Example: I'm using here a
LinkButtoncontrol, but, with aButtoncontrol should work flawlessly.In the .aspx:
In the aspx.cs:
With the previous explanation, I finally could solve the issue I had about sending a file using
FileUpload- which was inside anUpdatePanelcontrol.