Visual studio 2013 cannot connect to SharePoint 2013 site

I am developing a SharePoint 2013 provider-hosted app (MVC web application). When I am trying to deploy the application on the SharePoint dev site, I am getting below
error :
Cannot connect to the SharePoint site: . Make sure that this is a valid URL and the SharePoint site is running on the local computer. If you moved this project to
a new computer or if the URL of the SharePoint site has changed since you created the project, update the Site URL property of the project.
I also checked the SharePoint site url is working in the browser on my development machine.
If any one of you have faced or/and resolved a problem like this one, please let me know.
Thanks.
Satish

Hi,
1. Please check if the Site URL is right in Visual Studio 2013 project.
2. Try to use the administrator account of the developer site to connect.
3. Reinstall Office Developer Tools.
Thanks,
Dennis Guo
TechNet Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Dennis Guo
TechNet Community Support

Similar Messages

  • Cannot connect to the targeted site in Visual Studio 2012

    Hi,
    I am trying to access SharePoint 2013 "qa" sites from development server. When I try to build Visual studio projects,  I am keep getting this below error.
    "Cannot connect to the targeted site. This error can occur if the specified site is not hosted on the local system. SharePoint solutions work only with locally-installed versions of SharePoint Foundation or SharePoint Server. Remote development is supported
    only for apps for SharePoint 2013."
    I tried to change the host file, with the current machine IP address and all. Not successful on that.
    Highly appreciated, for any helpful points here.
    Cheers, R.

    Try the following 2 options:
    Option 1:
    You can use the following command:
    %STSADM% -o deploysolution -name testSharepointSolution.wsp -local -force
    %STSADM% -o deploysolution -name testSharepointSolution.wsp -local -force
    You cannot use -url parameter if your solution package does not have an assembly or feature specific elements(elements.xml).
    You may ask why we need to provide the -url as a parameter? the reason is sharepoint needs to know which web application web.config it needs to add <SafeControl> attribute.
    Option 2:
    Check your scope of your WSP (Farm, Site etc.). Try to use the powershell command :
    Add-SPSolution -identity [drive-path]\yoursolutionname.wsp
    Install-SPSolution -identity yoursolutionname.wsp -webApplication http://siteaddress -GacDeployment
    Even then, if you get the error, try changing the scope of your WSP to farm if you want your resources to be globally available. If not, change the scope of it to specific web application.

  • Connecting a SharePoint 2013 Document Library to Outlook 2010 client

    Good Day,
    Can someone please confirm if you can connect a SharePoint 2013 Document Library to Outlook 2010 client?
    I have seen articles, like the one shown below for Outlook 2013 to SharePoint 2013;
    http://www.sharepointgeoff.com/how-to-connect-a-sharepoint-2013-document-library-to-outlook-2013/
    Please provide a link to documentation to validate what Outlook Office versions will support viewing Document Library from Outlook client from a SharePoint 2013 Document Library.
    Thanks in advance for taking the time to review my request.
    Regards,
    Mark

    Hi Mark,
    Per my understanding, you might want to connect SharePoint 2013 Document Library to Outlook 2010 client application.
    Yes, SharePoint 2013 Document Library can connect to Outlook 2010 client application, the connecting process is similar as what SharePoint 2013 connect to Outlook
    2013 client application does.
    Thanks
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Receiving an error when checking out Visio 2013 file from a Sharepoint 2010 site.

    Receiving the following error when attempting to checkout a Visio 2013 file from a SharePoint 2010 site: "Sorry, we couldn't open 'http://sharepoint/folder/folder/folder/folder/file name".  If you need to know the length of any of the folder
    or file name, please let me know. I have checked answers to other questions but none seem to apply or the person responded that the answer did not work.

    Seems that your Microsoft Office Document cache is corrupted.  please try deleting cache folder :
    Clear the Microsoft Office Document Cache by opening the Upload Center->Settings->Delete cached files.
    Clear the Office File Cache at  C:\Users\<username>\AppData\Local\Microsoft\Office\14.0\OfficeFileCache.
    Clear the Office File Cache at  C:\Users\<username>\AppData\Local\Microsoft\Office\15.0\OfficeFileCache.
    Thanks
    Ganesh Jat [My Blog |
    LinkedIn | Twitter ]
    Please click 'Mark As Answer' if a post solves your problem or 'Vote As Helpful' if it was useful.

  • Cannot connect to SharePoint online to create SharePoint App in Visual Studio 2013

    I have an Office 365 account and I am trying to create a SharePoint App via Visual Studio 2013 Here are the steps:
    1. Open VS 2013 and select Office/SharePoint > App for SharePoint (type the name) then click OK
    2. I type in URL of the site (of course https://) and Select SharePoint-Hostedoption, then click Finish 
    3. I get the Office 365 authentication dialog box.
    I type in the username and password and it opens the SharePoint in the same rectangular dialog box and it stays there and nothing happens:
     link :  i.stack.imgur.com/USYcG.png
    link :   i.stack.imgur.com/rlUpJ.png
    If I click the close icon on the Connect to SharePoint dialog box that still shows my SharePoint online site, I get the following error :
    link:  i.stack.imgur.com/p1ztW.png
    If I click on OK I get the Connect to SharePoint dialog box again
    Link :  i.stack.imgur.com/ZgyW9.png

    Hello,
    I'd ask in the
    Office 365 Community.
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book: Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C40686F746D61696C2E636F6D'-split'(?&lt;=\G.{2})'|%{if($_){[char][int]&quot;0x$_&quot;}})

  • SharePoint 2013 - Cannot connect or Register WorkFlow Manager with error "The data or messaging layer is unavailable. Please retry after 300 seconds"

    Hi
    I have SharePoint 2013 farm and installed Workflow Manager 1.0 and configured it and have been runing fine for several months.  I upgraded this farm to SP 1 and then started having some issue with publish WF 2013 with task in SPD.
    I re-Registered using Register-SPWorkflowService command and that fixed the problem and WorkFlow Manager running again OK. It has been couple of monthle and now I am having the problem again but with a different error on SPD
    So doing what I did before, I tried to re-Registered WFM but this time getting the error below
    Register-SPWorkflowService : The data or messaging layer is unavailable. Please retry
    after 300 seconds.
    The only possible resolution that I found is to add the -AllowOAuthHttp in my Register-SPWorkflowService cmdlet but that didnot not resolve the problem.  I tried that anyway eventhough we do not allow http.
    I did some checking for status and configuration and Get-SBFarmstatus showing all WFM services are running OK
    I browsed to the WFM server https://servername:12290  and get the same error
    - <Errorxmlns:i="http://www.w3.org/2001/XMLSchema-instance">
    <Code>UnexpectedError</Code>
    <Message>The data or messaging layer is unavailable. Please retry after 300
    seconds.</Message>
    </Error>
    If anyone have advise / suggestion to resolve this issue, please share
    Thanks in advance for all comments
    Swanl

    Hi Swanl,
    Please refer to the article below for troubleshooting actions for workflow manager:
    http://blogs.msdn.com/b/vincent_runge/archive/2014/01/07/troubleshooting-actions-for-sharepoint-2013-workflows.aspx
    Moreover, activate workflow manager logs and see if there is any error message that could be help.
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • Error when click Manage in Business Data Connectivity Service Sharepoint 2013

    Dear all,
    In Sharepoint central administration, I click manage service applications. Then, I click New > Business Data Connectivity Service. After create new Business Data Connectivity Service, when I click Manage to manage this new Business Data Connectivity Service,
    there is error "Cannot complete this action as the Business Data Connectivity Shared Service is not responding. Please contact your administrator." In event viewer, there is error ""The BDC Service application is not accessible. The full
    exception text is : The HTTP request is unauthorized with client authentication scheme 'Negotiate'. The authentication header received from the server was 'NTLM'.
    I have tried to delete and create the BDC Service application, but it still did not work. I have tried to restart BDC Service and do iisreset, but it still did not work.
    Please help. Thank you.
    Best regards,
    Johanna

    Hi,
    According to your post, my understanding is that you get an issue about the Business Data Connectivity Service.
    To quickly and accurately find the issue, I recommend you can check the event log and ULS log to see if anything unexpected occurred.
    For SharePoint 2013, by default, ULS log is at
    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\LOGS
    You can check the ULS log by the methods here:
    http://blogs.msdn.com/b/opal/archive/2009/12/22/uls-viewer-for-sharepoint-2010-troubleshooting.aspx
    http://msdn.microsoft.com/en-us/library/gg193966(v=office.14).aspx
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Page Cannot be displayed - SharePoint 2013

    All
    This problem has been driving me crazy. I built out a Medium SharePoint 2013 farm (2 WFE, 4 Application servers, 2 servers for other services, SQL 2012 cluster). I provisioned 5 web apps - All 443 - and and a root site collection in each web app. However,
    I cannot browse ANY of the sites in the Web Apps. I can browse Central Admin, but that is it.
    I have disabled loopback, added back connection hostnames, tried browsing from the WFE, from the CA server, and from my desktop without success.
    I really need some help with this, anyone have a suggestion as to what is causing this problem?
    Thanks for your help
    Larry

    Three questions:
    Did you create at least 4 out of 5 of the Web Apps with Host Headers?  Each Web App has to be unique in one of three ways: Custom Port number, Custom IP address, or hostheader.  Since you are using port 443 for all of them and since custom IP
    addresses are a lot of extra work I assume you need to use host headers.
    Did you create entries in your Domain Name Server for the URLs of the Web Applications?
    Did you add SSL certs to the sites and are you using https:// to access them?
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • Data Model damaged, Cannot connect to Access 2013 from within Excel 2013

    Hello,
    Recently I am not able to use PowerPivot for Excel 2013 and I cannot connect to my Access 2013 database tables from within Excel 2013. Whenever I try to click on a slicer in my Excel worksheet, it gives me the following error: "Excel was unable to load
    a necessary component. This component might have been damaged or deleted. Reinstall the client software or data source driver software for your database."
    I am using Microsoft Office Pro Plus 2013 on Windows 7, 64-bit version. I have tried reinstalling Microsoft SQL Compact Edition 2005 and reinstalling Office 2013. I have run out of ideas and am a loss what to do next ? 
    Can anyone help point in the right direction for a possible solution to this problem ??? 
    Would appreciate all help.
    Thank you.
    ~Maneesh
    The problem with being punctual is, there's nobody there to appreciate it !!!

    Hi
    This is the forum to discuss questions about apps for office develop. For your question is more about Excel, I will move this thread to the TechNet forum for
    Excel
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly
    can either share their knowledge or learn from your interaction with us.
    Thank you for your understanding.
    Best Regards
    Lan
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Visual Webpart Sandboxed Solution Error in SharePoint 2013

    I am trying to insert a visual web part using sand boxed solution on a page.But when i insert a web part on page i get the following error.
    "Web Part Error: Unhandled exception was thrown by the sandboxed code wrapper's Execute method in the partial trust app domain: The type is not registered as safe".
    Please suggest how do i get rid off this error as I've to use sand boxed solutions not farm solution.

    Hi ,
    According to your description, my understanding is that you got an error when you used visual web part solution in SharePoint 2013.
    Whether you have enabled the web part solution in Site Collection Administrator->Site Collection features.
    Whether there were some non-authorized methods called in your code.
    Here are some similar posts for you to take a look at:
    http://blogs.msdn.com/b/vincent_runge/archive/2010/05/12/support-answers-on-sandboxed-solutions-in-sharepoint-2010.aspx
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/8573ec4c-8fdb-40f5-b730-250174a08efb/sandbox-solutions-with-web-parts-upgrade-error?forum=sharepointdevelopmentprevious
    http://sharepoint.stackexchange.com/questions/59679/sandbox-unhandled-exception-was-thrown-partial-trust-app-domain
    http://scrum.codeplex.com/workitem/11222
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Cannot connect Crystal Reports 2013 to ERP

    When I try to connect Crystal Reports 2013 to ERP I am getting ABAP short dump. I have imported the all needed transports. I enclosed the file with dump.

    Hi Daro,
    Did you try creating a WebI report against the same Universe?
    What is the datasource for the Universe?
    -Abhilash

  • Visual Studio 2012: Can't access Sharepoint Web Services because of Discovery Credentials Prompt

     
    Hi.
    I've exactly the same problem that is descripted
    here, so I'll add its description here.
    My SharePoint is 2010
    I am trying to access the web services that are located in this url:
    http://<part_of_th_url_omitted>/_vti_bin/Lists.asmx. I have no problem accessing
    this URL using my broswer, that is, when I type the URL and my browser's address bar and press enter, I can see the list of the services that are available. I encounter no problem by accessing this site through my browser at all.
    However, when I try to access the services from that URL (http://<part_of_the_url_omitted>/_vti_bin/Lists.asmx),
    a Discovery Credential Dialog box prompts me for my username and password. SO what I do is I enter my username and password that I used to access the sharepoint using my browser, the problem is, the dialog box doesn't seem to accept the username and password
    that I enter as the dialog box is keep on appearing.
    Below are the detailed steps on how I go about in adding the Web Services.
    1. From the Solution Explorer, I right click on the "Service References" folder.
    2. From the context menu that appears, I Click on "Add Service Reference...". The "Add Service Reference" Dialog box will appear.
    3. From the "Add Service Reference" dialog box, I click on the "Advanced,,," button which can be seen at the bottom-left of the dialog
    box. The "Service Reference Settings" Dialog box will appear.
    4. From the "Service Reference Settings" dialog box, I click on the "Add Web Reference..." dialog box. The "Add Web Reference"
    Dialog box will appear. This is the dialog box where I can type the URL of the service that I want to access. So I type "http://<part_of_the_url_omitted>/_vti_bin/Lists.asmx".
    AFter typing that, I click on the Go button (which is the green arrow button at the right of the address bar of this dialog box).
    5. After doing that, a prompt dialog box will appear which has the title "Windows Security" and it is aking for my username and password. SO
    what I do is I enter the Username and the Password that I use in accessing the sharepoint site (http://<part_of_the_url_omitted>/_vti_bin/Lists.asmx)
    6. The prompt seems to accept the Username and Password, but after that, a new dialog box appeared with the title "Discovery Credential" and
    it says "The Service 'http://<part_of_the_url_omitted>/_vti_bin/Lists.asmx' requires a username and
    password". SO what I do is I enter again the un and pw that I use to access the sharepoint site, the one that I used inm the previous dialog box.
    7 After entering the username and the password and clicking the OK button. The dialog box reappears still asking for a username and a password, but this
    time, it shows a different message. It says "The Service 'http://<part_of_the_url_omitted>/_vti_bin/Lists.asmx/$metadata'
    requires a username and password". SO it really, what oonly changed is the URL, it has now the $metadata at the end. What do I do? I eneter the username and password again.
    8. After clicking Ok again, the dialog box reappears, now it says "The Service 'http://<part_of_the_url_omitted>/_layouts/1033/error.aspx'
    requires a username and password." Now it shows a very different username. Of ocurse, I still type in the username and password and click Ok.
    9. after doing that, the dialog box reappears again and it shows the same message as in step 6. So I do steps 6, 7 and 8 in a loop.
    10. When I finally get tired of entering the username and password, I click on cancel. The message box reappears again. So I click on cancel again. After
    doing that, I can then, surprisingly, see the list of the web services. However, not surprisingly, I still can't use it because the "Add Reference" button which I need to click in order to use the Web services is disabled. So I can only see the list
    of the services but I can't use it.

    Hi Gaston,
    I would suggest you the following thread, check whether it meet your scenario, it shows that if you have set IE options to remember the username and password, and you have enter wrong password before, this issue may happen:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/a7f466a5-0e4a-4f75-ad29-9591e2357e10/sharepoint-web-services-visual-studio
    Thanks,
    Qiao Wei
    TechNet Community Support

  • Visual Studio 2012 cannot resolve symbol or Errors control is not a member of class

    Visual Studio 2012 Web Site Project (Note not a Web application, so there are not Designer.vb files) > Site works perfectly fine and using IIS and attaching to IIS to debug code.
    However, if I try to build the site inside of Visual Studio I am getting lots of Errors ‘pnlName’ is not a member of ‘Page_Name’ In the code behind I am getting errors ‘Cannot resolve symbol ‘pnlName’
    .ascx Page
    <li style="margin-right:0;" id="pnlName" runat="server"><a href="/cart" title="Checkout" class="global-checkout">Checkout</a></li>
    .ascx.vb page
    Me.pnlName.Attributes.Remove("style")
    I have cleaned, rebuild and nothing gets rid of these errors, but again the site works as designed, but I would like to launch and debug inside of Visual Studio.
    Moojjoo MCP, MCTS
    MCP Virtual Business Card
    http://moojjoo.blogspot.com

    Cor,
    What I am stating is this is a solution using the Web Site Project instead of a
    Web Application Project.
    Web Site projects do not require Designer.vb files, Web Application Projects add Designer.vb files in the solution.   
    Background: I have been hired to support a very successful e-commerce site that was built by a 3rd party vendor (I had no input on the contract or specification, because I would have went with
    MVC).  The site works 100% correctly, however from my 2003 - 2015 experience with Visual Studio and Web Development being in Web Forms and MVC I have always built ASP.NET Solutions using the Web Application Project Templates, which compiles the code down
    to .dlls.  
    A Web Site project does not compile the code, but simply uses the .vb files and they have to be migrated to the server with the .aspx files. http://msdn.microsoft.com/en-us/library/dd547590%28v=vs.110%29.aspx
    Currently the only way I can debug this Solution is to attach to the w3wp.exe process running locally on my work station. 
    The Solution is comprised of two Web Sites, which I cannot get it to compile because of the following errors -
     'webServerControlName' is not a member of '(Protected Code Behind Class Name)'  I am reaching out to the MSDN community to see if anyone has experienced this issue with
    Web Site Projects.
    I hope that clears up the Project Type question.
    Moojjoo MCP, MCTS
    MCP Virtual Business Card
    http://moojjoo.blogspot.com

  • InfoPath 2013 attachment limitation in sharepoint 2013

    Dear Expert,
    I would like to plan the file attachment in InfoPath form, I'm not sure what's the file limitation. 
    I will plan to use SharePoint Server 2013. Please suggestion.
    or send the reference.
    Thank you

    Hi,
    According to your post, my understanding is that you want to know the file limitation for the InfoPath attachment.
    By default, the limitation is 4096 kb, however, we can increase the limitation in the
    Central Administration->General Application Settings->Configure InfoPath Forms Services->in the
    User Sessions, increase the number for  the Maximum size of user session data
    option.
    There is an article about increase the upload limitation, though it is for SharePoint 2010, it works for SharePoint 2013.
    http://yalla.itgroove.net/2013/01/25/sharepoint-2010-file-size-upload-limits-the-essential-mix/
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • Deploying Project Server 2013 to an Existing SharePoint 2013 Farm

    We recently deployed the following for our new SharePoint 2013 farm:
    2 SQL server (alwaysOn config)
    2 application servers
    2 WFE
    1 SQL for Dedicated Search
    2 WFE for Dedicated Search
    2 Applications Servers for Dedicated Search.
    After purchasing a company that uses Project 2013 heavily we are now looking at deploying Project 2013 using our new 2013 SharePoint farm.  My question is what is the recommended additional servers that would needed to be deployed to the existing farm?
    Thanks,
    Ric

    Ric,
    It really depends on what your current dataset is, and what the load on your SharePoint Server/Project Server.  Technically, Project Server can just sit on top of your WFE and App Servers for SharePoint. You do not need a complete separate server group
    for Project Server alone, unless there is a special reason to do so.
    Cheers,
    Prasanna Adavi, Project MVP
    Blog:
      Podcast:
       Twitter:   
    LinkedIn:
      

Maybe you are looking for