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

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

Uploading Office 2003 files are set to Folder Content Type

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

Hi All,

Been pulling my hair out trying to figure this one and am hoping that you are able to help.

Have been putting together a new SP2010 Standard environment and have gone as far as creating some sites, sub sites and generating Content Types and assigning to Doc Libraries etc.

The problem comes when we are attempting to upload existing Office 2003 files, namely Word .doc files, and only happens on specific libraries, this is not across the board.

 When we upload an existing 2003 file to the affected library, we are not able to set any meta data to the file as SharePoint registers the Content Type as a Folder as seen in the properties of the file:


Description: cid:image001.png@01CB5A4C.D9F0EA90


However, if we upload a pre-existing Office 2010 .docx, we get the full array of Meta Data and the correct Content Type has been assigned.


Do any wonderful people have any clues as to what could be causing this?


Thanks in advance

View Complete Post

More Related Resource Links

WSS 3.0 Content Type with Office 2007


We're currently encoutering an issue on our production servers with Office 2007 documents. In essence, the Content Type for all docx, xslx, and pptx documents cannot be changed away from the site default on all newly created sites.

I've even done some step by step debugging on an SPItem insert and I can set the content type to a custom type, but it reverts back to the site's default Content Type on Update(). Other file types - .doc, .xls, .tif, .txt, and .jpg - have all been tested, and all work as expected (the Content Type changes correctly).

Thanks in advance!


Sharepoint Content Type - Folder

Hi Everyone,

 Please help me urgent..!

 I have the following content types

  ShareDoc Document     
  Program or Project Folder    
  Secure Folder 

I am creating nested folder in sharepoint document library in my project.
I created one folder name is "Test" and content type "Program or Project".If i create a subFolder , the content type of subFolder is "Program or Project".Becuase it is taking default parent content type.But i want to change the content type to "Folder".Please give me solution to reslove it.

Shiva Reddy.P

Folder Content Type in Document Set



Is it possible to include a Folder Content Type as the  default content , when a new instance of Document Set content type is created ? If so, how can we do this?


How to Link to a Document content type but linking to a Folder

I have implemented the known "Link to a Document" content type to a Document Library (referenced below).  This works fine to documents, but we need to also enter UNC paths to Folders like file://\\servername\sharename\foldername

We can NOT create shortcuts to these folders, which is a work around someone else published.

If you add the Hyperlink field it allows you to enter a UNC path to externally stored folder just fine. So there must be some way to make this Link to a Document content type also open UNC Folders accurately.


Code Snippet
function HasValidUrlPrefix_Override(url)
            var urlLower=url.toLowerCase();
            if (-1==urlLower.search("^http://") &&
            -1==urlLower.search("^https://") && -1==urlLower.search("^file://"))
            return false;

Adding New Custom Folder Content Type doesn't show up on the Document Library New Menu


I been trying to add new custom folder content type to the document library programatically in my sandbox environment and it does show up on the document library. But, when I move same code to the almost similar configured SP2010 environment, adding new folder content type to the document library doesn't show up on the document library's new menu.

Here is the code? Since this code works fine in my sandbox environment, is there any other settings I should check on the server environment which would cause hiding content type on new menu of document library.

  class Program
    static void Main(string[] args)
      SPSite spSite = new SPSite("http://sp2010vm");
      foreach (SPWeb spWeb in spSite.AllWebs)
        spWeb.AllowUnsafeUpdates = true;

        //For each site, cycle through lists
        bool isDocLibraryExists = false;
	      foreach(SPList spList in spWeb.Lists)
          if(spList.Title == "Classified Documents")
             isDocLibraryExists = true; 
        if(isDocLibraryExists == true)
          //Create new doc library
          SPList splist = spWeb.Lists["Classified Documents"];

          //Create Content Type
          SPContentType documentContentType = spWeb.AvailableContentTypes["Classified Documents Folder"

problem copying list item containing office 2007 files, fine with office 97-2003 format



I created 2 document libraries, with a few fields in it, one of it is the people and group field named "Approver".  The thing is, when the document is of 97 - 2003 format, the approver field gets copied over fine, but when is of 2007 format, it does not get copied, its only the people and group column, I tried different names like Hidden_Approver, but yet it does not get copied. Am I doing something wrong here, and have anyone else faced the same error

difference between folder content type and creating new folders in sharepoint list 2007


Hi All,

i want to know what is the difference between creating a folder content type and creating new folder in a list.

After creating a Floder Content Type add this to list i am little bit confiused ,means i can also do it by creating a simple folder to the list.

any help regarding this will appreciated...

Thanks and Regards Er.Pradipta Nayak

Creating a "content type" folder structure


Hey all:


I'd like to enable users to create a folder structure for their project management by the click of a button, but I'm having trouble getting it to work.  For instance, the user would go to a document library and click "New... -> Project Management Folder".  Inside this newly created PM folder, it would already have several subfolders created such as "Requirements", "Business Modeling", "Analysis & Design", etc.


The first way I thought of to accomplish this is through a custom content type, inheriting from the Folder.  However this doesn't enable me to establish a structure.


Does anyone have any ideas?





Custom and Folder content type problem



Does anyone have any idea why some documents in a document library would be added as a Folder content type, whereas others as the default content type of the library???


docx added as DefaultContentType

doc as Folder

pdf as DefaultContentType

ppt as Folder

Of all the things I ever lost, I miss my mind the most.

Office Apps: Integrate VSTO with SharePoint Content Types


See how to build a document-level Visual Studio Tools for Office customization and integrate it with a content type in SharePoint.

Steve Fox

MSDN Magazine May 2008

Advanced Basics: Office 2007 Files and LINQ


LINQ to XML and the Microsoft SDK for Open XML Formats simplify access to the parts of a 2007 Office system Open XML document when retrieving or modifying data, resulting in shorter, less complex code.

Ken Getz

MSDN Magazine March 2008

Office Space: Building Office Open XML Files


This new column explores how you can extend and customize Microsoft Office System applications and file formats.

Ted Pattison

MSDN Magazine February 2007

Smart Tags: Realize the Potential of Office 2003 by Creating Smart Tags in Managed Code


While you may well be excited about the prospect of building managed smart tags, there is little information available to help you create them using .NET. In this article the author fills in the blanks. Along the way he discusses the Microsoft Office Smart Tag List XML schema, advanced managed smart tags for Office 2003 and Office XP, and deploying these features in an organization.

Ben Waldron

MSDN Magazine February 2005

Office 2003: Secure and Deploy Business Solutions with Microsoft Visual Studio Tools for Office


Microsoft Visual Studio Tools for the Microsoft Office System is a new technology that brings the advanced features of Visual Studio .NET and the .NET Framework to applications built for Microsoft Office Word 2003 and Microsoft Office Excel 2003. Deploying solutions built with this technology requires that you understand how runtime security is enforced in managed applications and how to configure users' systems to run your solutions without introducing security holes.To promote that understanding, this article will demonstrate how to establish trust, explain policy considerations and permissions, and explain what trusted code is all about. Secure assembly deployment is also covered in detail.

Brian A. Randell and Ken Getz

MSDN Magazine March 2004

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