Contents

Web Services on IIS - Exception has been thrown by the target of an invocation

Contents

When I try to install Web Services on IIS for Retails POS Component, and I got the problem.

This scenario shouldn’t be common in a production environment, but, it is indeed quite common in a VM machine (I’m using virtual machine Hyper-V on Windows 8.1)

/2015-08-04-web-services-on-iis-exception-has-been-thrown-by-the-target-of-an-invocation-ax-installation/web-services-on-iis-exception_1.png
exception_1

Error:

/2015-08-04-web-services-on-iis-exception-has-been-thrown-by-the-target-of-an-invocation-ax-installation/web-services-on-iis-exception_2.png
exception_2

Exception has been thrown by the target of an invocation

/2015-08-04-web-services-on-iis-exception-has-been-thrown-by-the-target-of-an-invocation-ax-installation/web-services-on-iis-exception_3.png
exception_3

So, the problem is relate to thee AOS Service account, which by default is usually NT AUTHORITYNETWORK SERVICE account.

/2015-08-04-web-services-on-iis-exception-has-been-thrown-by-the-target-of-an-invocation-ax-installation/web-services-on-iis-exception_4.png
exception_4

but because of we are running on a Domain Controller Server, we should use any specific Domain account created just for running AOS services, then you’ll success installing Web Services on IIS.

/2015-08-04-web-services-on-iis-exception-has-been-thrown-by-the-target-of-an-invocation-ax-installation/web-services-on-iis-exception_5.png

Now please restart services and try again.