Advertisement
Guest User

Untitled

a guest
Apr 4th, 2017
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. Npgsql.NpgsqlException: Failed to establish a connection
  2. to '177.195.43.242'. --->
  3. System.Security.SecurityException: Request for the
  4. permission of type 'System.Net.SocketPermission,failed.
  5.  
  6. <?php
  7. if(!@($conexao=pg_connect ("host=177.193.40.222
  8. dbname=bdteste port=5438 user=admin password=xxxxx"))) {
  9. print "Não foi possível estabelecer uma conexão com o banco de dados.";
  10. } else {
  11. pg_close ($conexao);
  12. print "Conexão OK!";
  13. }
  14. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement