Visual Studio 2013 deploying incorrectly the content types of a document library

Hello everyone. 
I created a SharePoint farm solution in VS 2013. I add four content types (say, C1, C2, C3, C4, based on the Document content type) and I create a couple of document libraries (say, L1, L2). Now I add C1 and C2 to L1, and add C3 and C4 to L2. 
When I deploy the solution from VS, I go to the site and found out that L1 has C1 and C2, as expected. However, L2 has C1 and C2 instead of C3 and C4. 
I have reviewed for hours the xml files (Elements, Schema, etc.) and all IDs seem to be correct and all properties are in order. 
Has anyone come across a problem like this? Any thoughts will be really appreciated, as I'm clueless and frustrated at this point, after hours of dealing with this problem. 
Thanks in advance!
Best regards
Fernando A. Gómez F.
fermasmas.wordpress.com
Galería de ejemplos

Hi Sohel, thanks for your reply. 
No, I don't add them programmatically, I added the "Content Type" and "List" items to the VS solution. It generated some files, including Elements.xml and Schema.xml. Then I used the integrated VS designers to add the content types to
the list. A very run-of-the-mill solution, I think, nothing too fancy. 
One thing I noticed is that I created a feature, and everytime I add a new list, instead of using the existing feature, it creates a new one, which I delete, and then add the list to the existing feature using the designer. 
Finally, something weird happened today. I opened my VS, opened the solution and there was several feature files created out of the blue by the VS. I thought something was messed up with the Visual Studio Online connection, but it happens anyway when working
in disconnected mode. 
Fernando A. Gómez F.
fermasmas.wordpress.com
Galería de ejemplos

Similar Messages

  • Can't Create New Excel Project Visual Studio 2013 Office Tools The Project Cannot Be Created

    I am having this issue on two computers. If I try to create an Excel 2013 Workbook C# in new projects, and choose create a new workbook, it starts to open Excel, and then I get this error in VS
    I have tried:
    Uninstall & Reinstall of VSTO from the Visual Studio Installer
    Uninstall & Reinstall of Visual Studio 2013 Ultimate, (manually removing anything with visual studio that was left over)
    Manually turning on the add-on Visual Studio Tools for Office Design-Time Adapter for Excel
    Installing VSTO by hand
    Enabling Macros
    Running VS as administrator
    Uninstalling & Reinstalling Office 2013 Pro Plus OLP
    I have made this change to excel:
    Like I said, this problem occurs on TWO pc's.  I have tried 2013 Visual Studio R1 and R2.  Does anyone have any ideas?
    Edit 3-1-2015
    There is still no answer to this, I have tried target frameworks:
    4.0
    4.5
    4.51
    And Running as Administrator.  Recently I upgraded to the CTP of Visual Studio 2015 Ultimate and the same problem exists.

    Thanks for the reply.
    The issue is not reproducible for me and I can confirm this not a known issue. We might need to do deeper troubleshooting at the repro machines.
    Because of its complexity your question falls into the paid support category which requires a more in-depth level of support.  If the support engineer determines that the issue is the result
    of a bug the service request will be a no-charge case and you won't be charged. Please visit the below link to see the various paid support options that are available to better meet your needs.
    http://support.microsoft.com/default.aspx?id=fh;en-us;offerprophone
    Sangeeth,MSFT

  • Incorrect Infopath content type update in form library after modifying Infopath form and publish it

    I have an admin approved InfoPath form. I added new fields to that form and mapped those new fields with site columns. After uploading updated published form through CA, I noticed InfoPath Site content type for that form got updated (with newly added fields)
    under Microsoft_Infopath group. This content type is also added in form library but somehow the new fields are updated incorrectly for this content type existing in form library (it doesn't show new fields, and shows one new field which is incorrectly
    mapped with other column this is happening only in library). 
    Things I tried:
    - Activate/Deactivate that content type feature
    - Deactivated feature, removed form from CA, re uploaded and activated feature
    - Removed those new fields and published and uploaded InfoPath form and then added those new fields and published and uploaded again.
    -Deleted those fields from InfoPath and readded new fields and published and uploaded form but still the problem persists.
    Any help will be appreciated.
    Dhaval Raval

    Hi Thanks for the response,
    But Update all content types inheriting from this type is already checked.
    That form library has multiple content types associated with it , different infopath forms get submitted there. What I noticed is that when I change the form and publish it, its corresponding site content type gets updated but the same content type used
    in form library doesn't get updated properly. I went to form library and checked that erroneous content type, there were some columns missing and one column was mapped incorrectly. When I clicked on "Parent" content type, it was showing all the new Infopath
    fields(updated content type). So I figured that Infopath site content type was getting updated correctly but it was not able to propagate those updates (in a correct way) to the form library. I also tried to edit that content type and tried adding existing
    site columns which were missing but surprisingly it was not showing those site columns either, which were mapped from Infopath publishing.
    The cause for this behavior is : changes/updates to the Infopath content type are not getting propagated to the form library and this is happening for only one infopath content type but other Infopath content types are getting updated.
    I had to delete all the forms using that erroneous content type and then had to delete that content type from the library and then re-added that Infopath content type to the library and this time it was having correct content type (updated columns).
    This is not a perfect solution for the production environment, sounds like it is a bug.
    Dhaval Raval

  • Unsupported: This version of Visual Studio does not have the project types

    I recently created a new virtual machine with the exact same step-up as my previous virtual machine. When I open my .sln files i get the following message:
    Here are the spec for VS 2012

    Hi,
    Based on the message, the VS Pro 2012 on your new VM does not support that project type. So what type of Visual C# project is the WriteToJS project? Which edition of Visual Studio did you create this project from? What .net framework is this project targeted?
    Please make sure this VS supports such project in order to work with this project fine in VS Pro 2012.
    I recommend that you check whether the same project template exists from File->New->Project->Visual C# in VS2012 Professional with Update 4 on the new VM. If the same project template exists, please create a new project to check whether the template
    project can be created successfully.
    Thanks,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to create a Article Page content type to a Document Library

    Hi,
    I'm developing Sharepoint App using Visual Studio it has a Custom Document Library. I need to create a content type like ArticlePage and integrate with the Document Library.
    Can you please help in this
    Thanks

    Hello Pallavi,
    You can't do this by OOTB or Customization of existing field programmatically. We
    can set the enforce uniqueness for the indexed columns only.
    You can try to write event handler for same ..
    Best
    Regards Kuldeep Verma
    Please remember to click "Mark As Answer" if a post
    solves your problem or "Vote As Helpful" if it was useful.  

  • Compare and differentiate the contents in between versions - Document Library

    I want to compare the version updates and  the content of a document which stored in document library using document version.
    For example: one word document has 3 versions, 
    Version 1.0 contents : Please
    Version 2.0 contents : Please Help
    Version 3.0 contents : Please Help Me
    Now, either the difference of these version should be highlighted like Version 2.0 in Help, Version 3.0 as Help Me.
    Need to generate a report of comparison between the document and display the difference in contents.
    Thank you

    Hi Karthik,
    use the following:
    http://blogs.msdn.com/b/ericwhite/archive/2008/06/14/openxmldiff-exe-a-utility-to-find-the-differences-between-two-open-xml-documents.aspx
    or this
    http://groupdocs.com/blog/groupdocs-comparison-for-net-c-sharp-diff-library-for-comparing-text-files
    or this
    http://msdn.microsoft.com/en-US/library/microsoft.office.tools.word.document.compare(v=VS.80).aspx
    private void DocumentCompare()
    object compareTarget = Word.WdCompareTarget.wdCompareTargetNew;
    object addToRecentFiles = false;
    this.Compare("C:\\Docs\\Sales1.doc", ref missing, ref compareTarget,
    ref missing, ref missing, ref addToRecentFiles, ref missing,
    ref missing);
    Kind Regards,
    John Naguib
    Technical Consultant/Architect
    MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation
    Please remember to mark your question as answered if this solves your problem

  • Windows 7 with SharePoint 2013 Foundation and Visual Studio 2013

    Hi,
    I am begginer with Sharepoint 2013 Foundation. 
    My company installed Sharepoint 2013 Foundation on a virtual Server. I installed
    Visual Studio 2013 on my local computer. Also i created a developer site.
    Based on http://msdn.microsoft.com/en-us/library/office/jj220047(v=office.15).aspx#RDOverview I installed Office
    Developer Tools for Visual Studio 2013 on my local computer. 
    I am trying to remotely develop apps
    with Visual Studio 2013. In the option What SharePoint site do you want to use for debugging your App? i put the url
    of developer site.
    First of all, i had to choose if the apps will be SharePoint-hosted or Provider-hosted apps. Based on http://msdn.microsoft.com/en-us/library/office/fp142379(v=office.15).aspx and http://msdn.microsoft.com/en-us/library/office/fp142381(v=office.15).aspx,
    i decided to followed SharePoint-hosted because is the only type that applies to SharePoint 2013 Foundation.
    I followed the steps of http://msdn.microsoft.com/en-us/library/office/fp142379(v=office.15).aspx, which is the quide for How to:Create a basic SharePoint-hosted app. In Step 10 for deploy my app i get the following error: 
    Error occurred in deployment step 'Install app for SharePoint': Failed to install app for SharePoint. Please see the output window for details.
    What is the problem?
    Also, the visual studio need to be installed on the server where sharepoint was installed?
    Moreover, do I need app catalog for testing and deploy apps?
    thanks, Aphrodite

    Hi,
    According to your post, my understanding is that you have an issue about creating app.
    Per my knowledge, the issue is caused that you don’t configure the app catalog URLs from the central administration.
    It means that we should create an App site catalog site collection to hold our Apps.
    More reference:
    http://www.sharepoint-journey.com/app-development-in-sharepoint.html
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Cannot connect to SharePoint online to create SharePoint App in Visual Studio 2013

    I have an Office 365 account and I am trying to create a SharePoint App via Visual Studio 2013 Here are the steps:
    1. Open VS 2013 and select Office/SharePoint > App for SharePoint (type the name) then click OK
    2. I type in URL of the site (of course https://) and Select SharePoint-Hostedoption, then click Finish 
    3. I get the Office 365 authentication dialog box.
    I type in the username and password and it opens the SharePoint in the same rectangular dialog box and it stays there and nothing happens:
     link :  i.stack.imgur.com/USYcG.png
    link :   i.stack.imgur.com/rlUpJ.png
    If I click the close icon on the Connect to SharePoint dialog box that still shows my SharePoint online site, I get the following error :
    link:  i.stack.imgur.com/p1ztW.png
    If I click on OK I get the Connect to SharePoint dialog box again
    Link :  i.stack.imgur.com/ZgyW9.png

    Hello,
    I'd ask in the
    Office 365 Community.
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book: Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C40686F746D61696C2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • Library not registered error in Visual Studio 2013.

    Whenever I attempt to build a solution, build multiple projects, or even run a program (with debugging) in visual studio 2013, I receive the error below.
    "Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))"
    I have attempted to fix this by repairing my Visual Studio installation, but without success. 
    I believe the issue to be with Visual Studio itself, though, because this happens with every solution I have tried it with.
    Any assistance in resolving this issue would be most appreciated.

    Hi ndowney,
    Based on your issue, could you please tell me if you install some other tools on your machine before you get the ""Library not registered" error?
    (1) If yes, please you disable or un-install these tools and then build solution/project check this issue again.
    (2)If no, to check if the issue is related to the VS IDE, please refer the following steps to check this error message.
    (2.1) I suggest you could try the following commands to check if it is helpful.
    a.  Run devenv /Safemode to see if you can apply it correctly. This can eliminate the possibility that third party Add-ins or packages are causing problems.
    b. Run devenv /Resetsettings to eliminate the cause of corrupted settings.
    c. Run devenv /ResetSkipPkgs in Command Prompt.
    If above still cannot work, try use this command again: devenv /resetsuerdata
    (2.2) If the above suggestion still could not help you, maybe you will need to re-install the VS2013 and then check this issue again.
    If you have any latest message about your issue, please tell me.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Setting the content type inside the ABAP mapping.

    Hello All,
    Can any one help me by telling me how to set the content-type inside ABAP mapping. I have searched a large no of blogs and help.sap.com for the same.
    My requirement is I want to change the MIME type of the Main Document in side SXMB_MONI so that can change the content type of Main document which is application\xml by default.
    I would appreciate an early response regarding the same.
    Abinash

    Hello Raj,
    The output of my ABAP mapping is a flat file. So when I try to open the file with content type application/xml in the message monitor it shows the file has some error which is natural. The way to get around this problem is change the content type to application\txt from application\xml.
    I am not finding an option to set the content type inside the ABAP mapping for the same.
    Abinash

  • Deploy app in Visual Studio 2013 error

    When i try to deploy my app in Visual Studio 2013 i get this error:
    Error occurred in deployment step 'Install app for SharePoint': We're sorry, we weren't able to complete the operation, please try again in a few minutes. If you see this message repeatedly, contact your administrator.
    What could the problem be?

    Hi,
    The following steps for your reference:
    1. Grant DOMAIN\myApp_Admin accont a sysadmin server role on SQL server
    2. Open SharePoint Power Shell and execute Add-SPShellAdmin <DOMAIN\myApp_Admin> command.
    3. Grant DOMAIN\myApp_Admin a db_owner rights to web application Content database that you would like to use for debugging SharePoint 2013 app.
    4. Make sure following roles are assigned for SharePoint_Config database
       SharePoint_Shell_Access
       SPDDataAccess
       public
    5. Make sure following roles are assigned for SharePoint_Content database
       db_owner
    6. Make sure following roles are assigned for SharePoint_AdminContent database
       public
    More information:
    http://sharepointinterface.com/2012/12/21/whaddaya-mean-i-cant-deploy-my-sharepoint-app/
    https://kolliparachandra.wordpress.com/2014/09/02/apps-development-visual-studio-issues/
    Best Regards,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Visual Studio 2013 does not rebuild all code resulting in old code deployed through wsp

    I recently converted my SharePoint 2010 project from Visual Studio 2010 to Visual Studio 2013. I have the Premium version with Update 1.
    I quickly noticed that 2013 has bugs. For instance I could get a build error out of nowhere while developing, stating that a method recently added to Class
    A used by Class B, does not exist. The only way to resolve is to restart Visual Studio. Sometimes a rebuild would do the trick too.
    I can live with such quirks as a developer. The big problem is that it does not build the latest version if you are using the "Publish to File System"
    to get a wsp for deployment on another server.
    I've had problems with incomplete builds since my first deploy with wsp built by Visual Studio 2013, but I was not able to pinpoint it with certainty until
    last night.
    I have two classes used by a timer job. In a new version they back up some files after using them. After upgrading with the new wsp, I restarted the timer
    job service on all servers and ran the job, but the files did not back up. So I went and added a log statement to the backup code of one class and did another clean/rebuild/publish to file system from Visual Studio. I upgraded using the new wsp and then restarted
    the timer job service on all servers. When I ran the timer job service, the class where I added the log statement backed up the files it should. The other class still did not. So I added a log statement to this class as well and deployed that. Then this class
    started to backup files too.
    So I conclude that Visual Studio 2013 is failing at its core in a very dangerous way leaving assemblies built in an unknown, incomplete limbo state.
    I am downgrading all projects to Visual Studio 2012.
    This post is mainly to share my experience with the community, but if someone at Microsoft wants to investigate the issue, here is a suggestion on how to reproduce:
    Have Visual Studio in Debug build.
    Make a change to a class in a SharePoint project.
    Deploy the change to a local SharePoint installation.
    Change to Release build.
    Use Publish to file system to get a wsp. Open this wsp, copy the assembly, reflect and investigate to see that code change is actually there.
    Tore Olav Kristiansen

    Hi,
    As this is a Visual Studio question, I suggest you post it to Visual Studio Forum, you will get more help and confirm answers from there.
    http://social.msdn.microsoft.com/Forums/en-US/home?category=visualstudio
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • Type of license to be purchased for Visual Studio 2013 to be used with Visual Studio Online Subscription

    Dear Sir/Madam,
    For commercial use, I have subscribed for Visual Studio Online. To work with .NET code on my local machine, what type of Visual Studio license do I need to purchase/install locally. It gives me two options to download on home page. 1) Visual Studio
    2013 Community Edition 2) Visual Studio 2013 Ultimate Edition
    I am more interested to that can I use "Visual Studio 2013 Community Edition" with VS Online subscription for commercial use? If not then what type of Visual Studio edition do I need to purchase to use with VS Online subscription?
    Thank you
    Uday

    Hi,
     For Best answer to your question, i would suggest you contact a Support Professional from the Microsoft Billing Department.
     You can create a free Support ticket for the same here :
    http://azure.microsoft.com/en-in/support/options/
     Or you can also contact a Microsoft Licensing Specialist : 1-800-426-9400, Monday through Friday, 6:00 A.M. to 6:00 P.M. (Pacific Time)
    Regards,
    Nithin Rathnakar.

  • 2013 Exchange, Can't connect to Exchange Management Shell. It cannot determine the content type of the HTTP response from the destination computer.

    The following error occurs.
             Welcome to the Exchange Management Shell!
    Full list of cmdlets: Get-Command
    Only Exchange cmdlets: Get-ExCommand
    Cmdlets that match a specific string: Help *<string>*
    Get general help: Help
    Get help for a cmdlet: Help <cmdlet name> or <cmdlet name> -?
    Show quick reference guide: QuickRef
    Exchange team blog: Get-ExBlog
    Show full output for a command: <command> | Format-List
    Tip of the day #0:
    Did you know that the Identity parameter is a "positional parameter"? That means you can use:
     Get-Mailbox "user" instead of: Get-Mailbox -Identity "user"
    It's a neat usability shortcut!
    VERBOSE: Connecting to mail1.dorothy.local.
    New-PSSession : [mail1.dorothy.local] Connecting to remote server mail1.dorothy.local failed with the following error
    message : The WinRM client cannot process the request. It cannot determine the content type of the HTTP response from
    the destination computer. The content type is absent or invalid. For more information, see the
    about_Remote_Troubleshooting Help topic.
    At line:1 char:1
    + New-PSSession -ConnectionURI "$connectionUri" -ConfigurationName Microsoft.Excha ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
       gTransportException
        + FullyQualifiedErrorId : -2144108297,PSSessionOpenFailed
    Exception calling "GetComputerSite" with "0" argument(s): "The Specified directory object cannot be found."
    At C:\Program Files\Microsoft\Exchange Server\V15\bin\ConnectFunctions.ps1:164 char:2
    +     $localSite=[System.DirectoryServices.ActiveDirectory.ActiveDirectorySite]::GetC ...
    +    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
        + FullyQualifiedErrorId : ActiveDirectoryObjectNotFoundException
    Failed to connect to an Exchange server in the current site.
    Enter the server FQDN where you want to connect.: mail1.dorothy.local
    VERBOSE: Connecting to mail1.dorothy.local.
    New-PSSession : [mail1.dorothy.local] Connecting to remote server mail1.dorothy.local failed with the following error
    message : The WinRM client cannot process the request. It cannot determine the content type of the HTTP response from
    the destination computer. The content type is absent or invalid. For more information, see the
    about_Remote_Troubleshooting Help topic.
    At line:1 char:1
    + New-PSSession -ConnectionURI "$connectionUri" -ConfigurationName Microsoft.Excha ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
       gTransportException
        + FullyQualifiedErrorId : -2144108297,PSSessionOpenFailed
    Randy Cheek

    Good Morning,
    Log into the server with an account that has appropriate Exchange rights, not a local account.  
    Note: By default - Domain Admins don't have Exchange rights.
    Dame Luthas, ITILv3, MCSE Messaging 2013, MCSA, MCITP
    My Technical Blog: http://thelifestrategist.wordpress.com
    Discipline is the Difference between Goals and Accomplishments
    If this post is useful, please hit the green arrow on the left & if this is the answer hit "mark as answer"

  • I've installed Visual Studio Enterprise 6.0, Which edition of Visual Studio 2013 does the i need to purchase as the legalization for Visual Studio Enterprise 6.0?

    I've installed Visual Studio Enterprise 6.0, Which
    edition of Visual Studio 2013 does the i need to purchase as the legalization for Visual Studio Enterprise 6.0? 

    Hi,
    Here is a topic for MS Visio forum, you'd better post your question to Visual Studio forum.
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=visualstudiogeneral&filter=alltypes&sort=lastpostdesc
    Thanks for your understanding.
    Regards,
    George Zhao
    TechNet Community Support

Maybe you are looking for

  • How do I save a filled out form in pdf?

    Won't let me save, says its read only or someone else has open.  We've checked, no one else has it open and I"m doing Save As.  Help

  • Java.sql.Date in MM/dd/yyyy

    How to convert a string or Date in yyyy-MM-dd pattern to java.sql.Date in MM/dd/yyyy ?

  • How to invoke SMS notification script from Siebel aplication.

    Hi I have a binary file written in shell script which i have placed in my siebel server(Linux platform) and i have executed it by providing Mobile number and message as parameters for sending SMS notifications. I am able to send SMS successfully. Now

  • OLT Agent Communication Error

    Hi, I have recorded load test script using openscript, ran the script within openscript its working fine. But not able to run in OLT. (installed OATS 9.1) Settings: Java client mode JVM size: 1024 When I launch the load test it gives me the following

  • Can you create more region display points??

    There are a number of region display ponts ie Page Template Region Position 1, Page Template Region Position 2.........> Page Template Region Position 8. Is it possible to create another ie Page Template Region Position 9 which is directly below 8???