CRM Installation Fails with System.IO.IOException

By | August 28, 2016

As everyone know all Microsoft OS systems come with the administrative shares turned on by default.

If you are a domain admin you can access the drive of another computer in the network by doing \\<computer name>\C$.

If you are an admin working on hardening the security of your network servers you might go to the registry and disable the administrative shares by setting HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\AutoShareServer to zero. You can actually do this by setting the registry setting in the group policy at the Active Directory level so it propagates to all computers in the network.crminstall

Now, disabling the administrative shares can impact some applications. In this specific case we know for a fact that it impacts the proper installation of Dynamics CRM. If you are deploying crm and the deployment fails, maybe partially make sure you open the installation log and look at the errors.

If you see and error like the one below my suggestion is to check the registry entry above and make that either the AutoShareServer is not present at all or it is set to 1 before you spend time trying to figure out what the problem is.

12:09:39| Error| Exception occured during Microsoft.Crm.Tools.Admin.OrganizationCreator: Action Microsoft.Crm.Tools.Admin.CreateDatabaseAction failed.
InnerException:
System.IO.IOException: The network name cannot be found.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
at Microsoft.Crm.Setup.Database.Helpers.CopyDatabaseFile(String sourcePath, String sourceFileName, Boolean isBuildEnvironment, String sqlServerName, String destinationFilePath, String destinationFileName, String& copyDestinationPath)
at Microsoft.Crm.Setup.Database.DatabaseInstaller.AttachDB(ReleaseInfo r)
at Microsoft.Crm.Setup.Database.DatabaseInstaller.installInternal(Boolean isInstall)
at Microsoft.Crm.Setup.Database.DatabaseInstaller.Install(Int32 languageCode, String configurationFilePath, Boolean upgradeDatabase, Boolean isInstall)
at Microsoft.Crm.Setup.Database.DatabaseInstaller.Install(Int32 languageCode, String configurationFilePath, Boolean upgradeDatabase)
at Microsoft.Crm.Tools.Admin.InstallDatabaseAction.Do(IDictionary parameters)
at Microsoft.Crm.Setup.Shared.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)

Drop us a comment or if you have any questions please contact us through our QualTech-Software Solutions or QualTechCloud Integrated Cloud Solutions customer form.

 

Leave a Reply