Skip to main content

Posts

Showing posts from May, 2012

Entity framework Deployment : Keyword not supported: 'provider connection string'

Error: Entity framework Keyword not supported: 'provider connection string'. http://msdn.microsoft.com/en-us/library/cc716709%28v=vs.90%29.aspx To copy model and mapping files to the output directory Double-click the .edmx file in Solution Explorer . The file opens in the Entity Designer. Right-click an empty section of the design surface and select Properties . The Visual Studio Properties window appears. Set the value of the Metadata Artifact Processing property to Copy to Output Directory . And the other issue could be the Connection Strings:  There are two of them.  ADO connection string: <add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient" /> Entit...

MVC3 Entity FrameWork4 Error: {"Store update, insert, or delete statement affected an unexpected number of rows (0). Refresh ObjectStateManager entries."}

ERROR: {"Store update, insert, or delete statement affected an unexpected number of rows (0). Entities may have been modified or deleted since entities were loaded. Refresh ObjectStateManager entries."} CAUSE: Some fields of Entity is not passed back from the Strongly Typed Views to the Entity. FIX: You have to make sure all Non Nullable fields are atleast in the 'Hidden' Field in the View , if the view is tightly bound to the direct Entity Model.