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=&quot;data source=|datadirectory|\geodata.sdf&quot;" 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

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -