DocuVieware implementation on Azure WebApp

Discussions about DocuVieware integration in GdPicture.NET.
Post Reply
Dio
Posts: 2
Joined: Sun Oct 02, 2016 5:41 pm

DocuVieware implementation on Azure WebApp

Post by Dio » Sun Oct 02, 2016 5:55 pm

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!

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: DocuVieware implementation on Azure WebApp

Post by Loïc » Mon Oct 03, 2016 10:56 am

Hi,

Could you explain further what is the error obtained?

Kind regards,

Loïc

Dio
Posts: 2
Joined: Sun Oct 02, 2016 5:41 pm

Re: DocuVieware implementation on Azure WebApp

Post by Dio » Wed Oct 05, 2016 4:47 pm

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.

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: DocuVieware implementation on Azure WebApp

Post by Loïc » Fri Oct 07, 2016 11:38 am

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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest