Webconfig in configuration <connectionStrings></connectionStrings> as follows:
<connectionStrings>
<add name= "goodpanentities" connectionstring= "metadata=res://*/goodpan.csdl|res://*/goodpan.ssdl|res://*/ Goodpan.msl;provider=system.data.sqlclient;provider Connection String="data Source=.\sqlexpress;initial catalog= database name; persist Security info=true;
User id= users; password= password; Multipleactiveresultsets=true; app=entityframework" "providername=" System.Data.EntityClient "/>
</connectionStrings>
After the configuration in the local operation, after uploading to the server error, the data source=.\sqlexpress, to the server IP operation is normal.
<connectionStrings>
<add name= "goodpanentities" connectionstring= "metadata=res://*/goodpan.csdl|res://*/goodpan.ssdl|res://*/ Goodpan.msl;provider=system.data.sqlclient;provider connection string="data source= server ip;initial catalog= database name; persist Security info=true;
User id= users; password= password; Multipleactiveresultsets=true; app=entityframework" "providername=" System.Data.EntityClient "/>
</connectionStrings>
ASP. NET MVC4 configuration database connection related issues