1

I'm using entity framework 5.0 in my asp.net c# website project.

The database server is on a remote server, my developer machine is behind a HTTP proxy with LDAP authentication.

How can I configure my project to use specific proxy settings to establish the connection to my MSSQL server?

2
  • What kind of proxy is it? SOCKS5? Commented Apr 12, 2013 at 10:05
  • I've updated my answer. It's HTTP. Commented Apr 12, 2013 at 10:08

1 Answer 1

2

Since SQL Server does not use HTTP communication natively, it will not work with an HTTP proxy (unless the proxy allows passthrough in which case it's really disconnecting itself from acting as a proxy and this page may be of interest). Far form all HTTP proxies will allow this.

To expose data from the SQL server to your installation through an HTTP proxy, you may instead want to consider creating an OData service on the SQL server side, and use that for data access in your application. This will allow you to query the database over HTTP in a proxy friendly way.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.