Visualizzazione dei risultati da 1 a 5 su 5

Discussione: SQL e Firewall

  1. #1

    SQL e Firewall

    Ho realizzato un'applicazione in VB.NET con database SQL 2005.
    Non riesco a collegarmi dai pc aventi sistema operativo Windows 7.
    Dopo diversi tentativi ho scoperto che disabilitando il firewall questi si collegano.
    Volevo sapere quale programma o porta devo includere nelle eccezione del firewall.

    Grazie

  2. #2
    Utente di HTML.it L'avatar di Joe Taras
    Registrato dal
    Nov 2003
    residenza
    Taranto
    Messaggi
    955

    Re: SQL e Firewall

    Originariamente inviato da babystuta
    Ho realizzato un'applicazione in VB.NET con database SQL 2005.
    Non riesco a collegarmi dai pc aventi sistema operativo Windows 7.
    Dopo diversi tentativi ho scoperto che disabilitando il firewall questi si collegano.
    Volevo sapere quale programma o porta devo includere nelle eccezione del firewall.

    Grazie
    porta 1433 (quella di sql server)

  3. #3
    Questo è il log dell'errore che esce .
    Ma la porta (TCP o UDP) va configurata come regola in ENTRATA o in USCITA ?


    Le informazioni su come richiamare il debug JIT (Just-In-Time) anzichÈ questa finestra
    sono riportate in fondo al messaggio.

    ************** Testo dell'eccezione **************
    System.Data.SqlClient.SqlException (0x80131904): Si Ë verificato un errore di rete o specifico dell'istanza mentre si cercava di stabilire una connessione con SQL Server. Il server non Ë stato trovato o non Ë accessibile. Verificare che il nome dell'istanza sia corretto e che SQL Server sia configurato in modo da consentire connessioni remote. (provider: SQL Network Interfaces, error: 26 - Errore nell'individuazione del server/dell'istanza specificata)
    in System.Data.SqlClient.SqlInternalConnection.OnErro r(SqlException exception, Boolean breakConnection)
    in System.Data.SqlClient.TdsParser.ThrowExceptionAndW arning()
    in System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity)
    in System.Data.SqlClient.SqlInternalConnectionTds.Att emptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, SqlConnection owningObject)
    in System.Data.SqlClient.SqlInternalConnectionTds.Log inNoFailover(ServerInfo serverInfo, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, TimeoutTimer timeout)
    in System.Data.SqlClient.SqlInternalConnectionTds.Ope nLoginEnlist(SqlConnection owningObject, TimeoutTimer timeout, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)
    in System.Data.SqlClient.SqlInternalConnectionTds..ct or(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)
    in System.Data.SqlClient.SqlConnectionFactory.CreateC onnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)
    in System.Data.ProviderBase.DbConnectionFactory.Creat ePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options)
    in System.Data.ProviderBase.DbConnectionPool.CreateOb ject(DbConnection owningObject)
    in System.Data.ProviderBase.DbConnectionPool.UserCrea teRequest(DbConnection owningObject)
    in System.Data.ProviderBase.DbConnectionPool.GetConne ction(DbConnection owningObject)
    in System.Data.ProviderBase.DbConnectionFactory.GetCo nnection(DbConnection owningConnection)
    in System.Data.ProviderBase.DbConnectionClosed.OpenCo nnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
    in System.Data.SqlClient.SqlConnection.Open()
    in System.Data.Linq.SqlClient.SqlConnectionManager.Us eConnection(IConnectionUser user)
    in System.Data.Linq.SqlClient.SqlProvider.get_IsSqlCe ()
    in System.Data.Linq.SqlClient.SqlProvider.InitializeP roviderMode()
    in System.Data.Linq.SqlClient.SqlProvider.System.Data .Linq.Provider.IProvider.Execute(Expression query)
    in System.Data.Linq.DataQuery`1.System.Collections.Ge neric.IEnumerable<T>.GetEnumerator()
    in System.Collections.Generic.List`1..ctor(IEnumerabl e`1 collection)
    in System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
    in System.Data.Linq.Provider.BindingList.Create[T](DataContext context, IEnumerable`1 sequence)
    in System.Data.Linq.DataQuery`1.GetNewBindingList()
    in System.Data.Linq.DataQuery`1.System.ComponentModel .IListSource.GetList()
    in System.Windows.Forms.ListBindingHelper.GetList(Obj ect list)
    in System.Windows.Forms.ListBindingHelper.GetList(Obj ect dataSource, String dataMember)
    in System.Windows.Forms.BindingSource.ResetList()
    in System.Windows.Forms.BindingSource.set_DataSource( Object value)
    in GesTechnion.frmAvvio.frmAvvio_Load(Object sender, EventArgs e)
    in System.EventHandler.Invoke(Object sender, EventArgs e)
    in System.Windows.Forms.Form.OnLoad(EventArgs e)
    in System.Windows.Forms.Form.OnCreateControl()
    in System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
    in System.Windows.Forms.Control.CreateControl()
    in System.Windows.Forms.Control.WmShowWindow(Message& m)
    in System.Windows.Forms.Control.WndProc(Message& m)
    in System.Windows.Forms.ScrollableControl.WndProc(Mes sage& m)
    in System.Windows.Forms.Form.WmShowWindow(Message& m)
    in System.Windows.Forms.Form.WndProc(Message& m)
    in System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
    in System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
    in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


    ************** Assembly caricati **************
    mscorlib
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.261 (RTMGDR.030319-2600)
    Base di codice: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
    ----------------------------------------
    GesTechnion
    Versione assembly: 1.0.0.0
    Versione Win32: 1.0.0.0
    Base di codice: file:///C:/Users/d.milani.TECHNION/AppData/Local/Apps/2.0/3PM70TDB.0JC/JDZQW1LK.RDO/gest..tion_a7eef0cef52d3fe9_0001.000c_a35136fac7e5 1411/GesTechnion.exe
    ----------------------------------------
    Microsoft.VisualBasic
    Versione assembly: 10.0.0.0
    Versione Win32: 10.0.30319.1 built by: RTMRel
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
    ----------------------------------------
    System
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.261 built by: RTMGDR
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Core
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.233 built by: RTMGDR
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
    ----------------------------------------
    System.Windows.Forms
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.235 built by: RTMGDR
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System.Drawing
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.1 built by: RTMRel
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    System.Runtime.Remoting
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.1 (RTMRel.030319-0100)
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
    ----------------------------------------
    System.Data.Linq
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.1
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Data.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Data.Linq.dll
    ----------------------------------------
    System.Configuration
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.1 (RTMRel.030319-0100)
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    ----------------------------------------
    System.Xml
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.233 built by: RTMGDR
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    System.Data
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.237 (RTMGDR.030319-2300)
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
    ----------------------------------------
    System.Transactions
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.1 (RTMRel.030319-0100)
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
    ----------------------------------------
    System.EnterpriseServices
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.1 (RTMRel.030319-0100)
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
    ----------------------------------------
    System.Data.resources
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.1 (RTMRel.030319-0100)
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Data.resources/v4.0_4.0.0.0_it_b77a5c561934e089/System.Data.resources.dll
    ----------------------------------------
    mscorlib.resources
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.235 (RTMGDR.030319-2300)
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_it_b77a5c561934e089/mscorlib.resources.dll
    ----------------------------------------
    System.Windows.Forms.resources
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.1 built by: RTMRel
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_it_b77a5c561934e089/System.Windows.Forms.resources.dll
    ----------------------------------------

    ************** Debug JIT **************
    Per abilitare il debug JIT, Ë necessario impostare il valore
    jitDebugging nella sezione system.windows.forms del file di configurazione
    dell'applicazione o del computer (machine.config).
    L'applicazione inoltre deve essere compilata con il debug
    abilitato.

    Ad esempio:

    <configuration>
    <system.windows.forms jitDebugging="true" />
    </configuration>

    Quando il debug JIT Ë abilitato, tutte le eccezioni non gestite
    vengono inviate al debugger JIT registrato nel computer,
    anzichÈ essere gestite da questa finestra di dialogo.

  4. #4
    Porta TCP 1433, sicuramente in entrata, poi vedi se serve anche in uscita.


  5. #5

    Re: SQL e Firewall

    Originariamente inviato da babystuta
    Ho realizzato un'applicazione in VB.NET con database SQL 2005.
    Non riesco a collegarmi dai pc aventi sistema operativo Windows 7.
    Dopo diversi tentativi ho scoperto che disabilitando il firewall questi si collegano.
    Volevo sapere quale programma o porta devo includere nelle eccezione del firewall.

    Grazie
    Se si collegano disabilitando il firewall sul server, allora sul server devi aprire la porta in ingresso sul server.
    Se si collegano disabilitando il firewall sul desktop, apri la porta in uscita sul desktop.


Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.