upload works on dev server, not on production server

  •  06-04-2010, 1:03 PM

    upload works on dev server, not on production server

    Hello,

    NOTE: There are a bunch of later messages here with additional information and updates to this one - please read them all before responding!

     
    UPDATE:
    THIS HAS BEEN SOLVED  -- see me final message
     
     
     I’m using the trial version. VS2008, .NET 3.5, C#.

     We are loading to a temp directory and then saving to a final directory. This all works fine on the development system. The production server is a hosted server, and the file does appear in its temp location as a .resx, but the FileUploaded event never fires, and thus our code to store the file is never called.

     Here are the web server log entries from the time we request our upload page, through the end of whatever occurs when we upload a file:

     2010-06-04 17:13:03 GET /admin/ScenarioImport/Upload.aspx - 76.79.206.115 HTTP/1.1 Mozilla/5.0+(Windows;+U;+Windows+NT+6.1;+en-US;+rv:1.9.2.3)+Gecko/20100401+Firefox/3.6.3 http://viewpoints.rbac.com/User/Profile.aspx 200 55386 654

    2010-06-04 17:13:03 GET /CuteWebUI_Uploader_Resource.axd type=file&file=continuous.gif 76.79.206.115 HTTP/1.1 Mozilla/5.0+(Windows;+U;+Windows+NT+6.1;+en-US;+rv:1.9.2.3)+Gecko/20100401+Firefox/3.6.3 http://viewpoints.rbac.com/admin/ScenarioImport/Upload.aspx 200 398 718

    2010-06-04 17:13:04 GET /CuteWebUI_Uploader_Resource.axd type=script&_ver=634112466467229976 76.79.206.115 HTTP/1.1 Mozilla/5.0+(Windows;+U;+Windows+NT+6.1;+en-US;+rv:1.9.2.3)+Gecko/20100401+Firefox/3.6.3 http://viewpoints.rbac.com/admin/ScenarioImport/Upload.aspx 200 116024 644

    2010-06-04 17:13:04 GET /DXR.axd r=4_1 76.79.206.115 HTTP/1.1 Mozilla/5.0+(Windows;+U;+Windows+NT+6.1;+en-US;+rv:1.9.2.3)+Gecko/20100401+Firefox/3.6.3 http://viewpoints.rbac.com/admin/ScenarioImport/Upload.aspx 304 213 655

    2010-06-04 17:13:05 GET /CuteWebUI_Uploader_Resource.axd type=file&file=silverlight.xap&_ver=634112466467229976 76.79.206.115 HTTP/1.1 Mozilla/5.0+(Windows;+U;+Windows+NT+6.1;+en-US;+rv:1.9.2.3)+Gecko/20100401+Firefox/3.6.3 - 200 15391 653

    2010-06-04 17:13:06 GET /CuteWebUI_Uploader_Resource.axd type=emptyhtml 76.79.206.115 HTTP/1.1 Mozilla/5.0+(Windows;+U;+Windows+NT+6.1;+en-US;+rv:1.9.2.3)+Gecko/20100401+Firefox/3.6.3 http://viewpoints.rbac.com/admin/ScenarioImport/Upload.aspx 200 0 683

    2010-06-04 17:13:11 GET /CuteWebUI_Uploader_Resource.axd type=file&file=circle.png&_ver=634112466467229976 76.79.206.115 HTTP/1.1 Mozilla/5.0+(Windows;+U;+Windows+NT+6.1;+en-US;+rv:1.9.2.3)+Gecko/20100401+Firefox/3.6.3 http://viewpoints.rbac.com/admin/ScenarioImport/Upload.aspx 200 608 688

    2010-06-04 17:13:11 GET /CuteWebUI_Uploader_Resource.axd type=file&file=stop.png&_ver=634112466467229976 76.79.206.115 HTTP/1.1 Mozilla/5.0+(Windows;+U;+Windows+NT+6.1;+en-US;+rv:1.9.2.3)+Gecko/20100401+Firefox/3.6.3 http://viewpoints.rbac.com/admin/ScenarioImport/Upload.aspx 200 643 686

    2010-06-04 17:13:13 GET /CuteWebUI_Uploader_Resource.axd type=emptyhtml 76.79.206.115 HTTP/1.1 Mozilla/5.0+(Windows;+U;+Windows+NT+6.1;+en-US;+rv:1.9.2.3)+Gecko/20100401+Firefox/3.6.3 http://viewpoints.rbac.com/admin/ScenarioImport/Upload.aspx 200 0 683

    2010-06-04 17:13:13 GET /CuteWebUI_Uploader_Resource.axd type=file&file=continuous.gif&_ver=634112466467229976 76.79.206.115 HTTP/1.1 Mozilla/5.0+(Windows;+U;+Windows+NT+6.1;+en-US;+rv:1.9.2.3)+Gecko/20100401+Firefox/3.6.3 http://viewpoints.rbac.com/admin/ScenarioImport/Upload.aspx 200 438 692

    2010-06-04 17:13:14 POST /admin/ScenarioImport/Upload.aspx UseUploadModule=Dynamic&_Namespace=CuteWebUI&_UploadID=ctl00_BodyPlaceholder_Uploader1Image_1275671600953_1&_UploadControlID=ctl00$BodyPlaceholder$Uploader1&ContextValue=!3wEWAQUbfi9hZG1pbi9TY2VuYXJpb0ltcG9ydC9UZW1wZJa8YwEmcrNLxl8h7tuhy8t5uH0!2&_Addon=upload&_AddonGuid=8f798714-0138-4778-8e66-09e25dab7b45&_NoCache=634112432031373130 76.79.206.115 HTTP/1.1 Mozilla/5.0+(Windows;+U;+Windows+NT+6.1;+en-US;+rv:1.9.2.3)+Gecko/20100401+Firefox/3.6.3 - 200 220 67275

    2010-06-04 17:13:14 POST /admin/ScenarioImport/Upload.aspx UseUploadModule=Dynamic&_Namespace=CuteWebUI&_UploadID=ctl00_BodyPlaceholder_Uploader1Image_1275671600953_1&_UploadControlID=ctl00$BodyPlaceholder$Uploader1&ContextValue=!3wEWAQUbfi9hZG1pbi9TY2VuYXJpb0ltcG9ydC9UZW1wZJa8YwEmcrNLxl8h7tuhy8t5uH0!2&_Addon=upload&_AddonGuid=8f798714-0138-4778-8e66-09e25dab7b45&_NoCache=634112432040053627 76.79.206.115 HTTP/1.1 Mozilla/5.0+(Windows;+U;+Windows+NT+6.1;+en-US;+rv:1.9.2.3)+Gecko/20100401+Firefox/3.6.3 - 200 220 76802

    2010-06-04 17:13:15 POST /admin/ScenarioImport/Upload.aspx UseUploadModule=Dynamic&_Namespace=CuteWebUI&_UploadID=ctl00_BodyPlaceholder_Uploader1Image_1275671600953_1&_UploadControlID=ctl00$BodyPlaceholder$Uploader1&ContextValue=!3wEWAQUbfi9hZG1pbi9TY2VuYXJpb0ltcG9ydC9UZW1wZJa8YwEmcrNLxl8h7tuhy8t5uH0!2&_Addon=upload&_AddonGuid=8f798714-0138-4778-8e66-09e25dab7b45&_NoCache=634112432047394047 76.79.206.115 HTTP/1.1 Mozilla/5.0+(Windows;+U;+Windows+NT+6.1;+en-US;+rv:1.9.2.3)+Gecko/20100401+Firefox/3.6.3 - 200 220 49552

    2010-06-04 17:13:15 POST /admin/ScenarioImport/Upload.aspx UseUploadModule=Dynamic&_Namespace=CuteWebUI&_UploadID=ctl00_BodyPlaceholder_Uploader1Image_1275671600953_1&_UploadControlID=ctl00$BodyPlaceholder$Uploader1&ContextValue=!3wEWAQUbfi9hZG1pbi9TY2VuYXJpb0ltcG9ydC9UZW1wZJa8YwEmcrNLxl8h7tuhy8t5uH0!2&_Addon=verify&_AddonGuid=8f798714-0138-4778-8e66-09e25dab7b45 76.79.206.115 HTTP/1.1 Mozilla/5.0+(Windows;+U;+Windows+NT+6.1;+en-US;+rv:1.9.2.3)+Gecko/20100401+Firefox/3.6.3 http://viewpoints.rbac.com/admin/ScenarioImport/Upload.aspx 200 425 19510

    2010-06-04 17:13:15 GET /CuteWebUI_Uploader_Resource.axd type=emptyhtml 76.79.206.115 HTTP/1.1 Mozilla/5.0+(Windows;+U;+Windows+NT+6.1;+en-US;+rv:1.9.2.3)+Gecko/20100401+Firefox/3.6.3 http://viewpoints.rbac.com/admin/ScenarioImport/Upload.aspx 200 0 683

    2010-06-04 17:13:15 GET /CuteWebUI_Uploader_Resource.axd type=file&file=uploadok.png&_ver=634112466467229976 76.79.206.115 HTTP/1.1 Mozilla/5.0+(Windows;+U;+Windows+NT+6.1;+en-US;+rv:1.9.2.3)+Gecko/20100401+Firefox/3.6.3 http://viewpoints.rbac.com/admin/ScenarioImport/Upload.aspx 200 610 690

    2010-06-04 17:13:16 POST /admin/ScenarioImport/Upload.aspx - 76.79.206.115 HTTP/1.1 Mozilla/5.0+(Windows;+U;+Windows+NT+6.1;+en-US;+rv:1.9.2.3)+Gecko/20100401+Firefox/3.6.3 http://viewpoints.rbac.com/admin/ScenarioImport/Upload.aspx 200 288 24298

    2010-06-04 17:13:16 GET /CuteWebUI_Uploader_Resource.axd type=emptyhtml 76.79.206.115 HTTP/1.1 Mozilla/5.0+(Windows;+U;+Windows+NT+6.1;+en-US;+rv:1.9.2.3)+Gecko/20100401+Firefox/3.6.3 http://viewpoints.rbac.com/admin/ScenarioImport/Upload.aspx 200 0 683

    2010-06-04 17:13:18 GET /CuteWebUI_Uploader_Resource.axd type=emptyhtml 76.79.206.115 HTTP/1.1 Mozilla/5.0+(Windows;+U;+Windows+NT+6.1;+en-US;+rv:1.9.2.3)+Gecko/20100401+Firefox/3.6.3 http://viewpoints.rbac.com/admin/ScenarioImport/Upload.aspx 200 0 683

     

     There are no error messages – I can’t tell what the problem is. Could there be permissions or trust issues? If so, I would need to see this in the web log at least, and preferably would actually get a .NET exception for it.

     I’ve added logging to indicate whether FileValidating or UploadCompleted events are fired, as well as FileUploaded – NONE of these events are ever called, even though the UI indicates the upload does complete, and there is a .resx file in our temporary directory, and the file IS the correct size.

     It appears then that upload works but upon completion of file upload, AjaxUploader doesn’t fire any events.

     Here are the web.config settings related to the uploader:

      <appSettings>

        <add key="CuteWebUI.AjaxUploader.TempDirectory" value="~/admin/ScenarioImport/Temp"/>

     </appSettings>

     

        <httpModules>

          <add name="CuteWebUI.UploadModule" type="CuteWebUI.UploadModule,CuteWebUI.AjaxUploader"/>

        </httpModules>

     

    I am using the latest build of the control.

     Here is the markup for the upload control:

                         <CuteWebUI:UploadAttachments runat="server" ManualStartUpload="true" ID="Uploader1"

                            InsertText="Select GPCM Database (Access MDB or ZIP)" OnFileUploaded="Uploader_FileUploaded"

                            DialogFilter="Access Databases (*.mdb)|*.mdb|Zipped Access Database (*.zip)|*.zip"

                            FileTypeNotSupportMsg="Only MDB and ZIP files may be uploaded." MaxFilesLimit="1"

                            MultipleFilesUpload="False" NumFilesShowCancelAll="0" NumFilesShowQueueUI="0"

                            TempDirectory="~/admin/ScenarioImport/Temp" UploadingMsg="Uploading..."

                            AutoUseSystemTempFolder="False" HideNoItemTable="False" ShowCheckBoxes="False"

                            ShowRemoveButtons="False" ShowTableHeader="False">

                            <ValidateOption AllowedFileExtensions="mdb,zip" />

                        </CuteWebUI:UploadAttachments>

     

     

View Complete Thread