none
The tag 'Edmx' does not exist in XML namespace RRS feed

  • Question

  • I hope somebody can help debug my error.

    In VS2010 (RC) I have a solution including a
    1) console project (target Framework 3.5) and
    2) WPF project (target Framework 4)

    Both projects have a copy of an entities.edmx file.

    The WPF project builds and runs without an error.

    The console project validates the entities.edmx without any errors but
    generates the following errors on a build/run:

    Error 1 Markup file is not valid. Specify a source markup file with an .xaml extension.

    Error 2 The tag 'Edmx' does not exist in XML namespace 'http://schemas.microsoft.com/ado/2007/06/edmx'. Line 2 Position 12.

    Siggy

    Tuesday, April 27, 2010 10:37 PM

Answers

  • Hi Lingzhi

    Sorry, I did not notice your reply sooner.

    I had got around this error by ensuring that the 2 projects were targeting the same FW version but then generated the error regarding the inconsistency between the model and the class definitions (which I raised as a new question).

    So, to consolidate...

    This problem seems to occur when copying an edmx in the Solution Explorer pain from one project to another.

    The error seems to be avoided when setting the FW versions to be the same and then using the Add Item to replicate the edmx from one project to the other instead of the copy/paste action.

    Siggy

    • Marked as answer by Siggy01 Friday, April 30, 2010 1:51 AM
    Friday, April 30, 2010 1:50 AM

All replies

  • Hi Siggy,

     

    Glad to see you again!

     

    First, could you please try the solution in VS2010 RTM?   It could be some potential issue in the RC version.   Besides, if it is convenient for you to send the demo project to me, I am very glad to help you debug this problem.   My mail address is v-micsun@microsoft.com.   

     

    Good day!

     

     

    Best Regards,
    Lingzhi Sun

    MSDN Subscriber Support in Forum

    If you have any feedback on our support, please contact msdnmg@microsoft.com


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Wednesday, April 28, 2010 9:09 AM
    Moderator
  • Hi Lingzhi

    Sorry, I did not notice your reply sooner.

    I had got around this error by ensuring that the 2 projects were targeting the same FW version but then generated the error regarding the inconsistency between the model and the class definitions (which I raised as a new question).

    So, to consolidate...

    This problem seems to occur when copying an edmx in the Solution Explorer pain from one project to another.

    The error seems to be avoided when setting the FW versions to be the same and then using the Add Item to replicate the edmx from one project to the other instead of the copy/paste action.

    Siggy

    • Marked as answer by Siggy01 Friday, April 30, 2010 1:51 AM
    Friday, April 30, 2010 1:50 AM
  • Nice to hear that! 

    Good day!


    Best Regards,
    Lingzhi Sun
    MSDN Subscriber Support
    in Forum
    If you have any feedback on our support, please contact
    msdnmg@microsoft.com.  


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Wednesday, May 5, 2010 8:55 AM
    Moderator