Hello,
We developed a simple upload functionality which works correctly on test environment but not in prod.
The expected behavior is whenever clicked on "browse", the file being uploaded and written into the RadUploadTemp. Once clicked on "upload" button, the code behind is raised but UpladedFiles collection is empty.
Note that RadUploadTemp has been created automatically and even the zero bytes file name: RadUploadTestFile
The only apparent difference between test and prod seems to be that into prod's web.config this section is missed:
<configSections> <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /> <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" /> <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /> <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /> <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" /> </sectionGroup> </sectionGroup> </sectionGroup></configSections>ASPX:
<%-- uploader --%><div id="divUploader" runat="server" class="divUploader" visible=' <%# DataBinder.Eval(((IDataItemContainer)Container).DataItem, "uploadervisible") %>'> <span class="spText">Restituzione Documentazione</span> <a runat="server" class="tooltip" href="javascript:void(0);" visible='<%# DataBinder.Eval(((IDataItemContainer)Container).DataItem, "tooltipvisible") %>' title='<%# DataBinder.Eval(((IDataItemContainer)Container).DataItem, "tooltiptext") %>'> <asp:Image ImageUrl="~/images/icoTooltip.png" runat="server" /> </a> <telerik:RadAsyncUpload RenderMode="Lightweight" runat="server" CssClass="async-attachment" ID="FileUpload" HideFileInput="false" MaxFileInputsCount="1" MultipleFileSelection="Disabled" CommandName="Upload" CommandArgument='<%# DataBinder.Eval(((IDataItemContainer)Container).DataItem, "iPtAcq") %>' AllowedFileExtensions=".pdf" ControlObjectsVisibility="None"> <Localization Select="Sfoglia..." /> <Localization Remove="" /> </telerik:RadAsyncUpload> <asp:Button ID="btnFileUpload" runat="server" CssClass="btnOrangeUpload" Text="Carica" CommandName="Upload" CommandArgument='<%# DataBinder.Eval(((IDataItemContainer)Container).DataItem, "iPtAcq") %>' /> <%--<asp:FileUpload ID="FileUpload" runat="server" class="file" />--%></div>
Can anyone give a clue how can I check in order to fix this?
Feel free to ask me more details if needed...
Regards.
