Search code examples
asp.netasp.net-mvcsql-server-2008deploymentdatacontext

Object reference not set to an instance of an object-datacontext


I am trying to publish asp.net mvc site on remote server I am getting the error as shown in figure. Any idea


Solution

  • I solved it the problem was that in the designer file connection name was different then that of web.config. Once both name are same it started running fine.