Development

Now shipping wiht VS 2010 Beta 2, and with SharePoint 2010 you will have support for Linq to SharePoint.  Not the codeplex project, but true linq support from MS(Microsoft.SharePoint.Linq).  What it does in the background is to create the CAML queries for you, to keep up the speed, looks like MS realized that CAML is no ones friend, but they have to support it for backwards compatability. Another neat feature of Linq 2 SP is that it will support filtering of items by lookups, meaning if a list say Regions, and a list for Office Locations, where Region is a lookup field,...

After working on a project that had me write a custom Role Provider for WSS, I thought I would try and help explain some things about what Membership and Role Providers do, and more specifically in regards to SharePoint.First off, in my case, the user store was Active Directory. When working with MOSS, you can use the LDAP provider for both membership and roles. In WSS however, there is only a default Membership provider, which does not allow for groups to be used, say AllUsers or Domain Users. Membership Provider – Looks at a user store to find the specific...

This post was published to Dan Keeling on SharePoint C... at 12:36:06 PM 7/27/2009 Setup SMTP for your development SharePoint Environments After wrapping up a project recently, a request came up for testing some custom email alerts, and email alerts from Workflow. In the client’s development environment email was enabled, but there were some problems with the workflow. I had been working independently on my own VM, which was not on the domain and was not setup to send emails. So, to better test these things, I setup...

I was working on a project for the past few months, involving an InfoPath form to collect data, with a SharePoint Designer workflow and reporting handled by SSRS. We are populating reporting tables from the InfoPath form library fields using SharePoint web services and accessing them from within SSIS.In business development studio, just add a script activity, modify the script (I chose c#) then add a reference to the web service, generate the proxy class, and make the call to get your list items.I did not use the view fields xml, just left it blank to return all the...

The following defines the chat service interface, as you can see the attribute for Service Contract. There is also an Interface defined for the callback.  This will be implemented on the client side, so that these methods are called from the Server(Service) and run on the client side. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ServiceModel; using System.Threading; using ExampleService.ThreadArguments; namespace ExampleService {     /// <summary>     /// Inteface...

So this past weekend I spoke at Atlanta Code Camp this past Saturday on a WCF chat client.  You can find the code samples here. I thought I would expound on it here. Start with the techniques you need to use, For our chat client, we are using TCP/IP for communications because we are on a network, and want 2 way communication.  TCP is great for this purpose, and there is a built in type of communications binding in WCF called netTCPBinding, which takes care of serialization of our types natively, since both the Server and Client...

So the code is about done, with the service running, allowing users who are in the SharePoint site to authenticate, and see other site users in their contact lists.  Conversations can be created, and sent across the wire, and other clients receive them! Logging is enabled and saves entries to a list, and that list is searchable, so you can find items from your previous conversations.  A couple bugs to fix on locking issues, but pretty much home free. Now to start going over how to present the code, WCF first, SharePoint, WPF?  I am thinking WCF, the basics,...

I am going to be speaking at the Atlanta Code Camp this March, www.atlantacodecamp.com March 14th 2009 I will be covering WCF, integration with SharePoint to build a messaging system.  It supports a contacts list, with online status, history is logged to a SharePoint list.  Search will be enabled to support finding older conversations.  The front end is written in WPF using the MVVM approach and will be explained by Michael Stone. It should be a great day of learning, and I will try to spend some free time after the speech to explain in more...

DateTimeControl is defined in the SharePoint WebControls class as the other controls in this post series. Working with the DataTimeControl is fairly straight forward, with a few gotcha’s.  In my class, I have a Controls region with: private DateTimeControl expirationDate; In my CreateChildControls() override, expirationDate = new DateTimeControl(); expirationDate.ID = “expirationDate”; //We only want to capture the date, we can ignore the time expirationDate.DateOnly = true; Controls.Add(expirationDate); Now, when I am checking the value of this control, there...

I saw a tweet from @andrewconnell about this, and he posted (Original Post) and I totally agree, this has been talked about for a while, and several MVP’s mentioned it, and said we would see it soon, a long time later we finally have it. Basically, the rules for SP objects that are not automatically disposed are wrapped into a tool, to run against your code, and make sure you have no memory leaks. Go get it here: http://code.msdn.microsoft.com/SPDisposeCheck