How to create WSP Package in Sharepoint 2013 by Visual Studio 2013?

by Xavier Dilip Kumar 13. October 2015 18:19

Solution:

Right click your project. Then click "Publish".

 

Choose the location to Publish your WSP file.

Clicking "Publish".

Tags:

SharePoint

User cannot upload the .SWF file in Share Point 2010

by Xavier Dilip Kumar 4. February 2015 12:27

Exception:

"Error: Access Denied" appears. User cannot upload the .SWF file". 

Explanation:

Users with contributor permissions are prevented from uploading files with extensions ASPX,MASTER,XAP,SWF,JAR,ASMX,ASCX,XSN and XSF

Solution:

1. Provide "design" permission to the users trying to upload the restricted extensions
2. These restricted extensions are listed in the WebFileExtensions property of the WebApplication. The WebFileExtensions property can be programatically edited as follows

  PowerShell script to list the WebFileExtensions property            

$WebApp = Get-SPWebApplication https://<SharePoint Site Collection URL>/
$Extensions = $WebApp.WebFileExtensions
$Extensions | ForEach-Object {Write-Host $_}

PowerShell script to remove the .swf restriction from the WebFileExtensions property
$WebApp = Get-SPWebApplication http://<SharePoint Site Collection URL>/
$Extensions = $WebApp.WebFileExtensions $Ext = $Extensions.Remove("swf") $WebApp.Update()
 

Tags:

SharePoint

Unable to process the request. wait a few minutes and try performing this operation again

by Xavier Dilip Kumar 30. October 2014 09:03

Explanation:

Encountering the issue of an error message when we double click on a file in SharePoint to open just for viewing.

Solution:

To fix the issue, enable the following setting in the sharepoint library settings.

Tags:

SharePoint

SharePoint Client-Side Object Model ClientContext.Load method cannot be loaded.

by Xavier Dilip Kumar 11. September 2013 11:59

Exception:

'Microsoft.SharePoint.Client.ClientContext' does not contain a definition for 'Load' and no extension method 'Load' accepting a first argument of type 'Microsoft.SharePoint.Client.ClientContext' could be found (are you missing a using directive or an assembly reference)

Explantion:

I got the above exception while using 'Microsoft.SharePoint.Client.ClientContext' load method in my share point web part project. Adding Microsoft.SharePoint.Client.Runtime.dll to project assembly references resolved the errors. The reason for the load method error is as follows

  • ClientContext inherits from ClientRuntimeContext
  • ClientContext is defined in Microsoft.SharePoint.Client.dll
  • ClientRuntimeContext is defined in Microsoft.SharePoint.Client.Runtime.dll
  • ClientRuntimeContext defines the Load method

Soultion:

Add Microsoft.SharePoint.Client.Runtime.dll along with Microsoft.SharePoint.Client.dll to project assembly references.

Tags:

SharePoint Development | TFS | SharePoint

tf400731: Only one Catalog resource of type 'Project Portal' can exist under 'Team Project'.

by Xavier Dilip Kumar 20. June 2013 13:14

Solution:

1. Remove the existing portal setting for team project as shown in the screenshort
2. Execute the following command to create a team project site

TFPT.EXE addprojectportal /collection:http://<server>:<port>/tfs/<TeamProjectCollection>

* /teamproject:<TeamProject> /processtemplate:"Microsoft Visual Studio Scrum 2.2"

 

Tags: , ,

SharePoint | TFS 2010 | TFS 2012

TF250061: The following site could not be attached to Team Foundation Server: The site is already associated with a team project on an installation of Team Foundation Server with a different ID.

by Xavier Dilip Kumar 20. June 2013 05:19

Explanation:

I had this problem when I migrated TFS 2010 collection to TFS 2012 instance and having the collection online on both TFS 2010 and TFS 2012 instances in parallel.

Solution:

To fix the problem, you need to disable the team project portal links either on TFS 2010 or TFS 2012 collection --> Team projects and run the SharePoint repair on the APP TIER using TFS administration console.

 Following are the steps I followed to fix the error in TFS 2012 instance

1. Open Team Explorer in Visual Studio --> Connect to TFS 2010 instance --> Select the team project that needs the fix --> goto "Portal Settings" --> Unchecked the "Enable Team Project Portal checkbox" --> click OK

 

 

