Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bypassing security to access SQL Server
Message
De
14/09/2013 15:08:55
 
 
À
14/09/2013 11:19:36
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01583273
Message ID:
01583288
Vues:
45
>On a Windows Server 2008, where the security is at a much higher level, the Web site responds for images, the Web site responds for .aspx pages that are not using a connection with SQL Server but the Web site does not respond for all pages that have a need to establish a connection with SQL Server.
>
>The Event View has this in Security log:
>
>"The Windows Filtering Platform has blocked a connection."
>
>This is the detail:
>
>Application Information:
> Process ID: 4
> Application Name: System
>
>Network Information:
> Direction: Outbound
> Source Address: AddressOfTheWebServer
> Source Port: 53802
> Destination Address: AddressOfTheSQLServer
> Destination Port: 139
> Protocol: 6
>
>Filter Information:
> Filter Run-Time ID: 0
> Layer Name: Connect
> Layer Run-Time ID: 48
>
>I sent this to security and they said that only port 1433 has to be opened from a Web server who wishes to communicate with SQL Server. Why am I still having this error then?

If the SQL Server is ready to accept connections on port 1433, why is the above connection request trying to go to 139? That port is typically blocked on servers that aren't running a file or printer sharing role.

For testing purposes it can be helpful to replace the server name with its IP address. This can eliminate a possible network lookup to resolve a name to an IP address.

You may also be able to specify the port explicitly e.g. http://www.connectionstrings.com/sqlconnection/connect-via-an-ip-address/
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform