web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Error on creating new organization CRM 365 V9

(0) ShareShare
ReportReport
Posted on by 5

I have encountered an issue when i try to create a new organization it fails on the following step:

Failed to execute action DeployPackage on attempt 1. Retrying in 60 seconds. Reason for retry: NoErrorOnFailure.Exception: System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: The connection was closed unexpectedly.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Xrm.Tools.OwinJobManager.Client.Helpers.HttpClientExtensions.Send(HttpClient client, HttpRequestMessage request)
at Microsoft.Xrm.Tools.OwinJobManager.Client.Helpers.HttpClientExtensions.Get[T](HttpClient client, String uri)
at Microsoft.Xrm.Tools.OwinJobManager.Client.Helpers.HttpClientExtensions.GetWithRetry[T](HttpClient client, String uri, Int32 retryCount, Int32 retryIntervalInMilliseconds)
at Microsoft.Xrm.Tools.OwinJobManager.Client.JobHostLauncher`2.EnsureServerIsRunning(Boolean& startedServerByThis)
at Microsoft.Crm.Tools.Admin.DMSnapinLib.Organization.PdWebApi.PdWebApiHelper.CallOnce(Guid orgId, String packageName, PackageDeploymentInputArgs pdeArgs)
at Microsoft.Crm.Tools.Admin.DMSnapinLib.Organization.PdWebApi.PdWebApiHelper.Call(Guid orgId, String packageName, String[] pdeArgs)
at Microsoft.Crm.Tools.Admin.InstallDynamicsSolutionsAction.DeployPackage(OrganizationInfo organizationInfo, String packageName, String[] pdeArgs, Boolean allowMultiTenantPDUse)
at Microsoft.Crm.Tools.Admin.OrgDbUpdateUtility.ExecuteWithRetry[TResult](Func`1 action, String actionName, OrganizationInfo orgInfo, CancellationToken cancellationToken)
12:53:52| Info| Failed to execute action DeployPackage on attempt 2. Retrying in 60 seconds. Reason for retry: NoErrorOnFailure.Exception: System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: The connection was closed unexpectedly.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Xrm.Tools.OwinJobManager.Client.Helpers.HttpClientExtensions.Send(HttpClient client, HttpRequestMessage request)
at Microsoft.Xrm.Tools.OwinJobManager.Client.Helpers.HttpClientExtensions.Get[T](HttpClient client, String uri)
at Microsoft.Xrm.Tools.OwinJobManager.Client.Helpers.HttpClientExtensions.GetWithRetry[T](HttpClient client, String uri, Int32 retryCount, Int32 retryIntervalInMilliseconds)
at Microsoft.Xrm.Tools.OwinJobManager.Client.JobHostLauncher`2.EnsureServerIsRunning(Boolean& startedServerByThis)
at Microsoft.Crm.Tools.Admin.DMSnapinLib.Organization.PdWebApi.PdWebApiHelper.CallOnce(Guid orgId, String packageName, PackageDeploymentInputArgs pdeArgs)
at Microsoft.Crm.Tools.Admin.DMSnapinLib.Organization.PdWebApi.PdWebApiHelper.Call(Guid orgId, String packageName, String[] pdeArgs)
at Microsoft.Crm.Tools.Admin.InstallDynamicsSolutionsAction.DeployPackage(OrganizationInfo organizationInfo, String packageName, String[] pdeArgs, Boolean allowMultiTenantPDUse)
at Microsoft.Crm.Tools.Admin.OrgDbUpdateUtility.ExecuteWithRetry[TResult](Func`1 action, String actionName, OrganizationInfo orgInfo, CancellationToken cancellationToken)
12:54:52| Info| Failed to install CustomControlsCoreException: System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: The connection was closed unexpectedly.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Xrm.Tools.OwinJobManager.Client.Helpers.HttpClientExtensions.Send(HttpClient client, HttpRequestMessage request)
at Microsoft.Xrm.Tools.OwinJobManager.Client.Helpers.HttpClientExtensions.Get[T](HttpClient client, String uri)
at Microsoft.Xrm.Tools.OwinJobManager.Client.Helpers.HttpClientExtensions.GetWithRetry[T](HttpClient client, String uri, Int32 retryCount, Int32 retryIntervalInMilliseconds)
at Microsoft.Xrm.Tools.OwinJobManager.Client.JobHostLauncher`2.EnsureServerIsRunning(Boolean& startedServerByThis)
at Microsoft.Crm.Tools.Admin.DMSnapinLib.Organization.PdWebApi.PdWebApiHelper.CallOnce(Guid orgId, String packageName, PackageDeploymentInputArgs pdeArgs)
at Microsoft.Crm.Tools.Admin.DMSnapinLib.Organization.PdWebApi.PdWebApiHelper.Call(Guid orgId, String packageName, String[] pdeArgs)
at Microsoft.Crm.Tools.Admin.InstallDynamicsSolutionsAction.DeployPackage(OrganizationInfo organizationInfo, String packageName, String[] pdeArgs, Boolean allowMultiTenantPDUse)
at Microsoft.Crm.Tools.Admin.OrgDbUpdateUtility.ExecuteWithRetry[TResult](Func`1 action, String actionName, OrganizationInfo orgInfo, CancellationToken cancellationToken)
at Microsoft.Crm.Tools.Admin.InstallDynamicsSolutionsAction.InstallDynamicsPackageInternal(String solutionUniqueName, FileInfo packageFile, OrganizationInfo organizationInfo)
at Microsoft.Crm.Tools.Admin.InstallDynamicsSolutionsAction.InstallDynamicsPackage(String solutionUniqueName, FileInfo packageFile, OrganizationInfo organizationInfo)
at Microsoft.Crm.Tools.Admin.InstallDynamicsSolutionsAction.DoOneInternal(SolutionInfo solutionInfo, String fileFullPathAndName, OrganizationInfo organizationInfo)
12:54:52| Info| CrmAction execution time; InstallPlatformSolutionsAction; 00:02:01.0443667
12:54:52| Error| Installer Complete: OrganizationCreator - Error encountered
12:54:52| Error| Exception occurred during Microsoft.Crm.Tools.Admin.OrganizationCreator: Error.ActionFailed Microsoft.Crm.Tools.Admin.InstallPlatformSolutionsAction
InnerException:
System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: The connection was closed unexpectedly.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at Microsoft.Crm.Tools.Admin.InstallDynamicsSolutionsAction.DoOneInternal(SolutionInfo solutionInfo, String fileFullPathAndName, OrganizationInfo organizationInfo)
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
at Microsoft.Crm.Tools.Admin.InstallDynamicsSolutionsAction.<>c__DisplayClass30_0.<Do>b__0()
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
at Microsoft.Crm.Setup.Shared.CrmAction.ExecuteActionHelper(CrmAction action, IDictionary parameters, Boolean undo)
InnerException:
System.Net.WebException: The underlying connection was closed: The connection was closed unexpectedly.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)


