Objective: To have two EP Sites that are connected to two different AOS's, configured on a single server machine.
Current Software & Hardware Environment
- Server runs on a 64Bit Processor
- Windows 2003 R2 Enterprise 64 bit with SP2
- SQL Server 2005 SP2
- Sharepoint Server 2007
- Dynamics Ax 2009
Current Configuration
- Sharepoint is installed to run on a website “Sharepoint – DEV” (on port 80) and uses an application pool with the same name. The app pool uses a Ax admin account for its identity, the account will be referred to as “AxAdmin” in this blog entry.
- The Dynamics Ax 2009 Client Configuration is configured to use the “Development” AOS referred to in this blog entry as “DevAOS” and so is the Business Connector.
- The “AxAdmin” account is configured to be the Proxy account for accessing Dynamics Ax through the Business Connector.
Configuring two EP Sites linked to different AOS’s coexist on a single server
- Run the “Ax 2009” installation.
- Select “Add Remove” (or Repair) option from the installer screen.
- Select “Role Centers and Enterprise Portal” as the component to be installed.
- Enter the password for the “AxAdmin” account which is also the Proxy account
- Select the website “Sharepoint –Dev” , Check “Configure for Windows Sharepoint Services” and check create web site – the site url is “http://myserver/sites/DevSite” – referred to as “DevSite” in this blog entry
- Complete the installation. After which the development site is up and running. The “DevSite” connects to “DevAOS” and works fine.
- Create a new “Application Pool” using the existing “DevSite” application pool “Sharepoint – Dev” as the template, this application pool will be referred to as “Sharepoint-Test” in this blog entry.
- Create a new website “TestSite” and use “Sharepoint – Test” as the application pool. Set the port to “90” (any port that is not is use already)
- Open the “Dynamics Ax Client Configuration” and change the AOS referred to by the Local Client and the Business Connector to the “TestAOS”
- Open the AOT of “TestAOS” and select Web > Web Files > Static Files > EPSetupParam and edit it – Change the URL to “TestSite”.
- Repeat steps 1 to 6 on the new website.
- Add the following Web.config entries based on the blog entry from Solutions Monkey
https://blogs.msdn.com/solutions/archive/2006/09/11/ep-configuration-single-web-server-multiple-aos-installations.aspx
On the Web server, make the following edits to the Web.config file in the wwwroot folder (for example, C:\inetpub\wwwroot where the Second Web server is installed in the C: drive):
1) Add the Microsoft.Dynamics section group under <configSections>. Add the following text:
<sectionGroup name="Microsoft.Dynamics">
<section name="Session" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.5000.0, Culture=neutral,PublicKeyToken=b77a5c561934e089" />
</sectionGroup>
2. Add the following Microsoft.Dynamics element under </system.web>. Add the following text to the file:
<Microsoft.Dynamics>
<Session Timeout="15" Configuration="C:\Inetpub\wwwroot\axapta.axc" />
</Microsoft.Dynamics>
You can export the AX configuration pointing to the second AOS to a file and refer it in the second step.
|
NOTE: The installation creates a new application pool and a new website virtual directory with the same name but prefixed with a GUID.
NOW how two versions of the product being developed should be deployed on the same sharepoint server is still a QUESTION Hmmm will get back to this blog after I have an answer from the Microsoft guys :)
Workaround: Create a new Layout and ControlTemplate folder and change the web folders in the new website to refer to the new folders and copy the controls to the new folder. This is a clumpsy fix but it works !!
Possible errors
The installation might rollback if there are users connected to the AOS - and the DAX dlls might be locked. There is another error which was encountered saying "Sharepoint port" is already in use dont know the reason for this error but try stopping the other website during the installation