Permission denied for relation pg_shadow (Creating EDMX)
Permission denied for relation pg_shadow (Creating EDMX)
When I try create a ADO.NET Entity Data Model, after conect I give this error:
---------------------------
Microsoft Visual Studio
---------------------------
An error occurred while connecting to the database. The database might be unavailable. An exception of type 'System.Data.EntityCommandExecutionException' occurred. The error message is: 'Erro ao executar a definição do comando. Consulte a exceção interna para obter mais detalhes.
The inner exception caught was of type 'Devart.Data.PostgreSql.PgSqlException', with this error message: 'permission denied for relation pg_shadow'.'.
---------------------------
OK
---------------------------
---------------------------
Microsoft Visual Studio
---------------------------
An error occurred while connecting to the database. The database might be unavailable. An exception of type 'System.Data.EntityCommandExecutionException' occurred. The error message is: 'Erro ao executar a definição do comando. Consulte a exceção interna para obter mais detalhes.
The inner exception caught was of type 'Devart.Data.PostgreSql.PgSqlException', with this error message: 'permission denied for relation pg_shadow'.'.
---------------------------
OK
---------------------------
Hello,AndreyR wrote:Thank you for the report, we will investigate the situation.
As a temporary workaround, I recommend you either to connect via superuser to have the permission
for this table, or to use Devart Entity Developer to generate Devart Entity model.
In this case the problem will not be arised.
unfortunally, I cannot login with superuser because server is shared, in web host.
Devart Entity Developer generate standard EDMX files?
Why "Generate from database" works on "Devart Entity Model" and do not work on Visual Studio? The error refer about denied access at view pg_shadow, but when generate from devart tool, everything works fine.AndreyR wrote:Devart Entity Developer generates a .edml file the structure of which is similar to that of a .edmx file.
There are also some code generation differences.
To try this you can add Devart Entity Model to your project, just like ADO.NET Entity Data Model.