none
Once Updating the WCF service reference Runtime.Serialization changed to Xml.Serialization RRS feed

  • Question

  • Before update the service reference,reference class 

    ********************************************************************************************

            
    // <auto-generated>
    //     This code was generated by a tool.
    //     Runtime Version:4.0.30319.296
    //
    //     Changes to this file may cause incorrect behavior and will be lost if
    //     the code is regenerated.
    // </auto-generated>
    //------------------------------------------------------------------------------

    namespace {
        using System.Runtime.Serialization;
        using System;


        [System.Diagnostics.DebuggerStepThroughAttribute()]
        [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
        [System.Runtime.Serialization.DataContractAttribute(Name="", Namespace="http://schemas.datacontract.org/2004/07/." +
            "")]
        [System.SerializableAttribute()]

    After updating the service reference 

    ***********************************************************************************************

            
    //     This code was generated by a tool.
    //     Runtime Version:4.0.30319.18444
    //
    //     Changes to this file may cause incorrect behavior and will be lost if
    //     the code is regenerated.
    // </auto-generated>
    //------------------------------------------------------------------------------

    namespace  {
        using System.Data;


        /// <remarks/>
        [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.18408")]
        [System.SerializableAttribute()]
        [System.Diagnostics.DebuggerStepThroughAttribute()]
        [System.ComponentModel.DesignerCategoryAttribute("code")]
        [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.datacontract.org")]

    I want to use the runtime Serialization when the service is updating 
    Tuesday, August 12, 2014 4:56 AM

Answers

  • I found the solution my self its coming from DocumentFormat.OpenXml dll,

    if we removed the dll, References file update correctly

    • Marked as answer by Eranda Dev Tuesday, September 9, 2014 5:08 AM
    Tuesday, September 9, 2014 5:08 AM

All replies

  • Hi,

    It will be better if you can tell me how you update your WCF service reference.

    Maybe when you want to update the service reference, you can try to use the Add Service Reference again for instead.

    Best Regards,
    Amy Peng


    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.


    Wednesday, August 13, 2014 10:26 AM
    Moderator
  • we are using ASP.net for our Web Client,then we are adding the WCF service using that add service reference, early it was updated  by correctly from  runtime Serialization,but after install the 4.5.1 framework it's getting XML Serialization,still we have this problem 

    Friday, September 5, 2014 4:35 AM
  • I found the solution my self its coming from DocumentFormat.OpenXml dll,

    if we removed the dll, References file update correctly

    • Marked as answer by Eranda Dev Tuesday, September 9, 2014 5:08 AM
    Tuesday, September 9, 2014 5:08 AM