Alfasith AX

Alfasith AX
اللَّهُمَّ انْفَعْنِي بِمَا عَلَّمْتَنِي، وَعَلِّمْنِي مَا يَنْفَعُنِي، وَزِدْنِي عِلْمًا

Sunday, February 16, 2014

Error message: "http://server/sites/site_name was not created correctly. Exception: Thread was being aborted."


Hi,
This error occurs because of a connection time-out after you select the Microsoft Dynamics AX template while creating a new top-level Web site in Windows SharePoint Administration. To resolve this problem, follow these procedures:
  • Change the Connection timeout and Http Keep-Alive properties on the server that runs IIS.
  • Change connection time-out properties in the web.config file.
Change the Connection timeout and HTTP Keep-Alive properties on the server that runs IIS
  1. Open the Internet Information Services Manager (Start > Run, type inetmgr, and then press ENTER).
  2. Expand the local computer, expand the Web sites directory, right-click the Web site that hosts your Enterprise Portal site (typically the Default Web site), and then clickProperties.
  3. On the Web Site tab, specify a new value in the Connection timeout field. The default value is 120 seconds.
If for example, the server requires up to 4 minutes to create a new site using EP templates, specify a value of 240 seconds.
  1. Select Enable HTTP Keep-Alives (if it is not selected), and then click OK.
  2. Restart IIS (at a command prompt, enter iisreset, and then press ENTER).
Change connection time-out properties in the web.config file
  1. In a basic text editor such as Notepad, open the web.config file (%SYSTEMDRIVE%\Inetpub\wwwroot by default).
  2. Press CTRL + F to open the Find dialog box.
  3. Find the following tag:
<httpRuntime maxRequestLength="51200" />
  1. Replace it with this tag:
<httpRuntime executionTimeout="6000" maxRequestLength="51200" />
  1. Find the following tag (you might need to search from the beginning of the file):
</sectionGroup>
  1. Add the following tags on new lines after the </sectionGroup> tag:
<sectionGroup name="DynamicsAX">
<section name="Deployment" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</sectionGroup>
  1. Find the following tag:
</SharePoint>
  1. Add the following tags on new lines after the </SharePoint> tag:
<DynamicsAX>
<Deployment SiteCreationTimeOut="1200" />
</DynamicsAX>

  1. Save your changes and close the web.config file.
  2. At the command prompt, type IISReset, and then press ENTER.
  3. Try to create the top-level Web site in SharePoint Portal Administration.

Error message: "The Web site http://server/sites/site_name was not created correctly. Exception: No .NET Business Connector session could be found."

Hi,

This is because of  Business Connector configuration.
So it might not be configured correctly. To verify the configuration, follow this procedure:
  1. On the server that runs IIS and hosts your Enterprise Portal site, click Start > Administrative Tools > Microsoft Dynamics AX Configuration Utility.
  2. In the Configuration target list, click Business Connector (non-interactive use only).
  3. On the Connection tab, verify the server name and the TCP/IP port. If the port is blank, it is assumed to be running on port 2712. To verify the actual port on the AOS server, view Dynamics Information events in the Application Event log after the AOS has started.
  4. If necessary, update the configuration or create a new configuration (click Manage > Create configuration).
regards,

SQL code to upate one Legal entity banner to all the legal entity in D365

 Hi, update companyimage set  companyimage.Image  = companyimageA.Image  from  ( select Image from companyimage where dataAreaid = 'USF...