Sharepoint Application Deployment Issues - Application domain for this site has already been assigned

Deploying SharePoint: in premises with a local domain address as http://sharepoint

, Windows Server 2008 R2

For the purpose of deploying my app, I added the app url in admin center as apps.mydomain.com

apps.mydomain.com is actually a subdomain that I created on my company's official website.

After compiling the application and running it, I get the following error in the output window

Active Configuring Deployment: Deploy Application for SharePoint Skip the deployment step because no pre-deployment command was specified. Skipping the uninstall step because the app for SharePoint is not installed on the server. Install the application for SharePoint: Downloading the application for SharePoint ... The application could not install, clean up ... Remotely uninstall the application for SharePoint. Application installation encountered the following errors: 03/11/2014 07:17:19

 @"Error 1
        CorrelationId: fc4c3483-a34c-4975-a6cb-c1d84436c8f5
        ErrorDetail: The content database on the server is temporarily unavailable.
        ErrorType: Transient
        ErrorTypeName: Intermittent
        ExceptionMessage: The App domain for this site has already been assigned.
        Source: AppWeb
        SourceName: App Web Deployment
Error occurred in deployment step 'Install app for SharePoint': Failed to install app for SharePoint. Please see the output window for details.

      

========== Build: 1 successful or updated, 0 failed, 0 skipped ========== ========== Deployment: 0 succeeded, 1 failed succeeded, 0 missed ========== Can you please give me an idea here, am I wrong?

+3


source to share


4 answers


I have restarted all services on the server for sharepoint to resolve the issue, namely:

AppFabric caching,

Sharepoint Host Server Controller,

Sharepoint Search Server 15,

Sharepoint Timer Service,



Sharepoint user host code

Services can be restarted from Control Panel-> Administrative Tools -> Services

It seems that one of the services is responsible for updating the configuration in the DB, even when I googled people said that by restarting the server and after a while the problem was automatically serviced.

So I think one of the services on startup solves the problem

0


source


just restart the sharepoint server by doing



0


source


I had the same problem, I resolved it by simply disabling, removing and re-adding SPDistributedCacheServiceInstance

0


source


I recently worked on configuring SharePoint hosted applications for our client and during testing I saw this issue. After completing the app setup, I uploaded the app to the app catalog and added the app to the site. The app worked without any issues, but there was one fix. I missed replacing the S prefix in an app that was configured for Apps, so my app url was https://apps-1234.apps.contoso.com , but the orignal plan had to use "app" as the prefix.

So, I removed the app from the site and app directory. Then went to CA and changed the app prefix to app from "apps". Uploaded the test app to the directory and then tried to add it to the site and it didn't fail. "Failed to add application to the site, please try again"

I launched ULS Viewer and started live live and clicked retry and saw an amazing message. The SharePoint app was still using "apps" and I updated it. I knew something was silly, and traditionally the user interface is fine with me when it comes to SharePoint.

SPException Error: Message: Application domain for this site is already assigned .. Stack: at Microsoft.SharePoint.Utilities.SPUtility.ThrowSPExceptionWithTraceTag (UInt32 tagId, ULSCat traceCategory, String resourceId, Object [] resourceArgs)

Here's what I did. Open the SharePoint Management Shell as an administrator (farm account).

Set-SPAppDomain -AppDomain apps.contoso.com Set-SPAppSiteSubscriptionName -Name "app" -Confirm: $ false

Open command prompt as administrator. Run the commands below.

net stop sptimerv4, IISReset, net start sptimerv4

Repeat the above 3 on all servers in the farm.

I closed all browsers and opened the site and clicked the "Retry from site" button. The bingo app was added without any problems.

https://jerryyasir.wordpress.com/2015/11/06/unable-to-add-the-app-the-app-domain-for-this-site-has-already-been-assigned/

0


source







All Articles