Nick Grattan's Blog

About Microsoft SharePoint, .NET, Natural Language Processing and Machine Learning

Posts Tagged ‘SharePoint 2013

Developer’s Toolset for #SP2013 – Add MVC and mix in Razor!

leave a comment »

The clear message from Microsoft for SharePoint 2013 development is a move to the app model. Here’s an introduction: http://msdn.microsoft.com/en-us/library/jj164084.aspx. SharePoint 2013 apps moves your code assemblies out of the SharePoint platform and into separate web applications. There are two reason for this:

1. A requirement for a more stable SharePoint platform. If you’re running SharePoint across your organization you don’t want badly written applications impacting reliability.

2. In Office 365 you can only add assemblies in sandboxed solutions. However, because of the very constrained subset of the SharePoint API available to such solutions their functionality is limited. Now, Office 365 will use functionality provided by SharePoint apps.

The move to SharePoint 2013 brings SharePoint 2013 developers fully back into the ASP.NET development  fold. In particular, MVC with Razor greatly simplifies web application development. You will be using the SharePoint Client Object Model to access SharePoint objects from your app.

Here are some links that help you get started with building SharePoint 2013 apps:

 

 

 

Written by Nick Grattan

December 8, 2012 at 4:28 pm

Disappointing – SharePoint 2013 single server install failures

leave a comment »

SharePoint 2013 is now at RTM and available for preview. It’s disappointing that a default, single server install has issues that occur often and predictably, even on a clean Windows 2012 Server install. Of course, we expect errors and problems, especially with early release software. However, the default install should just work at this stage of the product lifecycle.

There are several blog posts that describe how to correct these issues. This is one of the better ones: http://squidpip.com/blog/sharepoint-2013-preview-configuration/.

Also, there’s a deployment guide from Microsoft which can be found here: http://www.microsoft.com/en-us/download/details.aspx?id=30384 . Be prepared though, it’s 675 pages long!

Written by Nick Grattan

November 28, 2012 at 2:11 pm

Posted in SharePoint 2013

Tagged with

Assembly deployment to “bin” virtual folder deprecated in SharePoint 2013

leave a comment »

For some time now deploying assemblies in the “bin” folder in virtual folders under inetpub has been frowned on in SharePoint. Well, it’s now deprecated in SharePoint 2013 and an attempt to do this will cause Install-SPSolution to fail.

If you really, really, have to you can use the -FullTrustBinDeployment parameter to allow this behavior. However, you should really look to deploy assemblies to the GAC.

Written by Nick Grattan

November 21, 2012 at 6:07 pm

Posted in SharePoint 2013

Tagged with

SharePoint 2013 – Links get Promoted!

with 11 comments

SharePoint 2013 now has links that animate when the user moves the mouse over them:

These are implemented by creating a “Promoted Links” list. You can create your own promoted links list:

  • Select Settings + Add an app
  • Click the Promoted Links  app (which is actually a list template):

  • Enter a name for the new list and click Create :

Once the list is created, items can be added to define each of the promoted links:

You can see that the item has a title, a URL for the image, a description showed when the icon is moused over and the target URL. The Prompted List has a “Tiles” view that will display the items in the list using the animated images:

And when moused over the image animates:

Of course, the Tiles view can be displayed in a Web Part that can be included on any ASPX page. So, easy to get a Metro type feel in your applications.

Written by Nick Grattan

July 30, 2012 at 7:27 pm

Sign in as Different User and SharePoint 2013

with 44 comments

It’s been noted that the “Sign in as a Different User” menu command is missing in SharePoint 2013 (e.g., see http://dirkvandenberghe.com/2012/07/18/sharepoint-2013-login-as-a-different-user.html).

One suggestion for a fix can be found here: http://www.little.org/blog/2012/07/17/launch-your-web-browser-as-another-user/.

This “Sign in as Different User” menu item is very useful when testing applications, but it can lead to problems especially when opening documents, say in Microsoft Word. So, it may be for these reasons that the option has been removed in SharePoint 2013.

You can add the menu item back in, but I would suggest only doing this on test or development SharePoint servers. To do this, repeat this edit on all servers in your SharePoint farm:

  • Locate the file \15\TEMPLATE\CONTROLTEMPLATES\Welcome.ascx and open in a text editor.
  • Add the following element before the existing element with the id of “ID_RequestAccess”:

<SharePoint:MenuItemTemplate runat="server" ID="ID_LoginAsDifferentUser"
 Text="<%$Resources:wss,personalactions_loginasdifferentuser%>"
 Description="<%$Resources:wss,personalactions_loginasdifferentuserdescription%>"
 MenuGroupId="100"
 Sequence="100"
 UseShortId="true"
 />

  • Save the file.

Now, the menu item shall be displayed:

 

Update 16-Jul-2013:  As noted by a number authors (and correctly so), modifying files in the hive is not generally good practice. It’s presented here as a quick (and dirty!) solution. Look through the comments against this post for some other solutions that you might want to try too.

Written by Nick Grattan

July 23, 2012 at 4:24 pm

While loops in SharePoint Designer 2013 Workflows

with 2 comments

Two types of workflows are available in SharePoint 2013:

The good news is when running SharePoint 2013 Workflows you can create while loops in SharePoint Designer 2013 workflows. Here’s how they look.

Once you’ve opened a site and a list in SharePoint Designer 2013 you can create a new List Workflow:

 

The “Create List Workflow” dialog allows you to select the platform for the workflow – you must select SharePoint 2013 Workflow to enable the loop option:

Now the ribbon will display a new button “Loop” with two available loop:

And so loops can now be added to the workflow:

Joy of joys!  Of course, enabling while loops in SharePoint Designer 2010 is much more difficult – you can find one solution here:  https://nickgrattan.wordpress.com/2010/12/14/while-loops-in-sharepoint-designer-workflows/

 

 

Written by Nick Grattan

July 22, 2012 at 4:40 pm

SharePoint 2013: Standalone Installation Issue

leave a comment »

OK, so you’ve downloaded the SharePoint 2013 Preview and tried to do a standalone installation – and get an error “Failed to connect to the configuration database” and “Service running under Network Service account in workgroup environment is not supported”. 

This is apparently to do with the the AppFrabic caching service. Well, “TomBlog””s already sorted the problem: http://tomblog.insomniacminds.com/2012/07/17/sharepoint-2013-standalone-installation-issue/comment-page-1/#comment-80831. Thanks – great work.

Written by Nick Grattan

July 17, 2012 at 10:00 pm

Posted in SharePoint 2013

Tagged with