SPT Blog

Creating a WCF service on a SharePoint 2010 server in Visual Studio 2010 and “Type can not be found” error

If you get the "Type cannot be found" error after installing your WCF service, go to the section about unloading your project below. Here are the main steps to creating a WCF service and installing it on a SharePoint 2010 server: Open Visual Studio 2010 Create an Empty SharePoint 2010 project to get the packaging files Change your namespace in the Project Properties. Add a new Item, WCF Service with a new file name Add the following lines above the class declaration that implements the "IService" file: [BasicHttpBindingServiceMetadataExchangeEndpointAttribute] [AspNetCompatibilityRequirementsAttribute(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)] public class PricingRequestService : IPricingRequestService { Add the following references to your project: C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions14ISAPIMicrosoft.SharePoint.dll C:WindowsassemblyGAC_MSILMicrosoft.SharePoint.Client.ServerRuntime14.0.0.0__71e9bce111e9429cMicrosoft.SharePoint.Client.ServerRuntime.dll Add a mapped folder to the "_Layouts" folder Inside the _Layouts folder create a text file with a .svc extension such as PricingRequestService.svc Add the following sample: <%@ServiceHost Language="C#" Debug="true" Service="PricingRequest.PricingRequestService, $SharePoint.Project.AssemblyFullName$" Factory="Microsoft.SharePoint.Client.Services.MultipleBaseAddressBasicHttpBindingServiceHostFactory, Microsoft.SharePoint.Client.ServerRuntime, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> Change [...]

By |2022-12-11T19:44:49+00:00January 10th, 2013|Uncategorized|0 Comments

How to turn off “Cannot be blank” yellow boxes on SharePoint 2010 Infopath custom list forms

 Find and make a backup copy of the Core.JS file(14templatelayoutsinc) Edit the Core.JS file(14templatelayoutsinc) Find the function called ErrorVisualization_ShowShortMessage Add "return;" as the first command in the function.ErrorVisualization_ShowShortMessage(b,a,g){return;ULSrLq:;var h=g[2],d="",e=null;if(!  Reset IIS  http://sharepointfeaturesandfailures.blogspot.com/2008/03/turn-off-hover-over-screen-tips-on.html

By |2022-12-11T19:44:49+00:00December 3rd, 2012|Sharepoint on Premise|0 Comments

Metro Tiles in SharePoint 2010 and SharePoint 2013

Here's a kind of fun web part I found on Codeplex. You can jump on the tiles bandwagon in SharePoint 2010. It's packaged nicely in 2 wsp files and creates a list to hold the data. Built in images are very nice. It's called the Metro Grid webpart and they have done a nice job on the packaging and icons. http://spmetrogrid.codeplex.com/  

By |2022-12-11T19:44:49+00:00November 20th, 2012|Sharepoint on Premise|0 Comments

Notes from the Edge: SharePoint 2012 Conference, Las Vegas

Having just got home from Las Vegas, I'd like to relate some of the things I saw at the MS SharePoint 2012 conference. With over 10,000 attendees filling up the Mandalay Bay beach, I am amazed year after year of the growth. When I started working with SharePoint in 2001, who would have thought it turned into this. Bon Jovi rocking out at Mandalay Bay for the SharePoint conference.  Cloud everything     You probably couldn't go one sentence in any session without hearing cloud. What does this mean? You better get a strategy in place because it is coming fast. MS is "all in" on cloud according to Steve Ballmer. As a developer, or infrastructure professional things will change quickly. For developers it's going to be about RESTful web services, JSON, javascript, jquery, cloud app model, Azure services, OAuth, OData and Azure services. For infrastructure professionals, better start planning on either [...]

By |2022-12-11T19:44:49+00:00November 15th, 2012|Sharepoint on Premise|2 Comments

Topics for in-house SharePoint 2010 training

Topics for in-house SharePoint 2010 training Here are some ideas to cover during a company's cutover to SharePoint 2010. Many users will be confused by the ribbon so that's the main area of focus.  Main navigation, how to use the folder icon to navigate home from any page. How the ribbon works Browse, Page tabs (on Pages) Browse, Items, List tabs (on Lists) Browse, Documents, Library tabs (on Libraries) How the ribbon changes depending on what type of page you are on, page, list, or library How the checkboxes work to View item, edit item What do multiple checkboxes do if you select more than one? Try it out, navigate to a document library, try to view item and edit item through the ribbon Also show alternate way on the list by clicking Title or Edit icon Try it out, navigate to a list, try to view item and edit [...]

By |2022-12-11T19:44:49+00:00November 6th, 2012|Sharepoint on Premise|0 Comments

SharePoint 2010 Workflow history error: “The attempted operation is prohibited because it exceeds the list view threshold enforced by the administrator.”

 This is an interesting error message. When trying to see the workflow history of a SharePoint 2010 custom workflow I get the following error message:  SharePoint 2010 Workflow history error: "The attempted operation is prohibited because it exceeds the list view threshold enforced by the administrator."   What was strange was that other workflow histories worked fine, so I went down the path of finding out where the limit was. My first stop was the "hidden" SharePoint history list. There is a good post on this here: http://www.sharepoint911.com/blogs/laura/Lists/Posts/Post.aspx?ID=111  So I looked at my list by appending the /yoursite/lists/workflow%20history  I added a count column to one of the fields, and it said 12,500. I knew that wasn't right, so it must be a limit being returned somewhere. I needed to go deeper.  I loaded SharePoint 2010 manager from Codeplex onto the server and found that my top secret workflow history list [...]

By |2022-12-11T19:44:49+00:00October 18th, 2012|Sharepoint on Premise|0 Comments

All SharePoint 2010 Color Themes with Pictures

They don't make it that easy for you to see all SharePoint 2010 color themes at once, so here they are. I've taken the screenshots of the different theme settings and each default color. I've left the font as the default Verdana. You can change the them at Site Actions-Site Settings-Site Theme under the Look and Feel section of SharePoint 2010. This will save 30 minutes of your life that you will never get back.  Default (No Theme)  Azure  Berry  Bittersweet  Cay  Classic  Construct    Convention    Felt    Graham    Grapello    Laminate    Mission  Modern Rose    Municipal  Pinnate  Ricasso  Summer  Vantage  Yoshi    

By |2012-10-13T01:41:34+00:00October 13th, 2012|Sharepoint on Premise|0 Comments

Delete All User Alerts for a SharePoint Site Collection

In SharePoint 2010, you can turn off all alerts through Central Admin under Application Management, Web Applications, General Settings:    Another option is to write a little utility.  I wrote a little WinForms utility to delete all user alerts in a site collection. We needed this when we backposted a content database from Production down to QA. We didn't want to start firing alerts off the QA environment so you could either disable SMTP outgoing email or just wipe the alerts.  How to do it: Create a WinForms Application in Visual Studio, add a few fields, buttons, radios.  The Verify Alerts just checks your data without actually deleting it so you can see what you would have deleted.      using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using Microsoft.SharePoint;  namespace DeleteUserAlerts { public partial class Form1 : Form { public Form1() [...]

By |2022-12-11T19:44:49+00:00September 12th, 2012|Sharepoint on Premise|0 Comments

Migrate Alerts from old SharePoint url to new SharePoint url

Here's a handy powershell script to migrate all alert url's.  Problem: When you perform a content database migration to a new SharePoint farm with a different url, the alerts will not fire as the url's are stored from the previous farm. For example, migrating from "Intranet" to "IntranetQA" will not work as the old url's are stored. Here's the script: http://gallery.technet.microsoft.com/ScriptCenter/877d2abd-fce9-4545-b223-7637936dd888/

By |2022-12-11T19:44:49+00:00September 12th, 2012|Uncategorized|0 Comments
Go to Top