.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Deploying a custom theme as a farm solution

Posted By:      Posted Date: September 15, 2010    Points: 0   Category :SharePoint
Hello,   I am a beginner to Visual Studio 2010 + Sharepoint 2010 - I have created a custom theme and would like to deploy it to my dev Sharepoint farm as a solution.  I've added the "Sharepoint mapped folder.." (..TEMPLATE\GLOBAL\Lists\themes) and added my thmx to that folder in the project.  When the solution is deployed to my dev farm the custom theme gets added to the 14 hive \TEMPLATE\GLOBAL\Lists\themes folder but when a new site is created the theme is not available from Site Settings->Site Theme or in the Theme Gallery.  What am I missing here?

View Complete Post

More Related Resource Links

Deploying a .thmx theme as a farm solution


Hello everybody,

I am another beginner to Visual Studio 2010 + SP 2010 and I have created:

1.     A custom theme (.thmx file)

2.     A feature to deploy it to my SharePoint farm as a solution, and this is how the FeatureActivated method look like:

        public override void FeatureActivated(SPFeatureReceiverProperties properties)

            SPWeb currentWeb = (SPWeb)properties.Feature.Parent;

            currentWeb.AllowUnsafeUpdates = true;

            currentWeb.SiteLogoUrl = "**url to logo1**";


            foreach (ThmxTheme theme2 in ThmxTheme.GetManagedThemes(currentWeb.Site))

BDC/BCS Model doesn't show up when deploying custom bcs solution to farm



I've created a custom BCS solution in VS2010, for SP2010, it's based on a .net assembly and in dev/test it all works fine.

Unfortaunetly, when I package it for production, although it deploys successfully - or so everything says - if I look in Central Admin for the BDC model, it's not there!

Has anybody else come across the same issue?

Please let me know what other information you might need.

Kind regards,


Create Custom Site Template & Deploy as Farm Solution


So I've seen a few posts and blogs about this, but nothing with the specific error I'm getting.  All I'm trying to do is create a custom site template from an existing site (now WSP), and make that custom template available in CA so I can create host-named site collections from that template in PowerShell.  Apparenly this was a lot easier in 2007, as you could just save your template as STP, and run some stsadm addsolution to get it in the farm.  With 2010, I've read there are 2 options:

  1. Install-SPWebTemplate
  2. Deploy via Visual Studio 2010

I've tried running Install-SPWebTemplate (which only takes CAB files), and NOTHING I do works.  I've created a cab from the WSP with makecab, I've renamed the WSP to CAB, and all I get is "cannot find or parse web template file".  So on to VS2010.

Using this article as a guide (http://msdn.microsoft.com/en-us/library/ff408263.aspx), I created a new 2010 Import existing solution project, left all items selected, and the import was successful.  I made a change or two to the ONET.xml to fix some things, and then I just try to deploy it to the farm.  Whether I set the URL to the root intranet site, or the CA URL, I get deployment conflict errors:

"The URL or

Custom Timer Job deploying at Farm level



I am trying to develop a timer job that is deployed at Farm Level. can anyone point me to an example of how to deploy it?

(I am looking for code in FeatureActivated and deactivated event)



Deploying custom Web Parts on SharePoint 2007 production server

I would like to develop a custom SharePoint 2007 Web Part for a client. Currently I'm using Visual Studio to deploy my solution to a test environment (since it's a SharePoint Project I choose just Build -> Deploy from the menu). What are the appropriate steps to deploy it to the production server?

I'd like keep it simple and safe (i.e. use the principle of least privilege). Therefore (if possible) avoid using stsadm, achieve this through web interface, or avoid using administrative rights.

Also, can I specify the scope of my Web Part, i.e. choose on which Web Application or Site Collection will it be installed?

Custom Theme for entire Site Collection

I created a theme with custom css for sharepoint 2010 Is it possible for me to use my custom CSS and have it be a selectable theme from each site without me having to modify the master pages of each site that wants to use the theme?

Error When Deploying Multiple Projects in a Solution

We have a solution with 16 projects, where all but 3 are Sharepoint 2010 projects. When we deploy the projects in VS2010 individually, everything is fine, but when we deploy the solution (right-click, deploy), we experience one of two problems: 1. Not all projects get deployed, some just give the following message: "Deployment was not performed for this project because it is a dependent project." 2. Some of the projects (currently always the same three Sharepoint2010 projects) give the following error during the "Recycle IIS Application Pool" step: "Error occurred in deployment step 'Recycle IIS Application Pool': The open operation did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout." We don't have any dependencies set up in the projects except for the ones which are automatically created when we add project references. If we do two subsequent solution deployments, the first one will suffer from issue 1 and the second from issue 2 as well. When issue 2 happens, the faulty projects can't even be deployed individually until VS2010 has been restarted.   A Google search has revealed nothing at all. We're at a loss and it's getting to be very frustrating for the entire team. Any help would be appreciated.   Thanks, Bjoern

Deploying and Using jQuery with a SharePoint 2010 Sandboxed Solution

If you're an avid reader of this blog, you probably now that I'm quite a big fan of the jQuery Javascript library, especially in combination with SharePoint sites. For a while I've been trying to find a mechanism to deploy jQuery and add a reference to it on all SharePoint pages of a site, by just using a Sandboxed Solution. The first part, deploying the jQuery file, is really easy; this can be done in a Module in a SharePoint project. The second part was more of a challenge; making sure the jQuery file got referenced in all pages of a SharePoint site. My initial thought was to do this by using the AdditionalPageHead Delegate control, but it's not possible in a Sandboxed Solution (you need to deploy the .ASCX to the SharePoint root). My second thought was to use the new ScriptSrc attribute you can use in a CustomAction (I wrote about this attribute some time ago). But initially I was under the impression that the ScriptSrc attribute could only target Javascript files loaded from the SharePoint Root (the \LAYOUTS) folder, resulting in a no-go for a Sandboxed Solution as well. Daniel McPherson stumbled upon this issue as well, but neatly solved it using Javascript to add the reference dynamically. But apparently you can make use of the ScriptSrc attribute to reference files from the Virtual File System (e.g. a Document Library in a site) as well! (thank you Frederic Dobon for men

Deploying custom 2007 site definition to 2010

For a customer I am upgrading their SharePoint 2007 enviroment to SharePoint 2010. After a succesfull upgrade I am stuck with one last annoying problem: when creating a publishing site collection using a custom definition the provisioning of the site definition  fails. Interesting about this is that the provisioning works from the central admin UI, but this customer has an custom webpart for creating site collections in a web application outside of Central administration. The simplified code for this is: public static bool Create(SPWebApplication webApp, string Url, string siteTitle, string siteDescription, uint lcid, string siteTemplate, string ownerLogin, string ownerName, string ownerEmail)         { SPSite site = null; try { SPSite newSiteCollection = webApp.Sites.Add(Url, siteTitle, siteDescription, lcid, siteTemplate, ownerLogin, ownerName, ownerEmail); newSiteCollection.Close(); newSiteCollection.Dispose(); site = GetRootSite(webApp); bool r = (site != null) ? true : false; return r; } catch { return false; } finally { if (site != null) site.Dispose(); }         } The exception is thrown when webApp.Sites.Add() is executed. The user we are logged in as, as wel the appID, are Farm Admin's. The ULS shows this exception: Exception thrown while fetching field by internal name 'Wiki_x0020_Page_x0020

Deploying a Custom Web Part

I created a custom web part using Visual Studio 2010.  I am able to add the web part to the default SharePoint site; however, the custom web part is not showing up in other sites on the same server.  I am using SharePoint 2010.  Any advice?

Deploying TFS2010 work item custom controls in Sharepoint portal

HI I have created work item custom controls for Web Access. I have placed the Dlls in Team Foundation Server 2010 -> Application Tier -> WebAccess -> Web -> WorkItemTracking -> Custom Controls. now, i am able to view the custom controls if i access through Team Web Access 2010. But i am unable to view the custom control when i acces through sharepoint 2007 portal. I have copied the dll and wicc file to following location C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\Tswa\CustomControls but i got the following error system.IO.FileLoadException: Could not load file or assembly. Please share me if the deployment procedure of custom controls in Sharepoint are different. Regards, Sekhar

How to migrate sharepoint site in 2007 with custom solution package and its content to sharepoint 20

Hi Experts, Recently, my organization is planning for SharePoint 2010 upgrade. We decide to go with Database content migration as it is less impact with down time due to hardware and software requirement (64 bit) in SharePoint 2010. We have a sub-site which contains a lot of customization such as master page, custom list, web parts and a lot of content. There is also a solution was built for that sub-site as well. However, as the time past by there quite a few update and manual creating from power users which concern to me that the solution package that we have does not up to date that can be use for SharePoint 2010 upgrade. I am planning to re-package the solution for the upgrade with all the changes users made for SharePoint 2010. But the question is how do I migrate the content of existing site when we upgrade to 2010? It is also possible that they want to change the sturction of the site when migrate eg: make this new upgrade site as top site collection instead of sub-site. Another concern is what happen after I finish making re-package the solution but during the re-package period users might make more change to the existing site? I would greatly appreciate for any ideas, suggestions as well as best methodology I should take.   Thanks praneth

Deploying sandboxed solution

When I am deploying my sandboxed solution with Power Shell it deploys globally as full trust and not as sandboxed (there is nothing in the solution gallery). Here is my script: ADD-SPSolution -LiteralPath $wspPath Install-SPsolution -Identity $SolutionId -Force:$true -GACDeployment:$true -Local:$true -WebApplication $UrlSiteCollection Enable-SPfeature -Identity $SiteCollectionItemsFeature -Force:$true -URL $UrlSiteCollection The solution is deployed as sandboxed from Visual Studio, but not from this script. Am I missing some option on Install-SPSolution?

Custom IP-STS - The trusted login provider did not supply a token accepted by this farm.

Similar to this thread , I am attempting to setup a Trusted Identity Provider for SharePoint 2010.  I have made it past all the errors in that thread to successfully get a token created with custom claims and have them placed in a token and successfully decrypted on the SharePoint side.  However, SharePoint doesn't like my unencrypted token. I have removed the bearer information from the token on the STS side but that didn't do anything.  I also remove the Microsoft.SharePoint.IdentityModel.SPSaml11SecurityTokenHandler and the SPPassiveIssuerNameRegistry, but still get the same error:   Exception information:     Exception type: FaultException     Exception message: The trusted login provider did not supply a token accepted by this farm.   Request information:     Request URL: http://sharepoint2010:777/_trust/default.aspx     Request path: /_trust/default.aspx     User host address: fe80::f1bd:4865:3597:c845/_trust     User:      Is authenticated: False     Authentication Type:      Thread account name: CONTOSO\administrator   Thread information:     Thread ID: 6     Thread account name: CONTOSO\administrator     Is impersonating: False     Stack trace:    at Microsoft.IdentityModel.Protocols.WSTrust.WSTrustClient.Issue(RequestSecurityToken rst, RequestSecurityTokenResponse& rstr)    at Microsoft.IdentityModel.Protocols.WSTrust.WSTrustClient.Issue(RequestS

Custom document library template at farm level.


Dear all..

I'm trying to create a custom document library template at farm level, as I want to template to be available in all the sites I create.

The thing is that I'm not sure if I'm taking the correct approach. I just need a standard document library with 3 additional columns (Metadata) 2 text fields and one date field. I will then add a document library of this type to a custom site template I've already created. (So instead of list with Type '101' I will use my custom 10055 library.

The way I'm trying to do this is:

1. I make a copy of the FEATURES\DocumentLibrary folder of my installation. So now I have FEATURES\CustomLibrary folder

2. I create an empty SharePoint project in Visual Studio 2010 and map the TEMPLATE folder, and the I add CustomLibrary folder and all the files and subfolders in it.

3. I edit the feature.xml, and add a newly generated GUID

4. I make the modifications I need to the other xml files included in the DocLib and SiteTemplates subfolders. (Type=10055, etc..)

5. I right click on the solution and deploy.


After this, I can't see my custom library when I try to create a new item in my sites. 

One thing I don't understand is why the OOTB DocumentLibrary feature has HIDDEN = true in the feature.xml file. Anyway I've tried both in my custom template, but

Deploying A Solution Issue

I am trying to create a column whereby i can generate a Unique ID for my documents. I have downloaded and installed the UniqueColumnPolicy.wsp from http://blogs.salmanghani.info/?p=570 and i can confirm that in the Central Admin Site under Solution Management the solution has been deployed globally, but i dont see the solution in the List Settings where the article says it should be??? Has anyone any ideas on this? Have i missed a step somewhere?
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend