0

I compiled a WPF application on Visual Studio 2015 and built a Release. 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.

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"".

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?

Edit: It would be awesome if I can fix their existing Release without having to build and install a new one.

Community
  • 1
  • 1
Khalil Khalaf
  • 9,259
  • 11
  • 62
  • 104
  • Do you have full details of the exception (with innerexceptions)? – Cinchoo Oct 05 '16 at 14:39
  • @RajNagalingam No, not before I visit them. I have a logger on their machine but there is no internet coverage to communicate with SO. – Khalil Khalaf Oct 05 '16 at 14:39
  • Just a guess, may be you ask the user to remove the config files from appdata folder (ex. C:\\Users\\{username}\\AppData\\Local\\COMPANY NAME\APPLICATION NAME\APPLICATION VERSION folder) – Cinchoo Oct 05 '16 at 14:44

1 Answers1

0

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.

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.

Richard
  • 106,783
  • 21
  • 203
  • 265
  • Hi Richard and thanks. Q: Can I fix their existing Release without having to build and install a new one? – Khalil Khalaf Oct 05 '16 at 14:38
  • @FirstStep You'll need to try (I know I've found documentation about having the EDMX, or at least the files derived from it, outside an assembly: but it would be serveral years ago). – Richard Oct 05 '16 at 15:00