Welcome to MSDN Blogs Sign in | Join | Help

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 

Published Monday, September 11, 2006 7:10 PM by meysun

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: EP Configuration - Single Web Server & Multiple AOS installations

Thursday, May 03, 2007 11:53 AM by mkraus81

Hi,

i have the same problem..

you solution don´t work...

<Microsoft.Dynamics>

    <Session Timeout="15" Configuration="C:\Inetpub\wwwroot\axapta.axc" />

</Microsoft.Dynamics>

the parameter "configuration" will be ignored...

can you please help me?

# re: EP Configuration - Single Web Server & Multiple AOS installations

Thursday, May 03, 2007 12:26 PM by mkraus81

oooh... sorry it work... i made a typing error.

# re: EP Configuration - Single Web Server & Multiple AOS installations

Wednesday, May 23, 2007 9:17 AM by Oliver

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

# re: EP Configuration - Single Web Server & Multiple AOS installations

Monday, July 16, 2007 6:30 AM by Venkatesh

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

# re: EP Configuration - Single Web Server & Multiple AOS installations

Wednesday, July 18, 2007 11:28 AM by meysun

Make sure the user is configured in User relations in the AOS that you are connecting for the company of the web site

# re: EP Configuration - Single Web Server & Multiple AOS installations

Thursday, July 26, 2007 11:42 AM by S Butt

I've followed the instructions above to get the portal working with LIVE AOS (at the moment its working on TEST AOS on the same box) and got the virtual IIS working but when I create the top level site and choose the template it still is showing the companies which are in the TEST AOS. Which means its not connecting to the LIVE. Also the C:\Inetpub\wwroot is the same path i'd used for new virtual IIS. Test one is using the same path as well. Any idea?

# re: EP Configuration - Single Web Server & Multiple AOS installations

Thursday, September 20, 2007 10:56 PM by sami

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

# re: EP Configuration - Single Web Server & Multiple AOS installations

Wednesday, February 06, 2008 4:59 AM by Gert-Jan

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?

# re: EP Configuration - Single Web Server & Multiple AOS installations

Saturday, May 03, 2008 4:54 PM by sami

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

# re: EP Configuration - Single Web Server & Multiple AOS installations

Saturday, June 21, 2008 2:18 AM by meysun

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

# re: EP Configuration - Single Web Server & Multiple AOS installations

Monday, July 07, 2008 8:36 AM by rinusripsus

Followed the procedure and confirm working.

Thanks very much.

# re: EP Configuration - Single Web Server & Multiple AOS installations

Monday, July 21, 2008 10:35 PM by Ken

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.

# re: EP Configuration - Single Web Server & Multiple AOS installations

Wednesday, July 30, 2008 2:53 PM by meysun

Yes. You would reference the configuration file in web.config the same way you did in AX 4.0

# re: EP Configuration - Single Web Server & Multiple AOS installations

Tuesday, September 16, 2008 5:10 AM by Prabhat

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 LAYOUT\EP 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

# re: EP Configuration - Single Web Server & Multiple AOS installations

Tuesday, September 16, 2008 11:15 PM by Sam

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 ?

# re: EP Configuration - Single Web Server & Multiple AOS installations

Friday, November 14, 2008 9:29 AM by wenni057

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.

# re: EP Configuration - Single Web Server & Multiple AOS installations

Thursday, February 05, 2009 7:37 AM by Nits

Hey, I have created new virtual server, What I need to do for enabling Sharepoint and EP ?

# re: EP Configuration - Single Web Server & Multiple AOS installations

Monday, March 23, 2009 3:06 PM by Averied

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

# re: EP Configuration - Single Web Server & Multiple AOS installations

Wednesday, May 06, 2009 6:32 AM by Tutoo

I have wss 3.0 installed on a Windows 2003 box and running Ax

2009 with EP configured. I am unable to open the "Sharepoint Central

Administration 3.0" site.

"The SiteMapProvider 'DynamicsTopNavProvider' cannot be found. " is the

error that is thrown.

# re: EP Configuration - Single Web Server & Multiple AOS installations

Thursday, August 13, 2009 6:12 AM by francesco

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.

# re: EP Configuration - Single Web Server & Multiple AOS installations

Thursday, September 10, 2009 8:19 AM by Tomas

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?

# re: EP Configuration - Single Web Server & Multiple AOS installations

Thursday, September 10, 2009 9:30 AM by Satya Srikant Mantha

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.

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker