For debugging a SharePoint solution I want to give test site URL in visual studio.

enter image description here

but since web application URL is already access mapped

(http://example:2344 -> http://example.com). 

When I try to give http://example.com URL in, it shows

"Remote SharePoint site connections are not supported "

enter image description here

How can I use http://example.com (Alternate Access Mapped Url) for debugging purpose since currently, I don't have original URL (http://example:2344)?

  • do you have access to central admin ? Commented Jun 30, 2017 at 4:26
  • yes i am working on Dev environment so i have access to central admin . Commented Jun 30, 2017 at 4:35
  • then you can determine the internal url of you application and use the same for debugging. Commented Jun 30, 2017 at 4:36
  • In Alternate Access Mapping ->Edit Public Zone URLs , it is showing only example.com . Can you please tell me where to find example:2344 ? Commented Jun 30, 2017 at 4:40

3 Answers 3


I think you need to configure the hosts file on your server to map the server IP to the hostname.

To Edit Host file

  • Open your NotePad as administrator.
  • From Notepad, open the following file: c:\Windows\System32\Drivers\etc\hosts
  • Add new entry as the following:

    • Server IP > click Tab > hostname , for example:     example.com
  • Click File > Save to save your changes.


use the Get-SPAlternateURL cmdlet, you can find the existing AAM settings for a web application.

  • It is showing example.com(IncomingUrl) and example.com(PublicUrl). Commented Jun 30, 2017 at 5:18

Try this..

1)Open the project path in Windows Explorer

2)Locate the file .csproj.user(or .vbproj.user)

3)Open it with text editor(e.g. Notepad)

4)Change the SharePointSiteUrl property

5)Save the file, and then re-open the project (by deploying)

This works perfectly for me..

Thanks Jinchun Chen

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.