I made ASP.NET MVC web application and uploaded it to GoDaddy. Whenever I change the connection string in the web.config to data source=[Server IP];initial catalog=[Database Name];user id=[Username];password=[Password];
, I get this error
500 - Internal server error.
If I made it like this data source=[Server IP];initial catalog=[Database Name];integrated security=true;
, I get the following error -which is expected since the database is on a different server than the web application-
Login failed. The login is from an untrusted domain and cannot be used with Windows authentication.
So, it seems that the problem is somehow related to the integrated security
part. Also it's working without issues on my local machine, and I cann connect to the database server using the same credentials I use in the web.config file.
How can I solve this issue?