c# - MetadataException in Release Build -
my program uses ef access data sql ce database. when debug application using debug setup works fine if use release setup metadataexception when program tries access database through ef. i've checked far: debug , release configuration identical (same target platform) the app.config copied same directory executable (\release) the sdf database file copied \release\ metadata artifact processing set embed in output assembly connection string name identical in app.config , ef model my app.config: <?xml version="1.0"?> <configuration> <connectionstrings> <add name="geodataentities" connectionstring="metadata=res://*/model.ef.model.csdl|res://*/model.ef.model.ssdl|res://*/model.ef.model.msl;provider=system.data.sqlserverce.3.5;provider connection string="data source=|datadirectory|\geodata.sdf"" providername="system.data.entityclient" /> </connectionstrings> <s...