.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

When using a custom theme, there is no custom files added to "_themes" directory.

Posted By:      Posted Date: October 27, 2010    Points: 0   Category :SharePoint

I've been working on customizing some Sharepoint 2010 Team sites and have read through many helpful articles on how to create and edit custom themes. The most consistent method is to create a base theme in Powerpoint which I've done.

I then install this THMX file in the themes library and apply it to my pages which seems to work as expected. The one inconsistency with what these articles say and what is happening on my end is that there is no numbered directory created in the "_themes" directory when I view All Files. These articles explain that this directory is created every time you apply a theme to your site so you can further edit the images and CSS associated with the theme. All I see in this "_themes" directory is "Custom.thmx, CustomPreview.thxm."

Is there some site setting or permissions issue I should look into to have this directory available to me?


View Complete Post

More Related Resource Links

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?

Custom OperationDescription not added to the WsdlContractConversionContext

Hello, I have developed a custom IWsdlExportExtension in which I add a pseudo operation to the wsdl file:   // operationDescription has been initialized here context.Contract.Operations.Add(operationDescription); // add behaviors to the operationDescription, such as OperationBehaviorAttribute, DataContractSerializerOperationBehavior However if I open the WSDL file I get the following exception: System.InvalidOperationException: An exception was thrown in a call to a WSDL export extension: System.ServiceModel.Description.DataContractSerializerOperationBehavior contract: http://tempuri.org/:IEntityService ----> System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.Collections.Generic.Dictionary`2.get_Item(TKey key) at System.ServiceModel.Description.MessageContractExporter.GetMessageName(MessageDescription messageDescription) After I downloaded the WCF source code I found out that the problem is in the following call - GetOperation is the one that throws the KeyNotFoundException: Operation op = context.GetOperation(operationDescription); Now I would expect that after addition the operationDescription to context.Contract.Operations I can then retrieve the respective Operation from the context. However this is not the case. In WsdlContractConversionContext there is the AddOperation functions which adds the mapp

Keeping Custom properties in GridView Added on OnRowDataBound Event While Sorting

All of my columns are bound in the Gridview. On OnRowDataBound event, I am adding some custom styles like underlines and colors to the text of the columns. Sorting of data is working fine but I am losing my custom styles when I sort. I am using the generic sorting code for the GridView. How I can keep my custom styles on sorting that I added during OnRowDataBound event.   Thanks for your help.

How does one create context-sensitive custom help files?

We are an ISV and would like to know how to add a feature to our solution that uses the existing help functionality to display help based on the user type and context of that user type in the system.  I have been searching to no avail, if there is a How-To article somewhere I'd love a link! Thanks, -Torrance R. MillerIntegrating the future into today

Deploying a custom theme as a farm solution

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?

Unable to reference custom XSL files in a custom ContentQuery WebPart



I'm doing a custom ContentQuery WebPart but i'm having difficulties referencing my XSL styles. I've googled a bit and tried to store the custom XSL files in the /Style Library/XSL Style Sheets/ and referencing them like this

<property name="MainXslLink" type="string" >/Style Library/XSL Style Sheets/CQWebPartMain.xsl</property>

and since i read SharePoint might have not be able to use SiteCollection relative urls i tried this:

<property name="MainXslLink" type="string" >http://my-dev-site/Style Library/XSL Style Sheets/CQWebPartMain.xsl</property>

and my first approach was:

<property name="MainXslLink" type="string" >/UIResources/CQWebPartMain.xsl</property>

Custom theme appears in Theme Gallery but not in site theme chooser

I have a custom theme that I have uploaded to the two sites that I am configuring. In both cases, the theme appears in Theme Gallery, but not on Site Settings > Site Theme. How do I fix this?

Custom Workflow Error: The Workflow files were saved but cannot be run


Hi all,

I'm wondering if someone would have any suggestions on how I can troubleshoot this custom workflow issue.

Recently we can't attach any SharePoint Designer workflow to any list in a farm. We get this error message:

"Errors were found when compiling the workflow. The workflow files were saved but cannot be run. Unexpected error on server associating the workflow"

The standard workflows from UI seems to be working fine. Also user defined workflow is enabled. In the past I was able to fix similar issue with another farm following this post (remvoing SP designer custom workflow activities entries)- but does not look like this is the case this time.

Nothing in the logs regarding this error. Any suggestions would be greatly appreciated.

Many thanks!


