简体   繁体   English

在哪里可以找到我的应用程序的.EDMX文件?

[英]Where can I find the .EDMX file of my application?

I compiled a WPF application on Visual Studio 2015 and built a Release. 我在Visual Studio 2015上编译了WPF应用程序并构建了发行版。 The customer has been using this Release for maybe two months by now with no whatsoever issues. 到目前为止,客户已经使用此发行版大约两个月了,没有任何问题。

Today they called saying that the application can not be started and that it is showing this error: 今天他们打电话说该应用程序无法启动,并且显示此错误:

The provider did not return a ProvideManifest instance. 提供程序未返回ProvideManifest实例。

I have never seen this error before. 我从未见过此错误。 I am researching and gathering information before I visit the customer on site, and almost all these questions: 在拜访客户之前,我正在研究和收集信息,以及几乎所有这些问题:

Are saying that I need to " open the EDMX file with notepad and change ProviderManifestToken="2012" to ProviderManifestToken="2008" ". 就是说我需要“ 用记事本打开EDMX文件,并将ProviderManifestToken =“ 2012”更改为ProviderManifestToken =“ 2008” “。

However, I am not being able to find that file. 但是,我找不到该文件。 Neither in the Release folder that the customer currently have, nor in the Project Solution that I have. 客户当前拥有的“发布”文件夹中以及我拥有的“项目解决方案”中都没有。

Along with the other solutions that I found when researching, I must try the above one. 除了研究时发现的其他解决方案外,我还必须尝试上述解决方案。 But where can I find the .EDMX file? 但是,在哪里可以找到.EDMX文件?

Edit: It would be awesome if I can fix their existing Release without having to build and install a new one. 编辑:如果可以在不构建和安装新发行版的情况下修复其现有发行版,那就太好了。

Normally – ie. 通常-即。 unless it has been customised in the project – the EDMX will be a resource in the assembly built by the project including the model. 除非已在项目中对其进行了自定义,否则EDMX将成为项目(包括模型)构建的装配件中的资源。

It can be a separate file, but you'll need to change the connection string from its default which uses a specific notation to say "look in assemblies": 它可以是一个单独的文件,但是您需要更改连接字符串的默认值,该字符串使用特定的符号表示“在程序集中查找”:

metadata=res://*/ProjectName.csdl|res://*/ProjectName.ssdl|res://*/ProjectName.msl

to point to EDMX as a separate file. 指向EDMX作为单独的文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM