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
ScriptManager
orToolkitScriptManager
- 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 theToolkitScriptManager
control is already in the Site.master. - Check if
AjaxControlToolkit.dll
is on thebin
folder. Checked also and this dll is in thebin
folder.
I also tried:
- Check if
AjaxControlToolkit.dll
andAjaxControlToolkit.resources.dll
is on the bin folder. Those dlls are in thebin
folder. - Change
AsyncFileUpload
forFileUpload
, 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
Trigger
andPostBackTrigger
orAsyncPostBackTrigger
. For this reason, I gave up and ended using theAsyncFileUpload
control.
What else can be done for check the missing resources and/or the cause of this error and fix this issue?