0

I am trying to configure my Virtual Machine to use SharePoint Addins. I have followed this link to configure my machine which is single SharePoint Farm.

I used following these two powershell command to change App domain and app prefix and I have verfied Changes in CA.

 Set-SPAppDomain "addins.local"
 Set-SPAppSiteSubscriptionName -Name "add-in" -Confirm:$false

In Visual Studio when I hit F5, it shows my SharePoint-hosted Addin and it works. It allso modifies my host file and adds this app-fc28e82f1db258.addins.local. But when I publish my app to app catalog and add it from Site Content it shows This page connot be displayed.

5
  • Did you configure a Wildcard DNS entry for your addins.local domain? Sep 9, 2015 at 15:35
  • Yes I did, I created a new CName with *
    – Medes
    Sep 9, 2015 at 18:52
  • What happens when you ping foo.addins.local? Does that work and return the address of your SharePoint server? Sep 10, 2015 at 20:30
  • Wait, your Set-SPAppSiteSubscriptionName does not match the host file URL. Try changing the Subscription name to "app" like it reads in your question. Sep 10, 2015 at 20:32
  • But it should be changed automatically to add-in when you install an app and click on it to launch it. Am I right?
    – Medes
    Sep 11, 2015 at 8:08

1 Answer 1

0

Try changing the app prefix to "app" rather than "add-in".

Set-SPAppSiteSubscriptionName -Name "app"

Or change the host entry so it uses "add-in". The names in the URLs don't match your settings.

5
  • Shouldn't it be changed automatically to app when you launch an app? when you change it to add-in in the begging and install your app then it should be something like add-in-fc343skzhkslksd.addins.local. I will try and will be back.
    – Medes
    Sep 11, 2015 at 8:10
  • No, I got same error (page cannot be displayed). When I ping foo.addins.local it says ping request could not find host foo.addins.local please check the name and try again.
    – Medes
    Sep 11, 2015 at 8:17
  • If you can't ping your wildcard DNS then it won't work. Try following these instructions: sharepointchick.com/archive/0001/01/01/… Sep 11, 2015 at 13:58
  • I followed your instructions. still ping does not solve the app domian or subdomains. actually ping does not solve any subdomain at all, even those are under the domain which contains my intranet.
    – Medes
    Sep 14, 2015 at 8:19
  • You have to get the DNS part working or use a proxy DNS like this: ableblue.com/blog/archive/2015/07/01/… Sep 14, 2015 at 21:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.