Tuesday, August 16, 2011

An entity object cannot be referenced by multiple instances of IEntityChangeTracker.

I got this error due to using separate context object for an entity. I had to use same context object to perform multiple operations in Entity .

Friday, August 12, 2011

Request Error

Getting generic request error while browsing ?Set the includeExceptionDetailInFaults = true in web.config in order to get some descriptive error message.

Specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider

I got this error when i was trying to browse the WCF data Services. The resolution for this issue was to define the connection string for database defined in in app.config file to the web.config file of the web application.

In Nutshell , below is my scnerio :

Project 1 : Contains the .edmx and app.config file

Project 2 : Contains the .SVC referencing entity model defined in project 1 and web.config file

Resolution :
Copy the Db connection defined in app.config to web.config under configuration section .

Why do we use np.random.seed()

This is a simple function but to my surprise lot of ML engineers had asked me about the actual usage of this function and why do I use it wh...