MetadataException: The specified metadata path is not valid. RRS feed

  • Question

  • scusate ma ho da poco ripreso a dilettarmi nel programmare.
    ho fatto un sito ad un'amica su vs2012 e tutto funziona correttamente.
    quando pubblico il sito ottengo questo errore:

    MetadataException: The specified metadata path is not valid. A valid path must be either an existing directory, an existing file with extension '.csdl', '.ssdl', or '.msl', or a URI that identifies an embedded resource.]
       System.Data.Metadata.Edm.MetadataArtifactLoader.Create(String path, ExtensionCheck extensionCheck, String validExtension, ICollection`1 uriRegistry, MetadataArtifactAssemblyResolver resolver) +8439126
       System.Data.Metadata.Edm.MetadataCache.SplitPaths(String paths) +528
       System.Data.Common.Utils.<>c__DisplayClass4_0.<Evaluate>b__0() +23
       System.Data.Common.Utils.Result.GetValue() +123
       System.Data.Common.Utils.Memoizer`2.Evaluate(TArg arg) +328
       System.Data.EntityClient.EntityConnection.GetMetadataWorkspace(Boolean initializeAllCollections) +310
       System.Data.Objects.ObjectContext.RetrieveMetadataWorkspaceFromConnection() +25
       System.Data.Objects.ObjectContext..ctor(EntityConnection connection, Boolean isConnectionConstructor) +165
       Data.NewsEntities..ctor() +27
       Core.DAO.DaoRubrica.GetNewsHome(Int32 idcat) +95
       Core.BLEventi.GetNewsHome(Int32 idcat) +69
       UI.giuriska.Page_Load(Object sender, EventArgs e) +71
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
       System.Web.UI.Control.OnLoad(EventArgs e) +95
       System.Web.UI.Control.LoadRecursive() +59
       System.Web.UI.Control.LoadRecursive() +131
       System.Web.UI.Control.LoadRecursive() +131
       System.Web.UI.Control.LoadRecursive() +131
       System.Web.UI.Control.LoadRecursive() +131
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2952

    questa è la mia stringa di connessione:

    <add name="NewsEntities" connectionString="metadata=.\EF.csdl|.\EF.ssdl|.\EF.msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=;Initial Catalog= MSSql138008;Integrated Security=False;Connect Timeout=0;Encrypt=False;Packet Size=4096;User ID= MSSql138008;Password= w022xikc35;multipleactiveresultsets=True;application name=EntityFramework&quot;" providerName="System.Data.EntityClient" />

    saprestedirmi dove ho sbagliato?

    Wednesday, July 26, 2017 7:54 AM

All replies

  • Hi PasqualeCoppola,

    Since this forum is an English forum, I would suggest that you could post your issue in English, it will be beneficial to resolve the issue.

    Best regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    Wednesday, July 26, 2017 9:42 AM