2. Login to TFS 2012 App Tier --> Open TFS Administration console --> Select "Share Point Web Applications" --> Select the SharePoint URL --> click "Repair Connection" --> Repair option

All the permissions and connections to the team projects Share point sites should succeed.

(Optional)

3. Login to TFS 2010 App Tier --> Open TFS Administration console --> Select "Share Point Web Applications" --> Select the SharePoint URL --> click "Repair Connection" --> Repair option

All the permissions and connections to the team projects Share point sites should succeed.

 

Tags: , ,

SharePoint | TFS 2010 | TFS 2012

TF262600: This SharePoint site was created using a site definition that requires data from Team Foundation Server. However, the site is not currently associated with data for a team project

by Xavier Dilip Kumar 4. February 2013 14:55

Errors:

TF262600: This SharePoint site was created using a site definition that requires data from Team Foundation Server. However, the site is not currently associated with data for a team project. To ensure that this site functions correctly, you must configure a team project to refer data for that project to this site. For more information, see this topic on the Microsoft Web site: How to: Add a Team Project Portal.

This site doesn't have a default Team Project. You can explicitly select a specific Team Project.
This web part is not configured properly. Click here to configure web part in tool pane.

Explanation

This issue was caused by missing permissions for the [TEAM FOUNDATION]\SharePoint Web Application Services group to the team project. I get into the issue whenever I detach and attach the same collection (side by side) to different TFS App tiers for testing/R&D

Soultion

1) Add and grant READ permission for [TEAM FOUNDATION]\SharePoint Web Application Services group to the affected team projects.

2) use tfsredirect.aspx to refresh the cache

http://SharePointServer/sites/CollectionName/TeamProjectName/
_layouts/TfsRedirect.aspx?tf:type=webaccess&tf:test=1&tf:clearcache=1

Note : This page should not return any errors and the value for TeamFoundation.Temp.LastRefreshDate should include the current date.

3) Repair the connections between TFS and SP

  • Open the Team Foundation Server Administration Console
  • Expand the Application Tier in question (the one hosting the Team Project Collection and Team Project with the problem)
  • Highlight the SharePoint Web Applications node.
  • In the SharePoint Web Applications list, highlight the appropriate connection and then click "Repair Connection"

Tags:

TFS | SharePoint

Error 0x800700DF: The file size exceeds the limit allowed and cannot be saved.

by Xavier Dilip Kumar 28. June 2012 18:37

Solution

Increase the SharePoint Upload Limit via Central Administration

Open Central Administration --> “Manage Web Applications” --> Select desired web application row (don’t click on the title, just select) --> 
“General Settings” in the ribbon --> Under Maximum Upload Size, change the setting to the desired value (e.g. 150 MB) --> “OK”

 

If the problem still exist, Apply the following settings in your local box from where you are trying to upload/download the files

1. Click Start, click Run, type regedit, and then click OK.
2. Locate and then click the following registry subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters
3. In the right pane, right-click the FileSizeLimitInBytes value, and then click Modify (Note: If you cannot see the FileSizeLimitInBytes value,
right-click the blank space in the right pane, click New, click DWORD Value, type FileSizeLimitInBytes, and then click OK).
4. In the Edit DWORD Value box, click to select the Decimal option. In the box under Value data, type a value that is larger than the size of the file that you want to download. Click OK. (Note The default value for the file size limit is 50000000 bytes.)
5. Quit Registry Editor. Restart the box.

Tags: , ,

SharePoint

About the author

My name is Xavier Dilip Kumar Jayaraj and I am a Software Configuration Management Engineer with a background in application development, Build & packaging using Install Shield.

Profile in LinkedIn

  

Quotes I Like

"Failure will never overtake me if my determination to succeed is strong enough."  - Dr. APJ. Abdul Kalam

"Always be yourself, express yourself, have faith in yourself, do not go out and look for a successful personality and duplicate it." - Bruce Lee

"Technology is just a tool. In terms of getting the kids working together and motivating them, the teacher is the most important." - Bill Gates

"Innovation distinguishes between a leader and a follower." - Steve Jobs

Disclaimer

The information provided here is based on my expreriences, troubleshooting and online/offline findings. It can be used as is on your own risk without any warranties and I impose no rights.

Month List