I have an C# - ASP.NET WebForm solution in Microsoft Visual Studio 2012 Professional; this solution is built in Framework 3.5 and this solution uses AjaxControlToolkit - version 3.5.40412.0.
I have a WebForm - which is a child of a Site.master - that uses multiple UpdatePanel, TabContainer and a single AsyncFileUpload.
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.
My Site.master already has the ToolkitScriptManager control, but, for some unknown reason, the error described above shows when a file is selected with the AsyncFileUpload control.
I've searched a lot in internet and in all of those sites, the single answer is: add ScriptManager or ToolkitScriptManager at the beginning of the WebForm / Site.master.
I can't find a reasonable explanation about why in other server(s) - tested in (2) different servers - this error appears.
I'm already out of options - since I can't replicate this error locally (enviroment PC).
Can anyone provide more information about how can debug and fix this issue?
MauricioPosted Dec 24, 2020, 1:31 PM
Thank you, Sachin, the first link is actually my account on Stack Overflow - I've posted this same question on different programming sites.
Here, I describe the solution I was able to produce: https://stackoverflow.com/a/65438736/12511801
Extract:
I couldn't solve the problem with the AsyncFileUpload control, but, as a good side, while searching about how to solve this issue, I tried again changing the code and use both FileUpload and UpdatePanel controls.
I changed my code for (instead using AsyncFileUpload) for use FileUpload inside a UpdatePanel, but, here is the catch:
For select and send the file to the server side, the Button that sends the file (once selected with the FileUpload control) must have its own UpdatePanel with its respective Triggers tag.
In the .aspx:
Sachin SinghPosted Dec 24, 2020, 6:24 AM