I have a tough problem. I want to make a .dll that is “netload”-ed inside AutoCAD 2012 and I want to use EF + SQL Server CE 4.0 Private Installation in order to be able to XCopy the program.
I don’t want to install SQL Server CE 4.0 on the client machine so I have chosen the Private Installation. The problem is that it relies on config file which is not an option here because I want XCopy the program only!
I am using the nuget package EntityFramework.SqlCompact. Whatever I try I get an
unable to find the requested .net framework data provider
exception inside AutoCAD, because AutoCAD has its own config which is almost empty.
Is there any way to configure the app to use the locally copied dll-s without config at all? Is there a way to include another config?
I can post example code too.
This error is caused by Entity Framework, not SQL Compact, as EF relies on the DbProvider configuration. So if you use classic ADO.NET instead for data access, private deployment will work, otherwise you must have this in your app.config: