Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
bortolotti_carl
Partner - Contributor III
Partner - Contributor III

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
Partner - Contributor III
Partner - Contributor III
Author

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

View solution in original post

4 Replies
Øystein_Kolsrud
Employee
Employee

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
Partner - Contributor III
Partner - Contributor III
Author

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

marcel_h
Contributor
Contributor

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
Partner - Contributor III
Partner - Contributor III
Author

export_app_security_rule.PNG