0

I have developed one mvc 4 application and hosted on server and its working fine.but now i want to host this application on another plesk server 12.0.18 , but application shows following error

500 internal server error.there is a problem with the resource you are looking for,and it can not be displayed.

I have set custom error mode 'off' but still same error is occurring. I have two connection strings. If i specify connection string of another server then application is working fine and if i specify connection string of plesk database then error occurs again. So its about connection string.so i think entity framework not connecting to plesk database so is it about permission or what?

But i can connect with that database from web application they have provided by using my little admin for sql server.but not with connection string from application.

connection string 1 : home page is displayed and all events in global.ascx get called.like application_start , session_start etc.

connection string 2 : No events from global.ascx called.Gives 500 error

:

sunil pol
  • 1
  • 1
  • You should update your web config to turn off customErrors so that it can show you the detailed error information. – Shyju Dec 21 '15 at 03:42
  • 1
    Possible duplicate of [Deploying website: 500 - Internal server error](http://stackoverflow.com/questions/5385714/deploying-website-500-internal-server-error) – Timeout Dec 21 '15 at 03:48
  • no my problem is different.If i change database connection string then application is working fine.And if i give connection string of plesk server then it showing 500 error.Even Application start event or session start event is not calling. – sunil pol Dec 22 '15 at 14:27

0 Answers0