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> <startup> <supportedruntime version="v4.0" sku=".netframework,version=v4.0" /> </startup> </configuration>
the assembly model.ef namespace , model name of edmx, think should right.
i know there lot of posts , blogs metadataexception , i've tried solve nothing have worked far.
best regards
jay
i don't know i've done it's working since i've checked in , checked out tfs.
Comments
Post a Comment