TypeError: Unable to get property 'app' of undefined or null reference
at Anonymous function (http://localhost:6234/App/Main/services/appSession.js:10:17)
at invoke (http://localhost:6234/Scripts/angular.min.js:44:320)
at Anonymous function (http://localhost:6234/Scripts/angular.min.js:41:517)
at invoke (http://localhost:6234/Scripts/angular.min.js:44:320)
at Anonymous function (http://localhost:6234/Scripts/angular.min.js:46:146)
at d (http://localhost:6234/Scripts/angular.min.js:43:277)
at e (http://localhost:6234/Scripts/angular.min.js:44:4)
at invoke (http://localhost:6234/Scripts/angular.min.js:44:122)
at Anonymous function (http://localhost:6234/Scripts/angular.min.js:95:42)
at p (http://localhost:6234/Scripts/angular.min.js:69:396)
DEBUG:
Connected to SignalR server!
DEBUG:
Registered to the SignalR server!
Error: [$injector:unpr] http://errors.angularjs.org/1.6.9/$injector/unpr?p0=abp.services.app.automateProvider%20%3C-%20abp.services.app.automate%20%3C-%20app.views.automate
at Anonymous function (http://localhost:6234/Scripts/angular.min.js:46:58)
at d (http://localhost:6234/Scripts/angular.min.js:43:277)
at Anonymous function (http://localhost:6234/Scripts/angular.min.js:46:118)
at d (http://localhost:6234/Scripts/angular.min.js:43:277)
at e (http://localhost:6234/Scripts/angular.min.js:44:4)
at invoke (http://localhost:6234/Scripts/angular.min.js:44:122)
at Anonymous function (http://localhost:6234/Scripts/angular.min.js:95:42)
at p (http://localhost:6234/Scripts/angular.min.js:69:396)
at f (http://localhost:6234/Scripts/angular.min.js:62:388)
at Anonymous function (http://localhost:6234/Scripts/angular.min.js:62:11)
TypeError: Unable to get property 'app' of undefined or null reference
at Anonymous function (http://localhost:6234/App/Main/services/appSession.js:10:17)
at invoke (http://localhost:6234/Scripts/angular.min.js:44:320)
at Anonymous function (http://localhost:6234/Scripts/angular.min.js:41:517)
at invoke (http://localhost:6234/Scripts/angular.min.js:44:320)
at Anonymous function (http://localhost:6234/Scripts/angular.min.js:46:146)
at d (http://localhost:6234/Scripts/angular.min.js:43:277)
at e (http://localhost:6234/Scripts/angular.min.js:44:4)
at invoke (http://localhost:6234/Scripts/angular.min.js:44:122)
at Anonymous function (http://localhost:6234/Scripts/angular.min.js:95:42)
at p (http://localhost:6234/Scripts/angular.min.js:69:396)
TypeError: Unable to get property 'app' of undefined or null reference
at Anonymous function (http://localhost:6234/App/Main/services/appSession.js:10:17)
at invoke (http://localhost:6234/Scripts/angular.min.js:44:320)
at Anonymous function (http://localhost:6234/Scripts/angular.min.js:41:517)
at invoke (http://localhost:6234/Scripts/angular.min.js:44:320)
at Anonymous function (http://localhost:6234/Scripts/angular.min.js:46:146)
at d (http://localhost:6234/Scripts/angular.min.js:43:277)
at e (http://localhost:6234/Scripts/angular.min.js:44:4)
at invoke (http://localhost:6234/Scripts/angular.min.js:44:122)
at Anonymous function (http://localhost:6234/Scripts/angular.min.js:95:42)
at p (http://localhost:6234/Scripts/angular.min.js:69:396)
TypeError: Unable to get property 'app' of undefined or null reference
at Anonymous function (http://localhost:6234/App/Main/services/appSession.js:10:17)
at invoke (http://localhost:6234/Scripts/angular.min.js:44:320)
at Anonymous function (http://localhost:6234/Scripts/angular.min.js:41:517)
at invoke (http://localhost:6234/Scripts/angular.min.js:44:320)
at Anonymous function (http://localhost:6234/Scripts/angular.min.js:46:146)
at d (http://localhost:6234/Scripts/angular.min.js:43:277)
at e (http://localhost:6234/Scripts/angular.min.js:44:4)
at invoke (http://localhost:6234/Scripts/angular.min.js:44:122)
at Anonymous function (http://localhost:6234/Scripts/angular.min.js:95:42)
at p (http://localhost:6234/Scripts/angular.min.js:69:396)
Found the reason :
If i add 2 parameters as in the image, i am getting this error otherwise application works fine.


Reason for passing 2 parameters is that we want pass 2 different objects for calculation in single app service since we dont have option to have tempData[] , otherwise we could send the objects separately by storing the data in memory to do calculation with the another object. kindly suggest the right way.

In asp.net core, model binding for complex type is done via [FromBody] attribute by default, as designed by asp.net core team, see https://github.com/aspnet/Mvc/issues/6847.
As such, abp automatically decorate [FromBody] attribute to all the parameters of an API method when converting ApplicationService into controller.
Also, asp.net core mvc model binding only accept at most 1 parameter with [FromBody], see model-binding#bind-formatted-data-from-the-request-body
Therefore, you should not use two complex type in the same method signature
Most helpful comment
In asp.net core, model binding for complex type is done via
[FromBody]attribute by default, as designed by asp.net core team, see https://github.com/aspnet/Mvc/issues/6847.As such, abp automatically decorate
[FromBody]attribute to all the parameters of an API method when convertingApplicationServiceinto controller.Also, asp.net core mvc model binding only accept at most 1 parameter with
[FromBody], see model-binding#bind-formatted-data-from-the-request-bodyTherefore, you should not use two complex type in the same method signature