Development in Visual Studio 2010 for remote Sharepoint 2010 server - sharepoint-2010

I understand that you can't develop in Visual Studio 2010 for a remote Sharepoint 2010 server because you need a local copy running on your box. (I know there is a hack)
In my situation I have Sharepoint Foundation installed locally for development purposes but I'm not sure how to get the custom lists, etc from the remote server to my local box so I can develop against the same objects.
I've tried exporting the site on the remote box and then creating a new Visual Studio 2010 project from it. This resulted in exceptions when deploying to my local box - more problems which I'm sure given time I could work out...but more problems. (It was types not being installed properly on my local box that the custom object was using)
So I've been thinking there must be an easier way to pull down data structures.
I've spent a while looking for this and while there is quite a lot of information out there I'm finding it hard to find basic information like this.
Any help is greatly appreciated.

What objects do you need from the remote server?
If it is lists, you can export the lists from the remote server as templates then use the resulting stp files to create the lists locally. If it is dlls you can get them form GAC and add the required entries in SharePoint site web.config.
You can also try to export the entire site and create a site locally based on the site template.

Related

Can't find Microsoft Internet Transfer Control in Visual Studio 2013

New project in Visual Basic using Visual Studio 2013.
Want to add the "Microsoft Internet Controls" component but I can't find it.
What am I missing?
This is the second link on Google:
http://answers.microsoft.com/en-us/office/forum/office_2010-customize/cant-find-reference-to-microsoft-internet-controls/e138ff0c-8046-47b1-9c0c-ac28cebe3c7a
Apparently it may have been renamed "Microsoft Browser Helpers" and you may need to add a reference to "ieframe.dll".
If you need FTP, it is fully supported in the .NET framework. You could start with the examples on MSDN: https://msdn.microsoft.com/en-us/library/ms229718%28v=vs.110%29.aspx
The inet1 Internet Transfer Control is installed with MS Office. Install it and you should have no problem having it become available to use in Visual Studio etc.
It's old but still completely useful in apps. It did all the FTP and HTTP calls for a web crawler I wrote years ago and was fast and completely error-free when crawling 100s of 1000s of web pages at a time while I slept. I'd use inet1 today if I was writing an app that did huge amounts of internet calls as quickly as possible.

Creating custom controls for TFS 2012 through a SharePoint 2010 portal

I'm trying to get a SharePoint 2010 web portal working for a TFS 2012 team project. Most of the functionality is working, but I'm having a difficult time getting the custom work item controls we've built working in the SharePoint Project Portal site. (They're working fine within Visual Studio, we haven't tried getting them working in the default TFS Web Access portal.)
My questions are:
Since the TFS Web Access method for creating custom properties have been updated, is that method appropriate for the SharePoint site? (I doubt it, since jQuery is necessary and isn't included by default in SP 2010, but I thought I'd ask.)
Whenever I try to test this, all I get is "Error: Unable to create 'FieldName'" with nothing in the ULS logs. Is there any way I can debug this?
Are there any examples available online that I may have missed in my searches?
After a lot of digging and frustration, I have finally gotten a simple control working. Indeed, SharePoint 2010 expects the custom controls to be formatted similarly to Web Access 2010, not Web Access 2012. Here is an example that helped:
http://code.msdn.microsoft.com/windowsdesktop/CSTFSWebAccessWorkItemMulti-ace1b01e
Also, if you install the 2008 Team System Web Access (yes, 2008), you'll get a Word document with some helpful documentation.
Here are some caveats:
The Word documentation states that the control needs to inherit from both IWorkItemControl and IWorkItemWebControl. Since IWorkItemWebControl contains all of the fields that IWorkItemControl does, and IWorkItemControl is declared in a DLL that references .NET 4.5 (not good for SharePoint 2010), I referenced only IWorkItemWebControl and it seems to work.
The documentation states that your control needs to inherit from System.Web.UI.Control to work, but the UserControl doesn't work. I had to inherit from one of the WebControls to get it to work.
The custom controls need references to TFS 2012 versions of several DLLs (which are listed in the sample download), but the only place I found them were in the GAC on the SharePoint server. So I copied them from the GAC onto my local machine for development.
Deploying is easy - all you need to do is place the .wicc file and the DLL into "Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\Tswa\CustomControls".
If I find anything else, I'll post it here.

Why can not I create a Sharepoint project without a local URL?

I'm trying to create a EventReceiver project in Sharepoint 2010 Templates, but VS always ask me to pass a valid local URL of a Sharepoint Site. Without a Sharepoint Site the project is not created. Why?
Why if I want to create the project and use it direct in production without local tests?
This is a requirement of VS development for share point -- you need a local install of the sharepoint foundation server. It is a free download.
But if you question is more along the lines of "Why make this a requirement", I don't know ;). You can still have a sandbox server to deploy to.

How can you access the RavenDB Management Studio when you have an embedded instance in a WPF application?

I'm writing a simple WPF application that will use embedded RavenDB as it's datastore. I got everything needed to get RavenDB working via NuGet (including the Xap file for Management Studio), however, it is not clear how to make use of the Xap file in this situation.
Has anyone managed to make use of the Management Studio in the super simple situation of an embedded instance in a WPF application without jumping through hoops, creating a hosting site on your box in which to place the Xap?
See the discussion here:
http://ravendb.net/docs/server/deployment/embedded

Issues web database template missing in SharePoint 2010 Final version

I have been using Sharepoint 2010 Beta for developing an Access database solution using Issues Web Database template.
After installing the final release version of Sharepoint 2010 on the production server, I have been unable to find Issues Web Database template. Has it for some reason not been included in the final version, and is there a way of including it?
What I need to do is to install the template on the server and synchronize the content with the existing solution on the developing server.
Thanks
Web Database Templates are not available to create site collections. I dont know if this can be changed. They are available for sites and sub sites.