3 Replies Latest reply: Jun 21, 2018 1:56 AM by Marcel Hahnas RSS

    When I call ExportApp method in QlikSense.Net SDK I get error "Forbidden 403"

    Carlos Bortolotti

      Hi,

       

      When I call ExportApp method, i'm always get error message "Forbidden 403". Does exists a permission required?

       

      My code is below:

       

                  ILocation r = Qlik.Engine.Location.FromUri("https://srv-bi.domain.local");


                  System.Net.NetworkCredential loginCredentials =

                          new System.Net.NetworkCredential("user", "pass", "domain");


                  r.AsNtlmUserViaProxy(loginCredentials: loginCredentials);


                  using (IHub hub = r.Hub(Session.Random, false))

                  {


                      List<string> l = new List<string>();


                      string qAppId = "6f8d9ff3-f686-4611-9f08-d03226074ca5";


                      MessageBox.Show("?");


                      var b =

                          hub.ExportApp(@"C:\Qlik\Teste.qvf", qAppId, l); //


                      MessageBox.Show(b.ToString());