3

When trying to deploy solution, facing 'Remote SharePoint site connection not support' error occurred. How to fix this?

"Error : Error occurred in deployment step 'Recycle IIS Application Pool': Remote SharePoint site connections are not supported.

2 Answers 2

7

The problem is that Visual Studio thinks your local site collection is remote,

the solution is to

  • Edit your HOSTS file at C:\Windows\System32\Drivers\etc
  • Place your site collections ([email protected]) in there pointing at 127.0.0.1 (your machine ID).
  • Save and close , Try again.

enter image description here

Ref : Remote SharePoint Site Connections Not Supported

5

I think given site URL for your project is not your local site collection's URL. You can change it from below steps.

  1. Go to Visual Studio
  2. Select Project (not solution)
  3. Press F4
  4. You will Site URL
  5. Give your local site collection's URL here
2
  • This solved the problem for me, after I had already added hosts entries without any luck.
    – kwill
    Commented Jul 31, 2017 at 20:35
  • Short and right answer. It works in one go.
    – S.P Singh
    Commented Sep 6, 2020 at 6:11

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.