0
I published a WEB application (developed in C#
) in Azure using a database, it turns out that when I try to run it through the domain provided by Azure, it gives me the following error:
"Server Error in '/' Application."
"Login failed for user '{my name}'".
From what I understand the error has to do with access to data.
When I test the connection in Visual Studio, before making the publication, it does not give me any error. I can also access the server through Server Object Explorer without any problem. I’ve done a lot of research and tried a lot of things, but nothing seems to work.
In my project I use Entity Framework Code First Migrations.
Is this database on the Azure server or is it local on your machine? You tried to publish your application on the local IIS to test.
– Edvaldo Farias
The database is on the Azure servers. No, I posted to Azure without testing on IIS
– Romeu
Your problem and user permission, you do not have access permission with that server user who is accessed
– Edvaldo Farias
This link may help you set up user permission. http://stackoverflow.com/questions/37297944/server-error-in-application-login-failed-for-user
– Edvaldo Farias