locked
Unable to build/run app. Multiple entries of 'Microsoft.Data.Edm/CsdlParser_InvalidMultiplicity' found._ RRS feed

  • Question

  • Hello,

    I'm developing a Windows Store App with C# and since yesterday I haven't been able to build it or implement it, I made some changes in code, but I still cannot find what causes the problem, even after reverting the last changes I made before it failed.

    These are the errors I get.

    Error	2 Multiple entries of 'Microsoft.Data.Edm/CsdlParser_InvalidMultiplicity' found.	
    
    Error	1 Processing Resources with error: Error no especificado	

    I have no idea what they mean or what they are referring to, so I decided to get the output in diagnostic mode to see more details.

    1>El archivo de entrada "obj\Debug\priconfig.xml" es más reciente que el archivo de salida "C:\EysPro\EysBonaControlCalidadViseras\EysBonaVis\bin\Debug\resources.pri".
    1>Se omitió la tarea "GetMakepriExeFullPath" debido a una condición falsa (False); ('$(_ActualMakePriExeFullPath)' == '') se evaluó como ('C:\Program Files (x86)\Windows Kits\8.0\bin\x86\MakePri.exe' == '').
    1>Usando la tarea "GenerateProjectPriFile" del ensamblado "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\AppxPackage\Microsoft.Build.AppxPackage.dll".
    1>Tarea "GenerateProjectPriFile" (TaskId:321)
    1>  Parámetro de tarea:MakePriExeFullPath=C:\Program Files (x86)\Windows Kits\8.0\bin\x86\MakePri.exe (TaskId:321)
    1>  Parámetro de tarea:PriConfigXmlPath=obj\Debug\priconfig.xml (TaskId:321)
    1>  Parámetro de tarea:SecondPassIndexFile=obj\Debug\resources.resfiles (TaskId:321)
    1>  Parámetro de tarea:ProjectPriIndexName=486de8d1-ae8e-4e48-8de2-5d9c591a33ef (TaskId:321)
    1>  Parámetro de tarea:ProjectDirectory=C:\EysPro\EysBonaControlCalidadViseras\EysBonaVis\ (TaskId:321)
    1>  Parámetro de tarea:OutputFileName=C:\EysPro\EysBonaControlCalidadViseras\EysBonaVis\bin\Debug\resources.pri (TaskId:321)
    1>  Parámetro de tarea:LanguageQualifiersPath=obj\Debug\LanguageQualifiers.txt (TaskId:321)
    1>  C:\Program Files (x86)\Windows Kits\8.0\bin\x86\MakePri.exe New -ProjectRoot C:\EysPro\EysBonaControlCalidadViseras\EysBonaVis\ -ConfigXml obj\Debug\priconfig.xml -OutputFile C:\EysPro\EysBonaControlCalidadViseras\EysBonaVis\bin\Debug\resources.pri -IndexName 486de8d1-ae8e-4e48-8de2-5d9c591a33ef -Verbose -Overwrite   (TaskId:321)
    1>  Option Verbose specified (TaskId:321)
    1>  Option Overwrite specified (TaskId:321)
    1>  Index Pass Completed: obj\Debug\layout.resfiles (TaskId:321)
    1>   (TaskId:321)
    1>  Index Pass Completed: obj\Debug\resources.resfiles (TaskId:321)
    1>   (TaskId:321)
    1>  Index Pass Completed: obj\Debug\pri.resfiles (TaskId:321)
    1>  Language Qualifiers: en, EN-US, ZH-HANT, ZH-HANS, RU, KO, JA, IT, FR, ES, DE (TaskId:321)
    1>   (TaskId:321)
    1>MakePri : error 0x80004005: Processing Resources with error: Error no especificado
    1>   (TaskId:321)
    1>   (TaskId:321)
    1>MakePRI : error 0xdef00030: Multiple entries of 'Microsoft.Data.Edm/CsdlParser_InvalidMultiplicity' found.
    1>  El comando salió con el código -2147467259. (TaskId:321)
    1>Ejecución de la tarea "GenerateProjectPriFile" terminada -- ERROR. (TaskId:321)
    1>Compilación terminada del destino "_GenerateProjectPriFileCore" en el proyecto "EysBonaVis.csproj" -- ERROR.: (TargetId:117)
    1>Se omitió el destino "_CheckForCompileOutputs". Compilado previamente de forma correcta.
    1>Se omitió el destino "_SGenCheckForOutputs" debido a una condición falsa (False); ('$(_SGenGenerateSerializationAssembliesConfig)' == 'On' or ('@(WebReferenceUrl)'!='' and '$(_SGenGenerateSerializationAssembliesConfig)' == 'Auto')) se evaluó como ('Off' == 'On' or (''!='' and 'Off' == 'Auto')).
    1>Destino "_CleanGetCurrentAndPriorFileWrites: (TargetId:118)" en el archivo "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets" del proyecto "C:\EysPro\EysBonaControlCalidadViseras\EysBonaVis\EysBonaVis.csproj" (el destino "_CleanRecordFileWrites" depende de él):
    1>Usando la tarea "ReadLinesFromFile" del ensamblado "Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".


    I don't know that it means, or what I have to do, I tried to look after the error codes 0x80004005 and 0xdef00030

    I really hope somebody can help me, this is driving me insane.

    Thank you in advance for any help.


    • Edited by amorales51 Thursday, July 17, 2014 7:43 PM
    Thursday, July 17, 2014 7:42 PM

Answers

  • Sorry for my delay in answering back, I have struggled with this problem this week and the whole office was set in fire by angry customers due to the delay in the release, but I'm pleased to say that it's working now. How? I'm not sure actually, after many failed attempts to get my references working, one day it simply decided was time to compile again.

    I would like to give a more detailed description of what I did, but I can't. I removed everything and I re-added everything back, I stumbled upon these messages again.

    Payload contains two or more files with the same destination path 'es\Microsoft.Data.Edm.Portable.resources.dll'. Source files:
    
    [Project Path]\bin\Debug\AppX\es\Microsoft.Data.Edm.Portable.resources.dll
    
    [Solution Path]\packages\Microsoft.Data.Edm.5.6.1\lib\portable-net40+sl5+wp8+win8\es\Microsoft.Data.Edm.Portable.resources.dll
    
    
    

    Payload contains two or more files with the same destination path 'es\Microsoft.Data.Edm.Portable.dll'. Source files:
    
    [Project Path]\bin\Debug\AppX\Microsoft.Data.Edm.Portable.dll
    
    [Solution Path]\packages\Microsoft.Data.Edm.5.6.1\lib\portable-net40+sl5+wp8+win8\Microsoft.Data.Edm.Portable.dll  

    But this time removing the one in the AppX folder fixed it, it's confusing, but at least it works. Sometimes I wish Windows 8 wasn't this picky, but as long as it doesn't break again, I will be happy.

    Thank you very much for your help and time!

    • Marked as answer by amorales51 Wednesday, July 30, 2014 12:49 AM
    Tuesday, July 29, 2014 7:11 AM

All replies

  • Hi amorales51,

    Seems the question is not on your code but somewhere in you app setting or even system configuration.

    However the error code looks like a system level issue, could you try to run the debug in another machine to see if it works?

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Friday, July 18, 2014 6:57 AM
    Moderator
  • Hi James, thank you for your answer,

    I tried with another machine, with no avail, same problem.

    I also tried using Visual Studio 2013 on that machine and I got this.

    3>  Index Pass Completed: obj\Debug\resources.resfiles (TaskId:523)
    3>   (TaskId:523)
    3>  Index Pass Completed: obj\Debug\pri.resfiles (TaskId:523)
    3>  Language Qualifiers: en, EN-US, ZH-HANT, ZH-HANS, RU, KO, JA, IT, FR, ES, DE (TaskId:523)
    3>   (TaskId:523)
    3>MakePri : error 0x80073b0f: Processing Resources with error: Entrada duplicada.
    3>   (TaskId:523)
    3>   (TaskId:523)
    3>MakePRI : error 0xdef00532: Conflicting values for resource 'Microsoft.Data.OData/WriterValidationUtils_MissingTypeNameWithMetadata'
    3>  El comando salió con el código -2147009777. (TaskId:523)
    3>Ejecución de la tarea "GenerateProjectPriFile" terminada -- ERROR. (TaskId:523)
    3>Compilación terminada del destino "_GenerateProjectPriFileCore" en el proyecto "EysBonaVis.csproj" -- ERROR.: (TargetId:320)
    3>  Language Qualifiers: en, EN-US, ZH-HANT, ZH-HANS, RU, KO, JA, IT, FR, ES, DE (TaskId:523)
    3>   (TaskId:523)
    3>MakePri : error 0x80073b0f: Processing Resources with error: Entrada duplicada.

    This one says, duplicated entry, but I don't know what is duplicated, also I don't know how to fix the other error (0xdef00532) 

    - Alejandro 

    EDIT:

    I also tried to create a new solution and copy and re-create everything, but the result is the same :(
    • Edited by amorales51 Friday, July 18, 2014 5:34 PM
    Friday, July 18, 2014 5:32 PM
  • Hi amorales51,

    I saw your app contains two en language package (en and EN-US), could that be the reason? System cannot identify which English could be used in your current system, then the error thrown?

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Saturday, July 19, 2014 1:52 AM
    Moderator
  • Maybe that's the duplicate, but I don't know how that happened, since the app is entirely made in Spanish.

    However, how can I change that? sorry if I'm asking a dumb question but I'm a newbie in Win 8, but where can I see the language packages for the app? 

    Again thanks for your time and help, it's appreciated :) 

    Saturday, July 19, 2014 6:55 AM
  • Hi amorales51,

    Normally if we add multi language support we will follow the documentation: Globalizing your app. Could you check if there are some file exist on your project.

    You could also create a blank appto see if the same thing happens, maybe you mis set something in your current project.

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Monday, July 21, 2014 8:43 AM
    Moderator
  • Hi James, thank you again for your answer.

    My application is intended for a company's internal use and not for widespread distribution, so globalization is not intended and Spanish is the application sole language (it is also my system default language). Is the lack of globalization resources causing the problem? I readed the documentation described on the link you gave me, and many of the files created in the globalization process are absent from my app.

    However, a newly created clean application, compiles and runs just fine.

    I tried to create a new app from scratch and move the contents from my app to the new one, without avail, I also tried to remove some project references, clean and rebuild, and the errors went away but I can't tell if the errors were removed because of this or they simply don't appear because the application fails to compile due to the missing references before the original error comes up.

    I really appreciate your help,

    - Alejandro

    Monday, July 21, 2014 5:55 PM
  • Hi amorales51,

    I cannot explain why but looks like you can continue with your work. There could be many possibilities to have this problem for instance you when you build the app you do not have enough privilege for the specific folder like bin/debug or maybe your version control system add something to the project or etc..

    Anyway I will mark your reply as answer since you build from scratch solve the problem.

    --James 


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.


    Tuesday, July 22, 2014 6:55 AM
    Moderator
  • Sorry if there was a misunderstanding, what I meant is that I tried to re-build the application from scratch, but that didn't work either. One of my internal projects conforming my solution seems to be causing the problem, however, I don't know how to debug it or where to search, I haven't done any language support so I'm missing many of the files or configuration the globalization documentation mentions, however, despite missing the language support the application was working properly a week ago, the only thing I changed was a few lines of code, and changed a property in an entity model, however, reversing the changes did not solve the problem :(

    I'm still dealing with the problem and I don't know what else to do, I can't test anymore with Visual Studio 2013 to see what changes, it won't take my Dreamspark license and I no longer have access to the machine that had it installed.

    I'm sad because I was about to send it to be tested by its final user, but I can't because I'm not even able to build the application. :(



    EDIT:

    OK, I somehow managed to get a different pair of errors now, which seems more easy to solve, however I still need some help, my projects contain references to WCF Data Services originally I used version 5.0.0.0 because 5.6.0 had issues I was unable to work with, but I replaced it with 5.6.1 and all my projects compile properly now except for the Windows 8 app (which is my main project, others are just for data consumption and other logical layers, etc.)

    The errors I get now on my project are:

    Payload contains two or more files with the same destination path 'es\Microsoft.Data.Edm.Portable.resources.dll'. Source files:
    
    [Project Path]\bin\Debug\AppX\es\Microsoft.Data.Edm.Portable.resources.dll
    
    [Solution Path]\packages\Microsoft.Data.Edm.5.6.1\lib\portable-net40+sl5+wp8+win8\es\Microsoft.Data.Edm.Portable.resources.dll


    Payload contains two or more files with the same destination path 'es\Microsoft.Data.Edm.Portable.dll'. Source files:
    
    [Project Path]\bin\Debug\AppX\Microsoft.Data.Edm.Portable.dll
    
    [Solution Path]\packages\Microsoft.Data.Edm.5.6.1\lib\portable-net40+sl5+wp8+win8\Microsoft.Data.Edm.Portable.dll    




    Both errors being on file Microsoft.AppXPackage.Targets line 379 Column 9 on my main project. The mentioned line on that file is:


    <RemoveDuplicatePayload Inputs="@(_LibrariesUnfiltered)">
                <Output TaskParameter="Filtered" ItemName="_Libraries" />
    </RemoveDuplicatePayload>


    I don't know what it is or if I have to change it in some way, however, if I try to move Microsoft.Data.Edm.Portable.dll somewhere else out of my project, no matter which copy, it goes back to it's original state.

    Error	5	Multiple entries of 'Microsoft.Data.Edm/CsdlParser_InvalidMultiplicity' found.	C:\[Project Path]\MakePRI	[Main Project]
    

    and

    Error	4	Processing Resources with error: unspecified error	C:\[Project Path]\MakePri	[Main Project]
    

    I'm stuck again there.






    • Edited by amorales51 Tuesday, July 22, 2014 7:28 PM More details....
    Tuesday, July 22, 2014 4:37 PM
  • Sorry if I misunderstanding something in my last post.

    Probably the problem is on 'Microsoft.Data.Edm/CsdlParser_InvalidMultiplicity' this one, but i'm not sure.

    I would invite you to share your package with me for a further analysis if agree and there is no important information contains, or could you reproduce the issue by creating a new app? Share with me by OneDrive is more preferred.

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Wednesday, July 23, 2014 7:50 AM
    Moderator
  • Sorry for my delay in answering back, I have struggled with this problem this week and the whole office was set in fire by angry customers due to the delay in the release, but I'm pleased to say that it's working now. How? I'm not sure actually, after many failed attempts to get my references working, one day it simply decided was time to compile again.

    I would like to give a more detailed description of what I did, but I can't. I removed everything and I re-added everything back, I stumbled upon these messages again.

    Payload contains two or more files with the same destination path 'es\Microsoft.Data.Edm.Portable.resources.dll'. Source files:
    
    [Project Path]\bin\Debug\AppX\es\Microsoft.Data.Edm.Portable.resources.dll
    
    [Solution Path]\packages\Microsoft.Data.Edm.5.6.1\lib\portable-net40+sl5+wp8+win8\es\Microsoft.Data.Edm.Portable.resources.dll
    
    
    

    Payload contains two or more files with the same destination path 'es\Microsoft.Data.Edm.Portable.dll'. Source files:
    
    [Project Path]\bin\Debug\AppX\Microsoft.Data.Edm.Portable.dll
    
    [Solution Path]\packages\Microsoft.Data.Edm.5.6.1\lib\portable-net40+sl5+wp8+win8\Microsoft.Data.Edm.Portable.dll  

    But this time removing the one in the AppX folder fixed it, it's confusing, but at least it works. Sometimes I wish Windows 8 wasn't this picky, but as long as it doesn't break again, I will be happy.

    Thank you very much for your help and time!

    • Marked as answer by amorales51 Wednesday, July 30, 2014 12:49 AM
    Tuesday, July 29, 2014 7:11 AM