ASP.Net will display 500 if you do not have the customErrors property set to everything, or it is set to On .
Add this to web.config to find out what the actual error is:
<customErrors mode="Off" />
Once you know what the actual error is, you can fix it.
source share