Unable to write to folder:~/UploaderTemp

  •  07-27-2011, 3:16 PM

    Unable to write to folder:~/UploaderTemp

    Hi,
     
    I've download the  ASP.NET Image Gallery 3.0 evolution version and I'm testing it on my production server before buying the Domain License.
    I'm working with VS2010, VB.NET and Framework 4.0.
    On my local workstation everything is working fine.
     
    As for the Developer's Manual, I've modified my web.config in this way:
     
        <httpModules>
          <add name="DotNetGallery.UploadModule" type="DotNetGallery.UploadModule,DotNetGallery"/>
        </httpModules> 
     
    I've registered the assembly on my page:
     
    <%@ Register TagPrefix="DotNetGallery" Namespace="DotNetGallery" Assembly="DotNetGallery" %> 
     
     Now, on my production server, I get :
     

    Unable to write to folder:~/UploaderTemp.  Please change the permissions of this folder or specify a temporary folder using TempDirectory property or setting temporary file location in web.config.

     
    [ArgumentException: Unable to write to folder:~/UploaderTemp.  Please change the permissions of this folder or specify a temporary folder using TempDirectory property or setting temporary file location in web.config.]    DotNetGallery.UploaderBase.as() +429    DotNetGallery.UploaderBase.ar() +22    DotNetGallery.UploaderBase.b(HtmlTextWriter A_0) +3560    DotNetGallery.UploaderBase.Render(HtmlTextWriter writer) +57    f.Render(HtmlTextWriter writer) +18    o.Render(HtmlTextWriter writer) +43    System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27    System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100    System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25    DotNetGallery.GalleryBrowser.RenderContents(HtmlTextWriter writer) +582    System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32    DotNetGallery.GalleryBrowser.Render(HtmlTextWriter writer) +109    System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27    System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100    System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25    System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +208    System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8    System.Web.UI.Control.Render(HtmlTextWriter writer) +10    System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27    System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100    System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
     
     
    As for may posts I read, I tried to :
     
    1) Add the TempDirectory="~/Fotogallery/UploaderTemp" on my control
    2) Moified the web.config adding:
     
    <configuration>  
          <appSettings>  
    <add key="DotNetGalleryLicense" value="/Bin/DotNetGallery.lic" />  
          </appSettings>  
    </configuration>
     
    3) Add this section to my web.config:
     
         <add key="DotNetGalleryClient" value="~/CuteSoft_Client/Gallery/" />
         <add key="DotNetGalleryFolder" value="~/Fotogallery/GalleryFiles/" />-->
         <add key="DotNetGallery.UploadModule.TempDirectory" value="~/Fotogallery/UploaderTemp"/>
     
    Everything in different orders, testing each one of them, but nohing works.
     
    The directory  Fotogallery as full permission on it.
     
    Any idea?
View Complete Thread