Why would a control not respond to mouse clicks when added to a custom canvas


   I have a custom UserControl that contains a grid and toolbar.  When I add this control to a custom drag canvas, it does not respond to MouseClick events.
   I suspected the custom drag panel as it overrides UIElement.OnPreviewMouseLeftButtonDown and sets e.Handled = true but commenting out line that sets e.Handled to true does not allow control process mouse clicks.
   If, however, I derive my custom control from Popup, it sees mouse clicks as toolbar button commands are executed. 
   What am I observing?

Custom directory Management service


hi,I want to customize the way contatc is created in AD by sharepoint when an email address is assigned to it.

for example, when an email address is assigned, it creates contact in AD but without Email address. I would like to update that Email address and other propperties like disply name when a contact is created.

Additionally I want t create folder structure (Container/SubContainer) which imitates Sharepoint contact's hierarchy.

like if on share point server list is created at home> subsite >myList. I want my contact to be created as homecontainer>subsitecontainer :contact, where homecontainer, subsitecontainerare containers in Active directory.

Using custom code on report services to check if directory does exist or not (need help)


I am trying to check if a directory does exist.  I have used the vb.net to create a very small function and embedded into the "Custom code:" section of Report Properties.  It’s output is a return of Y or N (string) or 1 or 0 (Integer) if directory exist or not. 

Here is the code which returns a String

    Function ifDirExist(ByVal mypath As String) As String

        Dim flag As String

        If Not System.IO.Directory.Exists(mypath) Then

            flag = "N"

Files won't download from ASP.NET site when the site has a custom HTTP Handler mapped to the file e


When I have a HttpHandler class in C#/ASP.NET mapped to a file extension in IIS any file with that extension fails to download/display in web browsers (it's downloaded as a 0-byte file in some browsers and nothing at all in other browsers).  After removing the application mapping for the HttpHandler in IIS so it doesn't call the IHttpHandler class in C#, the web browser downloads the file successfully.

This was tested with an IHttpHandler class in C# that has an empty ProcessRequest method. Any ideas on what the problem could be?

How to create a custom log in page which validates both active directory and membership provider use


Hi All,

Am having the following environment:

Windows Server r2 2008,Sql server 2008 r2,Active Directory and SqlMembership provider,sharepoint server 2010,sharepoint foundation 2010 with the same domain.

I created two web applications one by using sharepoint server 2010 (Power users site)and other with sharepoint foundation 2010(General Users site). Both web applications uses same Active Directory. Power users reside in Active Directory and general users in SqlMembership provider.Am having a link in general users site to power users site which can be accessible by power users only.

Now My requirement is creating a custom log in page for Sharepoint foundation 2010 site which validates both AD users and sqlprovider users and when power user logged in,the link to power users should be visible and should not prompt for log in again as they both are using same Active Directory.When general user logged in the link should not be visible.

Please Help me out for solving this issue.

Claims Based Authentication and Custom Apps in _layouts Directory


Hello everyone,

When we originally setup our SharePoint 2010 installation, we used Windows Classic Authentication. We have since built a couple of custom applications using VS2010 and deployed them to the _layouts directory. These apps query information from our ERP system and display them on a web page. We keep this inside of SharePoint to be consistent with the look and feel of the rest of the intranet.

We had a consultant come in to help with some other items with our SharePoint install and we converted to Claims Based Authentication. Now, when trying to use these custom applications, they ask for a username and password when you submit the information to query. When you provide the info, it does not authenticate and fails after three attempts. Does anyone know what additional steps are necessary for these apps to use the Claims Based Security Tokens? I've scoured the internet for two days looking for answers and haven't come up with anything useful.

Custom Controls in C# .NET

Embedding user controls in a Windows form is just like adding a simple button or text box that are already provided with .NET. These basic controls were written essentially like you code your own controls. Typically the controls you design are to be used in multiple forms or to modularize your code. These reasons help reduce the amount of code you have to type as well as make it easier for you to change your implementation. There should almost never be any reason to duplicate code because it leaves a lot of room for bugs. So, implementing functionality specific to your control in the control's source code is a good idea. This reduces code duplication as well as modularize your code, which is a good programming guideline.

Writing custom MembershipProvider

ASP.NET Membership mechanism allows to use the build-in server tables to store and retrieve user data. By default, this mechanism can only be used with SQL Server database to which Microsoft provides suitable MembershipProvider class.
Inheriting from this abstract class, developer can use his own table(-es) from any database and use any database engine other than SQL Server, like Oracle, DB2 etc.
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