Wednesday, 9 March 2016

How to generate .ascx.g.cs file manually

Please find the below steps to generate .ascx.g.cs file manually for your Visual webpart:

  1. Ensure the project's site URL is specified correctly and it's valid.
  2. Go to your Visual webpart  => expand the visual webpart file => right click on .ascx file => click on Properties => Update the "Custom tool" to "SharePointWebPartCodeGenerator".
  3. Right click on .ascx file and Click on "Run Custom Tool".
  4. Go and check, your .ascx.g.cs file will be generated.
Hope these steps solved your issue. Happy Coding.

Tuesday, 8 March 2016

SharePoint Designer 2013: Unable to Edit the Workflow

When I was working with SharePoint 2013 designer workflow for Office 365 site, I was getting a blank screen when I tried to open designer workflow which was working fine in another system/machine. Then I came to know that this issue is related to SharePoint designer of particular version. After some research I found this hot fix which fixed my issue - https://support.microsoft.com/en-us/kb/2837633 .

Hope your issue solved.

Thursday, 3 March 2016

Windows Desktop Search is not available error in Windows Server 2012 R2

Here are new steps to enable the Windows Search service in Windows Server 2012
  1. Start Server Manager.
  2. Click Manage , and then click Add Roles and Features .
  3. On the Before You Begin page, click Next .
  4. On the Installation Type page, select Role-based or Feature-based Installation , and then click Next .
  5. On the Server Selection page, select the server or virtual hard disk on which to install Windows Search Service.
  6. On the Server Roles page click Next without selecting anything.
  7. On the Features page, select Windows Search Service, and then click Next
  8. On the Confirmation page, verify that Windows Search Service is listed, and then click Install.


Saturday, 20 September 2014

Sign in as different user menu is missing in SharePoint 2013

It’s been noted that the “Sign in as a Different User” menu command is missing in SharePoint 2013. This “Sign in as Different User” menu item is very useful when testing applications, but it can lead to some problems when opening documents. 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, please follow the below steps:

1.      Go to the file \15\TEMPLATE\CONTROLTEMPLATES\Welcome.ascx and open in a text editor.
2.      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"
           />
 3.      Save the file.

Now, go to the menu and check. It shall be displaying.

Hope this helps.


Filter web parts are not displaying in Add Web part catalog

Reason:  Your server is not Enterprise version or you did not activate the features. If your server is enterprise version then directly follow the “Enable enterprise Features steps
If  your SharePoint server is not enterprise version then u will not be able to see filter webparts. This means your server is standard version, first update your server to Enterprise version and then you will find filter webparts.

Solution: (Requires Product key to activate to Enterprise version)

1.      Go to Central Administration
2.      Select “Upgrade and Migration” heading.
3.      In Update and Migration page select Enable Enterprise Feature.
4.      Now, select Enterprise option and enter the Product key to activate the feature.

Enable enterprise features

1.      Go to site collection where you want to use filter webparts
2.      Go to site settings
3.      Under Site Collection Administration select site collection features
4.      Activate “SharePoint server enterprise site collection feature” feature.
5.      Now go to the sub-site where you want to use webparts. Then go to Site settings
6.      Go to “Manage site features
7.      Activate "SharePoint server enterprise site feature" feature.
8.      Now go and check whether filter webparts are displaying or not. It will work.


Hope this helps.

Total Pageviews