Freigeben über


EP Configuration - Single Web Server & Multiple AOS installations

Question:

How to configure multiple AX 4.0 Enterprise Portal sites on the same web server each pointing to a different instance of the .NET Business Connector, each with a different configuration pointing to different AOS?

Answer:

By default , EP connects to the default configuration stored in the registry on the server.For the second EP on the same web server, create a new IIS virtual server in IIS and enable SharePoint and EP on this IIS virtual server as well.  Make sure they use differnet app pools ( even if the Identity / BC proxy account is the same).

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 :

(1) Make sure you have two diferent app pools for these two IIS web sites even if the business connector proxy account is the same.
(2) Make sure the SharePoint site is registered in AX for the right AOS instance.( Administration -> Setup -> Internet -> Enterprise Portal -> Web sites)
(3) For Microsoft Dynamics Ax 2009, make sure both IIS Websites physical directoy ( for ex. c:\inetpub\wwwroot\vss\virtual directories\80\app_code) contains the "proxy" folder with proxy files. These files are generated for X++ classes used by EP when EP setup is run. If one of the virtual directory app_code folder does not have proxy files, you can either generate them manually from Ax Client -> Tools -> Development Tools -> Web Development tools -> Proxies or copy them from the other virutal directory if that exists

Comments

  • Anonymous
    May 03, 2007
    Hi, i have the same problem.. you solution don´t work... <Microsoft.Dynamics>     <Session Timeout="15" Configuration="C:Inetpubwwwrootaxapta.axc" /> </Microsoft.Dynamics> the parameter "configuration" will be ignored... can you please help me?

  • Anonymous
    May 03, 2007
    oooh... sorry it work... i made a typing error.

  • Anonymous
    May 23, 2007
    Hey meysun, I'm amazed to see this entry is the only article on the web adressing this exact scenario: Single Web Server, Multiple AOS installations. However... I've been trying the solution you provide, but keep getting a 'File not found' on a Sharepoint errorpage. Do you know of any resources describing the configuration settings possible in the web.config file? Thanks for the great post, and hopefully a quick response to my question ;-) Oliver

  • Anonymous
    July 15, 2007
    Hi, I had the same problem, but after seeing the solution that you have posted, everything's fine. As you have stated, i have saved the .axc in my website folder. Now i can access EP with Admin login. But if any other user login to EP, an empty page shows up. I checked with the Server's event viewer. It says Error: Web session initialization for Microsoft Dynamics failed. Unknown user: <username> Warning: Microsoft Dynamics Business Connector Session 8. An X++ exception has occurred. Unknown user: <username> Please help me out! Thanks Venkatesh

  • Anonymous
    July 18, 2007
    Make sure the user is configured in User relations in the AOS that you are connecting for the company of the web site

  • Anonymous
    July 26, 2007
    The comment has been removed

  • Anonymous
    September 20, 2007
    i am a bigner for axapta web but i know the other,and i have just started by installing all necessary software like sharepoint and EP, but when i try to create website from EP wizard,it doesn't work,what can i do??? thanks in advance

  • Anonymous
    February 05, 2008
    Hi, I've tried making the changed to the web.config for the 2 sites I want to run. But I ran into the following problem. Only one of the two site can run at the same time. Situation: Portal 1 is at: http://localhost/ep Portal 2 is at: http://localhost:2716/testep When I go the portal 1 there is no problem it's running fine, but as soon as I create portal 2, portal 1 becomes empty. So I recreate portal 1 but now portal 2 is empty. Can anyone help mee?

  • Anonymous
    May 03, 2008
    hi i have a problem, error- .NET Business connector can't find the session,the website doesn't create. 1-i am using 3 servers,one for Dynamic Ax,one for MOSS2007,the last one is for sqlServer(database), i try to install EP on sharepoint server and accessing the one which is server of Dynamic Ax database calling Dynamic,but is giving the above error, can you help me please brother???? have a good time

  • Anonymous
    June 20, 2008
    Make sure you have two diferent app pools for these two IIS web sites even if the business connector proxy account is the same. Also register the web site in the Ax client connecting to the right AOS

  • Anonymous
    July 07, 2008
    Followed the procedure and confirm working. Thanks very much.

  • Anonymous
    July 21, 2008
    How would you handle hosting multiple EP sites on a AX 2009 configuration?  My initial thought was to create a seperate website for each AOS instance (different IIS ports).  Then create a sepearate SharePoint Web Application and then create the site collection manually from within SharePoint.  My only concern is how to tell SharePoint how to connect to my AOS instance.  Would you reference the AOS as outlined in your EP 4.0 example?  Any thoughts anyone has would be very helpful.

  • Anonymous
    July 30, 2008
    Yes. You would reference the configuration file in web.config the same way you did in AX 4.0

  • Anonymous
    September 15, 2008
    Could you please help me out with the following scenario: I need to set up a DEV and TEST EP SITE which should hold different versions of the same content i.e., I will have two versions of the same Web Control (Which would be in the LAYOUTEP folder). How can I have such env setup and how can the sharepoint Layout and ControlTemplate folder be different for each web site ? Thanks in advance

  • Anonymous
    September 16, 2008
    Hi I get a "The SiteMapProvider 'DynamicsTopNavProvider' cannot be found." error when trying to logon to the Sharepoint Central Administration 3.0 What could possibly be the problem ?

  • Anonymous
    November 14, 2008
    some aditional remarks. 1 You place this code at the web.config file, so all site that use this one , have the same AOS, so different AOS's on 2 sites both op Port 80 will not work. 2 Check if the axc file works for an ordanary AX client! 3 check that port number, server, and service name are placed in the ASC fine.

  • Anonymous
    February 04, 2009
    Hey, I have created new virtual server, What I need to do for enabling Sharepoint and EP ?

  • Anonymous
    March 23, 2009
    I get this error in eventvwr when I try to create the second site using the EP Template on sharepoint.. Microsoft.Dynamics.BusinessConnectorNet.NoSecurityKeyException   en Microsoft.Dynamics.BusinessConnectorNet.Axapta.Logon(BC_PROXY_ACCOUNT_INFO* pBCProxyAccountInfo, String company, String language, String objectServer, String configuration)   en Microsoft.Dynamics.BusinessConnectorNet.Axapta.LogonUsingBCProxyAccount(_SEC_WINNT_AUTH_IDENTITY_W* pImpersonatedUserAccount, NetworkCredential bcProxyCredentials, String company, String language, String objectServer, String configuration)   en Microsoft.Dynamics.BusinessConnectorNet.Axapta.LogonAs(String user, String domain, NetworkCredential bcProxyCredentials, String company, String language, String objectServer, String configuration)   en Microsoft.Dynamics.WebParts.SessionItem.Init() Any ideas?? The axc file is in it's place and is working for a client

  • Anonymous
    May 05, 2009
    The comment has been removed

  • Anonymous
    August 12, 2009
    I could not make it work. I have IIS 7.0 and there is no option "create a new IIS virtual server in IIS". Moreover I do not understand what does it mean "enable SharePoint and EP on this IIS virtual server". If someone could provide more detailed explanation    it would be helpful.

  • Anonymous
    September 10, 2009
    Hello! I followed your instructions and got i to work om my local VPC image. However in our test-environment when installing the Role Center/EP (nr 2) I get the same error as described below: http://geekswithblogs.net/ssmantha/archive/2009/05/12/axwebpart.cab-deployment-failed-while-doing-dynamics-ax-2009-enterprise-portal.aspx The files mensioned for deletion does not exist om my web-server so nothing to delete... This has the effect that the existing Ax-solution in SharePoint is retracted/deleted from SP. Any suggestions?

  • Anonymous
    September 10, 2009
    Hi Tomas, From what I understand you problem is due to the absence of the AxWebPart.cab solution. With what I know this cab file should be present in the SharePoint for a successful installation of Enterprise Portal. Also this solution should be avaliable to both the website, this might need some exploration since it is possible to Deploy solution to multiple sites. To install the second site my recommendation would be not to use the setup as it will again try to install the solution. If possible to try to achieve all the setps manually, and finally Deploy axwebpart.cab file for the new second web site from the solutions management feature of SharePoint.

  • Anonymous
    January 24, 2010
    I have tried this on 80 port but web.config file gives a compilation error Unrecognized configuration section system.web/Microsoft.Dynamics. Any ideas ? Best Regards

  • Anonymous
    August 09, 2010
    My setup is the folowin :Windows Server 2008 r2/SQL Server 2008 r2/Axapta 2009. So i have created secondary site linked it to another app pool. Put sharepoint objects inside -axwebaprts.cab is on secondary server also. Then i made proxies files from Ax they get there. Then i have made changes to web.config of the secondary web server. I also placed the axc for the needed configuration in there. I am still not sure what configuration should be there, I assumethe one i need to connect my EP secondary site 2. Then i open AX 2009 setup and start  EP portal setup. It show that the site will be created  on secondary site with the active Ax configuration I need to use. Finally when i open Ax i see that both new and old sites have the same content which is not from the new selected configuration So how to connect secondary EP site to show content from secondary axapta configuration and what i am doing wrong. Thanks in advance

  • Anonymous
    September 30, 2010
    Hi Meysun this indeed works for the .NET BC, but stil poses a problem when updating a site as Prabhat already mentioned. I used this solution to build a single webserver with multiple sites (development, test and acceptance). As this is a server with x64 O/S, I use the axupdateportal utility to deploy the websites from AX. When I run this utility, it first deploys the development, then the test and at last the acceptance portal. The problem arises when the utility exports the web controls from AX to Sharepoint. It does this to one single directory (layoutsep) for ALL installed portals. In my case, the acceptance portal is deployed last and so all web controls are from the acceptance environment. I can change the _layouts virtual directory of each site to refer to different layout directories, but the axupdateportal utility still deploys only to the layoutsep directory. Do you have any solution for this problem or is it just not possible?

  • Anonymous
    October 04, 2010
    You have to map the different IIS Websites _layouts virutal directory to differnt physical folders. AXUpdatePortal will put the files to SharePoint layoutsep folder and you have to manually copy or write a job to copy to the right phycial folder mapping to your _layouts virutal directory.

  • Anonymous
    October 06, 2010
    Hi Meysun, thank you for your reply. How do I update only one site with the AXUpdatePortal? When I run it, it updates ALL sites, and thus the webcontrols in the layoutsep folder are the ones of the last updated site.  

  • Anonymous
    October 07, 2010
    I am using 64-bit machine and have installed AX 2009 SP1, sharepoint 3.0 sp2 and ep. But I have issuse to Manage Deployments AX 2009>Administrator>Setup>Internet>Enterprise Portal>Manage Deployments>click "Manage Deployment cannot be run because Enterprise Portal is not deployed on this computer"  Then I tried AxUpdatePortal utility and cmd also but till i have that issue what I want to do Thanks

  • Anonymous
    October 07, 2010
    If SharePoint is not detected, then check this suggestion blogs.msdn.com/.../64bit-machine-vs-ep-add-in-not-deploying-user-control-to-sharepoint-while-saving.aspx

  • Anonymous
    February 14, 2011
    I faced same problem for AX 2009 and solved it by changing port number from Business connector configuration through Admin tools>Ax 2009 configuration>Businesss connector. Thanks Sudhir