вторник, 18 мая 2010 г.

Using AIF web services with multiple AOS instance installed in single computer

Problem:
If we have multiple AOS’s, how the business connector works is, Business connector will log on to Microsoft Dynamics using the first available configuration from the registry and use it.

For example if we have AOS-I and AOS-II and in registry the active one is AOS-II.

But we want to work with AOS-I, like using AIF –Web Services and Enterprise Portal. How we can achieve this problem?

Solution is here:

Create the client configuration file for AOS-I and save it in local disk.
Second AIF on the same box:
Duplicate the "shared directory" and create the associate web site on ISSConnect the client to the desired AOS instance and configure.Setup AIF web site in AX Basic ->Setup -> AIF -> WebSitesUpdate web.config file for AIF site

For AIF Web Services: Go to the IIS àWeb sites à Default websites àMicrosoft DynamicsAxAif50
Find the web.config file and open for edit and add following lines by finding the tag in that config file.





For EP: Go to the IIS and select the corresponding virtual folder for the share point portal and select the web.config file for edit and add the following lines to that web config file.





In this way, we can work with selective AOS, even though we have multiple AOS’s.