XML Error! RRS feed

  • Question

  • User1421620300 posted

    Can someone please help me to correct issues with website. I have just built new website code is complete. I built database and then connected to model. But after building and running project, browser throws error that i am not familiar with. Everything in my site is clean and it has nor compile errors. Can some give direction into this XML error because this is my first time seeing this one. Thanks, Markus.


    Tuesday, April 21, 2020 8:56 PM


  • User-1330468790 posted

    Hi Markus33,


    I think you are using Entity framework to access database. The problem might located in the connection string. It might be a valid ADO.NET connection string but not a valid ADO.NET Entity Framework(EF) connection string.

    The error message shows that the inner error is "Keyword not supported: data source".

    That means you might add connection string like below format:

    <add name="ASPNETDBEntities" 
         connectionString="Data Source=XXXX;Initial Catalog=ASPNETDB;Integrated Security=True;" 
         providerName="System.Data.EntityClient" />

    However, the EF connection string should looks like:

    <add name="NorthwindEntities" connectionString=
          provider connection string=&quot;Data Source=SERVER\SQL2000;Initial Catalog=Northwind;Integrated Security=True;MultipleActiveResultSets=False&quot;" 
          providerName="System.Data.EntityClient" /> 

    For more details about EF connection string, you could refer to this link.


    Hope this can help you.

    Best regards,


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, April 22, 2020 5:20 AM