System.Exception: Error.ActionFailed Microsoft.Crm.Tools.Admin.InstallPlatformSolutionsAction ---> System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: The connection was closed unexpectedly.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at Microsoft.Crm.Tools.Admin.InstallDynamicsSolutionsAction.DoOneInternal(SolutionInfo solutionInfo, String fileFullPathAndName, OrganizationInfo organizationInfo)
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
at Microsoft.Crm.Tools.Admin.InstallDynamicsSolutionsAction.<>c__DisplayClass30_0.<Do>b__0()
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
at Microsoft.Crm.Setup.Shared.CrmAction.ExecuteActionHelper(CrmAction action, IDictionary parameters, Boolean undo)
--- End of inner exception stack trace ---
at Microsoft.Crm.Setup.Shared.CrmAction.ExecuteActionHelper(CrmAction action, IDictionary parameters, Boolean undo)
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
at Microsoft.Crm.Setup.Shared.Installer.<>c__DisplayClass83_0.<DoAction>b__0()
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
at Microsoft.Crm.Setup.Shared.Installer.<>c__DisplayClass67_0.<Install>b__0()
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
at Microsoft.Crm.Tools.Admin.OrganizationOperation.Install(IDictionary stateSaver)
at Microsoft.Crm.Tools.Admin.OrganizationCreator.Install(IDictionary stateSaver)
at Microsoft.Crm.Tools.Admin.OrganizationOperation.Execute()
at Microsoft.Crm.Tools.Admin.OrganizationCreator.Execute()
at Microsoft.Crm.Tools.Admin.CreateOrganizationInstaller.Create(ICreateOrganizationInfo organizationInfo)

This is something that did not happen previously as we have managed to create new organizations without any issues.

I have the same question (0)
  • Bipin D365 Profile Picture
    28,985 Moderator on at

    HI,

    Check below things -

    1. Try IISRESET

    2. Make sure user has Deployment administrato assigned

    3. check event log for more detailed error on Web server

    Please mark my answer verified if i were helpful

  • MichaelG306 Profile Picture
    5 on at

    I have tried a full restart to the server, that did not help.

    Like i have mentioned, this simply happened, everything was working.

  • Community Member Profile Picture
    on at

    Have you find a solution?

    I have the same problem.

  • damccracken Profile Picture
    139 on at

    Were you able to find a fix for this? I went to uninstall Dynamic CRM 9.0 Platform and then reinstalled it fresh. Before we could create or import organizations with out issue. Now on this new install on the same servers, same accounts, same access everywhere before but I am recieving the same exact error on creating or importing organizations.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

#2
ManoVerse Profile Picture

ManoVerse 55 Super User 2026 Season 1

#3
11manish Profile Picture

11manish 37

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans