I have a single server development environment. I do not have DNS. I have IIS and host file.
I would like to install an app on my development environment. It still would not work. I got this error when I try to add the app to a site collection.
SPException thrown: Message: The App domain for this site has already been assigned.. Stack: at Microsoft.SharePoint.Utilities.SPUtility.ThrowSPExceptionWithTraceTag(UInt32 tagId, ULSCat traceCategory, String resourceId, Object resourceArgs) at Microsoft.SharePoint.Administration.SPConfigurationDatabase.EnsureAppSiteDomainPrefix(Guid id, String subscriptionName, Boolean overwrite, String appSiteDomainIdToUse, String& newAppSiteDomainId, List`1& siteUrls) at Microsoft.SharePoint.SPSite.EnsureAppSiteDomainPrefix(Boolean overwrite) at Microsoft.SharePoint.Packaging.SPUserCodeSolutionDeploymentGroup.Deploy() at Microsoft.SharePoint.Administration.SPAppTask.DeployOperation() at Microsoft.SharePoint.Lifecycle.MonitoredTaskExecution.DoTask() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart()
I did already this configuration:
- I go to central admin
- I click on apps
- I click on app catalog
- I selected some webapplication
- I created a new app catalog "http://myCompany.com/sites/MyAppCatalog
- I did created the subscription service application with powershell
- I set the "Configure App URLs" as follow: domain: appsMyCompany.com, prefix: app.
- I set this domain "appsMyCompany.com" in the host file.
- I created a new webapplication with the url: appsMyCompany.com
When I add the app as an instance in the app catalog (on Site Contents page), it is working. When I click on the app I get an 404 error. This is because the subdomain which the app instance is using is not exist in IIS. (http://app-04ab54ab4d69a7.appsMyCompany.com/sites/MyAppCatalog/AppCompanyAdvancedAnalytics/Pages/Default.aspx?SPHostUrl=http......some stuff)
Do I need to add some wildcard binding to the webapplication appsMyCompany.com ? Or do I need to add a binding with the url app-04ab54ab4d69a7.appsMyCompany.com to the webapplication appsMyCompany.com.