Windows 8 I like it… after 2 weeks..

I recently upgraded my Thinkpad laptop from win7 to win8 professional.. below are the keyboard shortcuts i use frequently

  • WINDOWS key – to switch between desktop and modern(metro) interface
  • ALT+TAB – to switch between apps recently opened
  • WINDOWS+C – open the Windows 8 charms
  • WINDOWS+Q – see all apps
  • WINDOWS+X – very handy to see the control panel
  • WINDOWS+Z- to see app bar properties down
  • WINDOWS+Q- search the apps
  • WINDOWS+D – to get desktop interface
  • WINDOWS+F – to search a file
  • WINDOWS+TAB – modern taskbar
  • WINDOWS+I – to get settings
  • WINDOWS+R – run dialog
  • WINDOWS+O – to open my computer
  • WINDOWS+L – to lock the computer
  • WINDOWS+P – switch to presentation
  • WINDOWS+. – to move the app screen to the right
  • WINDOWS+SHIFT+. – to move the app screen to the left
Posted in Uncategorized | Tagged , , | Leave a comment

SharePoint 2013 Projects in Visual Studio 2012

I downloaded visual studio 2012 premium evaluation version and was looking for SharePoint 2013 projects items , but i couldnt find them, so seeing in MSDN forum

i figured out i need to download

‘Microsoft Office Developer Tools for Visual Studio 2012’ from the ‘Tools’ section of the following site, install them and you will find a new group called ‘Office/SharePoint’

http://msdn.microsoft.com/en-US/office/apps/fp123627

 

Hope this helps..

Posted in SharePoint 2013, Visual Studio 2012 | Tagged , , , , | Leave a comment

Whats New In SharePoint 2013

Software Requirements:

Windows server 2008 R2 SP1 + or Windows Server 2012
SQL Server 2008 R2 SP1 + or SQL Server 2012
.net Framework 4.0 or 4.5

Hardware Requirements—web servers, application servers, and single server installations:

 

Hardware requirements—database servers

New Features:

  • Application market place and catalog

 SharePoint 2013 introduces a corporate catalog and a public marketplace, which is essentially an app store. Developers can now write applications that extend SharePoint sites using the new SharePoint App Model. In SharePoint 2013, SP Apps can be SharePoint hosted using a client web part and Azure-hosted (auto-provisioned or on premises).

  • Office web application server

Office web apps has evolved into a separate server product, allows to host apps (word, excel, PowerPoint and one note) to work with SharePoint and exchange, this allows users to use those apps via a browser.

  • Workflow Manager(SP2013 Workflow platform)

SharePoint 2013 Workflow platform uses the new Workflow Manager Service. Workflow Manager is built on top of Windows Workflow Foundation. SharePoint Server 2013 uses Workflow Manager for its workflow engine.

  • eDiscovery

SharePoint Server 2013 introduces the eDiscovery Center, a new type of site collection that serves as a portal for managing eDiscovery cases. From this central location you can discover content in the SharePoint farm, in Exchange Server 2013, on file shares, and in other SharePoint farms. You can apply a hold to SharePoint and Exchange content that you discover. The hold ensures that a copy of the content is preserved, while still allowing users to work with their content. When you have identified the specific items that you will have to deliver, you can export them in an industry-standard format.

  • Claims by default

In SP 2010 we had to choose between two options when creating a content web applications – Classic mode Authentication (Kerberos, NTLM) or Claims-based Authentication

Now in SharePoint 2013, Claims-based authentication mode is the default authentication method. You cannot from the web interface create content web applications using Classic mode. If you need to create a Classic web application you need use PowerShell

During Upgrade:

Create a Classic Web Application in 2013 and attach (and upgrade) your Classic content databases to that web application and then (after testing) utilize the new Convert-SPWebApplication cmdlet to convert it.

  • Web Analytics

In SP 2013 we no longer have web analytics service application, it is integrated into the search service app.

  • New Service Applications

App Management Service – It allows Administrator to manage SharePoint Apps.

Work Management Service – It allows users to aggregate and synchronize tasks between multiple environments such as project server, exchange and SharePoint.

Translation Service – It performs automated machine language translation. This makes it possible to create content in one language and automatically convert it to a different language. This service application works well with new cross-site publishing functionality when you need to propagate the translated content to a different site collection.

  • Enterprise search

Common engine across SharePoint and exchange.
No FAST Search.
Keyword query language
Everything now is crawl, no FAST API

  • Distributed cache service

The Distributed Cache service provides caching functionality for Authentication and newsfeed in SP 2013

  • Shredded Storage

To streamline the document storage this feature is used and it removes the removes file duplicates. Documents will now be stored in the databases in pieces, which makes  it possible to update only a part of the document – by updating one or more pieces in the database – instead of updating the whole document.

Shredded Storage will be activated on Web Application or Farm level, but is not switched on by default.

Major changes and additions

1-      SP2013 –BCS

  • Support for OData data sources (can connect OData – can pull data from OData service), paging and sorting on the server (in the data source) instead of running on web front  in BCS
  • Events and alerts from external systems
  • Building App-scoped External Content Types
  • Enhanced support for client object model/REST
  • Eg: Talking to external list using Client object model and REST.

http://zimmergren.net/technical/sharepoint-2013-business-connectivity-services-talking-to-your-external-lists-using-rest

  • Event handlers on external list items (external CTS’s)
  • External List event handlers
  • ECT event handlers.
  • External list alerts (notifications)  (when anything added, edit delete in crm or external lsit) Alert Me functionality – external list
  • Notification endpoint for ECT
  • App specific external content type – smaller scope
  • Client side api

2-      SP2013 – WCM

  • Navigation  Managed Metadata Navigation – structural navigation ,metadata navigation
  • WCM navigation is based on search to go over site collection
  • Navigation based on term store
  • Search driven content – Content by search webpart
  • Design Manager –snippets –snippets manager
  • Device channels(mobiles) – you can render a single published SharePoint site in multiple designs to accommodate different device targets
  • Location- supports new geolocation field type that can be used for mobile development
  • Analytics( usage stats)
  • Cross site publishing
  • Clean URL’s(SEO)
  • Display Template (html+javascript)
  • Themes are now based on HTML5 – no ppts
  • Items matching a tag webpart

3-      SP2013 – Workflows

  • Completely redesigned workflow infrastructure (windows workflow foundation4)
  • Fully declarative, no code authoring environment
  • No longer run in SharePoint ( ie not in worker process)
  • Windows Azure Workflow services (doesn’t work on domain controller)

4-      SP2013 – Development and customization

Everything is an App Model

We aren’t loose anything same farm sol, sandbox sol works can be developed similar way
Farm sol – 2007
Sandbox sol -2010 No enhancement
SharePoint Apps -2013 (to work inside cloud)

  • SharePoint Hosted  environment (can be installed inside office 365 or inside SharePoint presence office 365 as tenancy, inside local farm
  • Tenancy – set of site collections managed as single  administrative unit
  • Isolation web
  • OAuth two apps can talk each other

5-       SP2013 -APPS

Ability to download and purchase apps from the office marketplace or from an organization private app catalog

Options for publishing the apps:

  • Public office marketplace – publish your app to the office store to make the app publically available, so that it can be acquired by users of any SharePoint deployment
  • Internal organization app catalog: publish your apps to an internal organization app catalog, hosted on SharePoint deployment

Developers can use the new “developer” site template to test out the apps.

6-      SP2013 – Social

“Two way” meaning items can be commented on , liked and so on, its now facebook  and twitter style.

good post about new features in social link

  • New site template for communities
  • New feeds – access feed
  • Social  – CSOM,REST calls
  • @mentions
  • #hashtags
  • These are searchable, and can be followed. Effectively the new hashtag bit has been merged with the existing SP2010 functionality of being able to follow a Managed Metadata tag.
  • Ability to ‘follow’ a site or specific documents
  • This is very similar to the ‘subscriptions’ feature we built for SP2010. Effectively, you’ll see updates about this content (site or document) in your newsfeed
  • Groups:
  • In addition to posting to everyone, I can opt to post only to the members of a specific team site – which could be a specific community with the company
  • Ability to post links and pictures (with thumbnails automatically generated/used in the feed)
  • Document/media preview from within the feed
  • No need to open a new window or be taken out of context to get a feel for the document/video/whatever
  • Autocomplete:
  • The UI feels highly-usable – when I type @ to get a person’s name, or # for a hashtag, I get an autocomplete box which gives me categorized suggestions. In the case of an @mention, it initially gives me only people I’m following (left image), but as I type more and no results are found, it expands the search to all people
  • There is also a ‘team’ newsfeed for keeping up with what’s happening in a particular team site.

7-       SP2013 – ECM

  • Managed Metadata
    • Reuse item
    • Pin term with children
    •  CSOM operations with terms
  • Site template – Discovery Centre – search on keyword
  • Team folders – Exchange and SP together
  • The User Profile Service has improved mainly the synchronization part. Better performance, more reliable and compatibility. AD Connections can now be set up with AD Direct Import.
  • Exchange server integration ( eg. Site mailbox)

8-      SP2013- Upgrade and Migration

  • Only Database attach upgrade, no inplace upgrade
  • Once DB attach upgrade is performed, we can use deferred site collection upgrade which enables existing SharePoint 2010 site collections to work unchanged in SP2013
  • New Site collection upgrades – puts the upgrades in users hands site owner (upgrade this site collection button)

1         Run Site Collection health checks – identifies common issues like
missing  features and address post upgrade issues
2         Request upgrade evaluation site collection(optional)
3         Upgrade the site
4         Verify upgrade

9-      SP2013 – Changes in SharePoint Designer 2013

  • Heavy focus on workflow improvements meaning that a higher percentage of workflows can be created using only SharePoint designer
  • Removed design and split views

10-  SP 2013 – Business Intelligence lot improvemnets

SQL server analysis services can run outside – in memory BI engine in SharePoint

Excel, excel services, power pivot.

Posted in SharePoint 2013 | Tagged , , , , | Leave a comment

Installing SSRS 2012 on SharePoint 2010 Server Integration mode

ImageReporting service is now a service application.I have 2 server farm , with WFE + APP and SharePoint Content db  and i have external datawarehouse  db where i need to get data for my reports

My SharePoint web Application is configured to use kerberos Authentication

Listed below are steps taken to accomplish enabling SSRS for Kerberos authentication

Step 1 – Installation

  • Install On SharePoint
    • Run SQL Server 2012 Enterprise Setup.exe
    • In “SQL Server installation Center” ->Installation -> New SQL Server stand-alone…..
    • Product Key ->Next
    • Accept agreement -> Next
    • Setup Support Rules (If All Passes, No Action Required) -> Next
    • Select “SQL Server Feature Installation” -> Next
    • Select “Reporting services SharePoint”
    • Select  “Reporting Services Add-in for SharePoint Products”
    • Next
    • Install
    • Close
  • Reboot
  • Install on SharePoint Application server
    • PowerShell install-SPRSService
    • PowerShell install-SPRSServiceProxy
    • Get-SPServicesInstance –all | where {$_.typename –like “SQL Server Reporting*”}
    • If Status  = OffLine
    • Get-SPServicesInstance –all | where {$_.typename –like “SQL Server Reporting*”} | start-SPServiceInstance
    • Go To Central Admin
    • Create the Service application
      • Application Management, Manage Service Applications
      • New à SQL Server reporting Services Server Application
      • Installed SQL Server reporting Services server application 2012
      • Name = SQL 2012 Reporting Service
      • Create new application pool
      • Application Pool Name = SQL 2012 Reporting Service
      • Select a security account for this application pool
      • NANI\svc_sp_dev_ssrs2012
      • Database Name = SP-09_2012_Reporting_Services
      • Web Application Association
      • Check the Main Site Collection
      • Click OK
    • IMPORTANT: WHEN COMPLETE DO NOT CLICK ON THE “X” , DO NOT CLICK OK.
    • Click on the following link: Provision Subscriptions and Alerts
    • Ensure  “SQL Server Agent is running” is displayed under “View Status”
    • Click “ Download Script under “Download SQL Script”
    • Save to a known Location.
    • Click Cancel
  • Run Downloaded SQL Script on database server
    • Open SQL Management Studio on a MGMT Server
    • DB = NANISPDB
    • Copy SQL Query from Downloaded SQL Script to New Query Window
    • Execute
  • In Central Admin
    • Click Central Administration à Manage service applications-> SQL 2012 Reporting Service
    • Click System Settings
    • If you do not receive a critical “SharePoint” error, installation is successful.
  • END OF INSTALLATION

Step 2 – Create SPN’s and Enable Trust for delegation

  • Verify Existings SPN’s

To get List of existing SPN’s use below commands

setspn -L svc_sp_dev_ssrs2012

setspn -L svc_sp_dev_c2wts

  • Change claims to Window Token Service from services.msc to logon as domain account

Here we used NANI\svc_sp_dev_c2wts

  • Set SPN’s for accounts

setspn -S SP/C2WTS NANI\ svc_sp_dev_c2wts

setspn -S SP/SSRS2012 NANI\svc_sp_dev_ssrs2012

NOTE:I did above to get the delegation tab in AD.

set spn for sql box

setspn –S MSSQLSvc/NANI-SQL-DW NANI\svc_sql-dev

setspn –S MSSQLSvc/NANI-SQL-DW:1433 NANI\svc_sql-dev

  • create delgation for both accounts(NANI\svc_sp_dev_c2wts, NANI\svc_sp_dev_ssrs2012)

Add – select the service account and add as below picture

  • Change Local Security Policy

On NANISP box i added the following service accounts

“svc_sp_dev_ssrs2012”

“svc_sp_dev_c2wts”

To the following Policy’s

  • “Act as part of the operating system”
  • “Impersonate a client after an authentication”
  • “Logon as a service”

Step 3: Restart Claims to Windows Token Service from the services.msc

Step 4: Restart SQL Server Reporting Services Service from central admin

Step 5: Restart Claims to Window Token Service from central admin

Reference video: http://technet.microsoft.com/en-us/video/Video/hh858469

Posted in SharePoint, SQL Server | Tagged , , , | 3 Comments

You may be trying to access this site from a secured browser on the server. Please enable scripts and reload this page

I got a weird error when i was trying to access the SharePoint 2010 Site in IE browser, but works well in other browsers.. In order to fix

open IE developer tool (F12) and click on Disable Menu and uncheck the Scripts…

Image

Posted in SharePoint | Tagged , , | 1 Comment

Count of current SharePoint Server connections

If you want to know no of users connected to your SharePoint site realtime use the below powershell function script, gives the count of users connected (accessing the site)

Below is the link for Excellent Post:

http://geekswithblogs.net/Lance/archive/2009/06/03/get-the-number-of-current-sharepoint-connections.aspx

function Get-WebServiceConnections()
{
$results = @{}
$perfmon = new-object System.Diagnostics.PerformanceCounter
$perfmon.CategoryName = “Web Service”
$perfmon.CounterName = “Current Connections”

  $cat = new-object System.Diagnostics.PerformanceCounterCategory(“Web Service”)
$instances = $cat.GetInstanceNames()

  foreach ($instance in $instances)
{
$perfmon.InstanceName = $instance
$results.Add($instance, $perfmon.NextValue())
}
write-output $results
}

Get-WebServiceConnections

Image

Posted in PowerShell, SharePoint | Tagged , , | Leave a comment

SharePoint 2010 publishing pages access denied error

I created a page using a page layout and tried to access on my dev box it worked well(i used my admin account) and my page library pages have unique permissions , but when i tried to access from external i got access denied error (when i used my NT account). My NT account had read permission for the page library.so upon digging i found that the page i created was minor version so went to the page library and published as major version and now i can successfully access the page. 🙂

Image

I am not sure whether it is a 2010 publishing page bug,in order to access the page with read permission we should always publish the page with major version.

Some ppl suggested it may due to this following,

  1. permission have been broken on the Pages library and on a Publishing Page
  2. the user accessing the page does not have read permission on the Pages Library
  3. minor version and moderation (content approval) is enabled on the Pages library.

but i could resolve with publishing major version as content approval is enabled by default on my page library  🙂

Ref: link1  link2

Posted in Developer, SharePoint | Tagged , , , | Leave a comment

Edit SharePoint Solution wsp file manually

I had a old wsp file and need to edit the manifest file. so i remaned it to .cab  and extracted all fies to a folder and edited the manifest file .

Now the task is to how combined all files and make a cab file and make a wsp

i followed this blog link, works like a charm !

  1. Rename the WSP to CAB
  2. Extract the wsp to a folder
  3. Edit the extracted files as needed
  4. Select all the files in extracted folder (Ctrl-A) and create a zip archive (this avoids the problem Grumpy Wookie ran into with IZArc not handling subfolders)
  5. Open the zip in IZArc and do Tools > Convert Archive and select Cabinet (.cab) as the Output Type to create it as a CAB
  6. Edit the created cab file to change it back to a wsp

You can download IZArc from CNet.

Posted in SharePoint | Tagged , , | Leave a comment

Deploy SharePoint Solution to Web application scope

I was trying to deploy a wsp to my test farm and it is always deployed globally and was curious to know how to deploy to a specific web application as my other solutions are deployed to specific web app.

By seeing the manifest file i found my other solutions as safe control entry in solution manifest file as it contains webparts and user controls.

But my current solution doesn’t have any features scoped to web application and has features scoped to site and web so by default SharePoint deploys the assembly globally.

I read online many suggested that if wsp solution contains no resources scoped for a web application we can’t deploy to particular web application.”Globally deployed” only applies to WSP files that don’t have web controls and web parts in them

These cannot be “Globally deployed”, because the web.config of the web application you choose to deploy to is changed, i.e. entries are inserted in order to register your .dll’s containing web controls and web parts
SharePoint will only deploy to a web application (or allcontenturls) if it needs to. It needs to when…

it needs to modify a web.config file, like for instance if its inserting a safe control entry.
it needs to deploy the dll to the bin directory instead of the gac

I just read a blog that had a good idea if you want to deploy to only a single web application make an empty feature that is scoped to the web application level as part of solution, apparently that will make the solution deployed to web applications instead of globally.

Posted in SharePoint | Tagged , , , , , , , , , , , | 2 Comments

Delete the installed assembly(dll) from GAC

Windows Assembly path: C:\Windows\assembly

If you are looking for the physical location where your GACed DLL is saved in the file system, try this:  start–>run–>c:\windows\assembly\gac If you don’t find your DLL related folder in there, you can do a “Up” folder in windows explorer to display everything in c:\windows\assembly as folder structures. You can then look for your DLL under GAC_MSIL or any other folder out there

To delete the dll

open Open Visual Studio Command Prompt (2010)

by navigating to All programs\Visual studio 2010\Visual Studio Tools\Visual Studio command prompt

and execute the below command

gacutil /u dll name

eg: gautil /u sample

Posted in C#, SharePoint, Visual Studio 2012 | Tagged , , , | Leave a comment