Resolving the "Unable to load the specified metadata resource" Error When Using a Devart Entity Model

I recently made use of a Devart Entity Model to allow me to use LINQ with an Oracle database and to get around an issue when using views with Entity Framework 4.1. Everything worked well...until the code was deployed. When running on my local PC (either through Visual Studio or from another site under my local IIS) the code worked without a problem. But when built using our build machine, I would receive the "Unable to load the specified metadata resource" exception when trying to call a service method that made use of the entity model.

When I used IL DASM (ildasm.exe) to examine the manifests of the assembly built locally versus the one built on the build machine, I found that, indeed, the resources for the Devart Entity Model were not present in the assembly manifest of the assembly that was built on the build machine.

The solution -- and it's not a good solution -- was to install the Devart developer tools on the build machine. Again, this is not a good solution -- one would expect that having the required assemblies referenced by the project would be enough. But no. It's also concerning that the app would build on the build machine and not throw an exception concerning the Devart Entity Model -- it would build without a problem, but would fail to include the required information in the assembly manifest.

Comments

Popular Posts

Resolving the "n timer(s) still in the queue" Error In Angular Unit Tests

Silent Renew and the "login_required" Error When Using oidc-client

How to Get Norton Security Suite Firewall to Allow Remote Desktop Connections in Windows

Fixing the "Please add a @Pipe/@Directive/@Component annotation" Error In An Angular App After Upgrading to webpack 4

How to Determine if a Column Exists in a DataReader