How to configure AQB.Web.virtualDirectory in Angular project.
Using professional edition of Active Query Builder v3.8.
I am trying to integrate AQB with angular project.
My angular project is running on seperate host i.e. localhost:4200 and AQB project is running seperate ASP.NET Core project https://localhost:6001
When we have run the angular project got few errors and AQB not loaded in browser.
Here I need to change the URL to https://localhost:6001/ActiveQueryBuilder/Handler/resources/strings/Auto(with https protocol) instead of using http://localhost:4200/ActiveQueryBuilder/Handler/resources/strings/Auto this link.
For this I have added AQB.Web.virtualDirectory to '/localhost:6001'.
After added virtual directory system auto generates link with http protocol. Its not working for me, as for my server side project its https protocol.
I need this link with https protocol. Could you please tell me how can I manage correct Handler link from client side on my angular project? also do I need to anything on server side?
Hello, Rajib.
"So the first thing you should check on getting this error is that the QueryBuilder instance is actually created on the server."
What it means is that you should literally, if it's possible to debug this, put a breakpoint in the server QueryBuilder initialization code and make sure that the component instance with the "Angular" instanceId is really created (and no exceptions are raised during this process) on the server. If it's not possible to debug, put a marker of some kind (save the log file).
The fine point is the InstanceId name. It must be the same as the "name" variable value in the client code ("Angular").
This error may happen due to the CORS misconfiguration. If you host your application server on a different host, please check your JavaScript console for CORS errors.