Click here to Skip to main content
15,881,027 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
<add name="abcEntities" connectionstring="metadata=res://*/Models.Model1.csdl|res://*/Models.Model1.ssdl|res://*/Models.Model1.msl;provider=MySql.Data.MySqlClient;provider connection string=" server=";port=3306;Database=mydatabase;Uid=username;Pwd=mypass""" providername="System.Data.EntityClient">

What I have tried:

I am using the above code and i am geeting the error:Server error
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.
Please help!
Updated 15-Aug-19 1:26am
F-ES Sitecore 15-Aug-19 6:41am    
You need to debug the code to find the actual error and the line that throws it. 500 is just a generic "something went wrong" message, it doesn't tell you anything in itself.

1 solution

500 is a generic error. You'll have to do some digging to find the actual error. Check the event viewer. If not there, then add error handling and more logging so you can track down what the issue is.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900