Page 1 of 1

DocuVieware implementation on Azure WebApp

Posted: Sun Oct 02, 2016 5:55 pm
by Dio
Although locally I can make DocuVieware work following your instructions, when I publish to Azure the same scenario it does not seem to work presenting me always with an error. The code used is the following:

Code: Select all

 GdPicture12.WEB.DocuVieware docuVieware = new GdPicture12.WEB.DocuVieware
        {
            ID = "DocuVieware1",
            CacheFolder = HttpRuntime.AppDomainAppPath + "\\Cache",
            Height = new System.Web.UI.WebControls.Unit("100%"),
            Width = new System.Web.UI.WebControls.Unit("100%")
        };
         docuVieware.LoadFromURI(new Uri(Model.FileName));
        docuVieware.RenderControl(Output);
Thank you!

Re: DocuVieware implementation on Azure WebApp

Posted: Mon Oct 03, 2016 10:56 am
by Loïc
Hi,

Could you explain further what is the error obtained?

Kind regards,

Loïc

Re: DocuVieware implementation on Azure WebApp

Posted: Wed Oct 05, 2016 4:47 pm
by Dio
The provided cache folder is not reachable.

Do we need to give a folder with Azure storage? If yes do you know how to set it. I tried creating a folder in a blob but again got the same.

Re: DocuVieware implementation on Azure WebApp

Posted: Fri Oct 07, 2016 11:38 am
by Loïc
Hi,

You just have to add a folder within your application, IE "cache". Put an index.html empty file to be sure to deploy the folder.

Then, specify the cache folder like this:

DocuVieware1.CacheFolder = HttpRuntime.AppDomainAppPath + "\\cache;


If you need to run several servers with a farm, with no session ip affinity (aka sticky session) you need to switch the StickySessionsEnabled property to false and specify a cache folder reachable by all servers within the farm. In azure this can be done by creating a file storage that you map from all your servers (the option near the blobs within the services section of a storage account). Here a tutorial:
https://blogs.iis.net/davidso/azurefile

Please let me know if you need further information.

With best regards,

Loïc