Thick client connection works, VB/ASP doesn't!
From: UncleHarpoon (UncleHarpoon_at_discussions.microsoft.com)
Date: 10/25/04
- Next message: Richard Stanton: "Re: Weird date/time problem"
- Previous message: Colin Kingston: "Beginner asp tutorial required + dreamweaver or FP"
- Next in thread: Roland Hall: "Re: Thick client connection works, VB/ASP doesn't!"
- Reply: Roland Hall: "Re: Thick client connection works, VB/ASP doesn't!"
- Reply: Bob Barrows [MVP]: "Re: Thick client connection works, VB/ASP doesn't!"
- Reply: Mark Schupp: "Re: Thick client connection works, VB/ASP doesn't!"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 25 Oct 2004 07:19:02 -0700
An asp application is attempting to log on to a database using the
SqlDataAdapter ADO. For some reason, the same connection strings that work in
non-web applications are refused when the asp application attempts to connect
with the same connection string.
Sqlconnection.connectionstring = “User ID=user00;Password=pw00;Initial
Catalog=test_db;Data Source=np:\\.\pipe\sql\query”
Dim dt As New DataTable
Try
Dim query As String = "SELECT * from table”
Dim dataAdapt As New SqlDataAdapter(query,sqlConnection)
dataAdapt.Fill(dt)
Catch SQLex As SqlException
Throw SQLex
End Try
The solution that I am currently using is using the impersonate feature in
the web.config:
<identity impersonate="true" userName="domain\username" password="pwd"/>
-- Don Glman, P.E., MCP Sr. Software Engineer Energy Systems Lab, Texas A&M
- Next message: Richard Stanton: "Re: Weird date/time problem"
- Previous message: Colin Kingston: "Beginner asp tutorial required + dreamweaver or FP"
- Next in thread: Roland Hall: "Re: Thick client connection works, VB/ASP doesn't!"
- Reply: Roland Hall: "Re: Thick client connection works, VB/ASP doesn't!"
- Reply: Bob Barrows [MVP]: "Re: Thick client connection works, VB/ASP doesn't!"
- Reply: Mark Schupp: "Re: Thick client connection works, VB/ASP doesn't!"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|