Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

bortolotti_carl
New Contributor II

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

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());



1 Solution

Accepted Solutions
bortolotti_carl
New Contributor II

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

I solve this problem! I create an security rule to the user that i connect, and it works fine.

4 Replies
Employee
Employee

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

I don't think that method should be called directly on the engine. I believe the correct approach would be to go through the QRS-API instead. Check out this page for more information:

https://help.qlik.com/en-US/sense-developer/February2018/Subsystems/RepositoryServiceAPI/Content/Rep...

bortolotti_carl
New Contributor II

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

I solve this problem! I create an security rule to the user that i connect, and it works fine.

marcelhahnas
New Contributor

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

Hello,

I have the same problem as you.
I always get the error "forbidden 403" when trying ExportApp.

How did you create this security rule? Thanks in advance.

bortolotti_carl
New Contributor II

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

export_app_security_rule.PNG

Community Browser