Entity framework 没有实体框架6的概念架构

Entity framework 没有实体框架6的概念架构,entity-framework,Entity Framework,我使用的是EntityFramework6.0.2的最新版本,带有.NET4.0网站和模型优先的方法。在我的本地机器上一切正常,但是当把站点上传到我的Web服务器时,我得到了一个解析器错误 分析器错误消息:没有要作为资源嵌入的概念架构节点 源错误: [无相关来源行] 源文件:/App\u代码/smsmsmodel.edmx行:0 <?xml version="1.0" encoding="utf-8"?> <edmx:Edmx Version="3.0

我使用的是EntityFramework6.0.2的最新版本,带有.NET4.0网站和模型优先的方法。在我的本地机器上一切正常,但是当把站点上传到我的Web服务器时,我得到了一个解析器错误

分析器错误消息:没有要作为资源嵌入的概念架构节点 源错误: [无相关来源行]

源文件:/App\u代码/smsmsmodel.edmx行:0

         <?xml version="1.0" encoding="utf-8"?>
    <edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
      <!-- EF Runtime content -->
      <edmx:Runtime>
        <!-- SSDL content -->
        <edmx:StorageModels>
          <Schema xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl" Namespace="Model.Store" Alias="Self" Provider="System.Data.SqlClient" ProviderManifestToken="2005">
            <EntityContainer Name="ModelTargetContainer" >
            </EntityContainer>
          </Schema>
        </edmx:StorageModels>
        <!-- CSDL content -->
        <edmx:ConceptualModels>
          <Schema xmlns="http://schemas.microsoft.com/ado/2009/11/edm" xmlns:cg="http://schemas.microsoft.com/ado/2006/04/codegeneration" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" Namespace="Model" Alias="Self" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" annotation:UseStrongSpatialTypes="false">
            <EntityContainer Name="ModelContainer" annotation:LazyLoadingEnabled="true">
              <EntitySet Name="Companies" EntityType="Model.Company" />
            </EntityContainer>
            <EntityType Name="Company">
              <Key>
                <PropertyRef Name="Id" />
              </Key>
              <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
            </EntityType>
          </Schema>
        </edmx:ConceptualModels>
        <!-- C-S mapping content -->
        <edmx:Mappings>
          <Mapping xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs" Space="C-S">
            <Alias Key="Model" Value="Model" />
            <Alias Key="Target" Value="Model.Store" />
            <EntityContainerMapping CdmEntityContainer="ModelContainer" StorageEntityContainer="ModelTargetContainer">
            </EntityContainerMapping>
          </Mapping>
        </edmx:Mappings>
      </edmx:Runtime>
      <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
      <edmx:Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
        <edmx:Connection>
          <DesignerInfoPropertySet>
            <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
          </DesignerInfoPropertySet>
        </edmx:Connection>
        <edmx:Options>
          <DesignerInfoPropertySet>
            <DesignerProperty Name="ValidateOnBuild" Value="true" />
            <DesignerProperty Name="EnablePluralization" Value="True" />
            <DesignerProperty Name="CodeGenerationStrategy" Value="None" />
          </DesignerInfoPropertySet>
        </edmx:Options>
        <!-- Diagram content (shape and connector positions) -->
        <edmx:Diagrams>
        </edmx:Diagrams>
      </edmx:Designer>
    </edmx:Edmx>


您能提供您的代码吗?来自edmx的代码?太长了。我用第一行编辑我的文章。需要查看EDMX中是否存在CSDL内容部分。@阿尔瓦罗加西亚当然我们只需要相关代码,而不是所有代码。我删除了所有内容,现在我只有一个实体,得到了相同的错误。现在我发布所有的edmx代码。