![]() |
|
|
|||||||
![]() |
ASP Net - Sql Server login from a web application only works from browser where iis runs. |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
Hello All,
configuration: computer_1: IIS + Asp .Net Web App Web.config: <authentication mode="Windows" /> <identity impersonate="true"/> computer_2: SQL Server Both machines are in a domain. problem description: When I access the WebApp from the same computer where the WebApp runs averything works fine. I can access the webpage and sql queries works. When I access the WebApp from other computer ass the IIS I can access the WebApp but I get from SQL Server: "..login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.." What is the problem? Thanks for every hint! radix dyczr@bizerba.com |
|
|
|
|
#2 |
|
Posts: n/a
|
wrote:
> Hello All, > > configuration: > > computer_1: > IIS + Asp .Net Web App > Web.config: <authentication mode="Windows" /> <identity > impersonate="true"/> > > computer_2: > SQL Server > > Both machines are in a domain. > > problem description: > When I access the WebApp from the same computer where the WebApp runs > averything works fine. I can access the webpage and sql queries works. > > When I access the WebApp from other computer ass the IIS I can access > the WebApp but I get from SQL Server: "..login failed for user > '(null)'. Reason: Not associated with a trusted SQL Server > connection.." > > What is the problem? > > Thanks for every hint! > radix Hi, This is a pretty common problem. Unfortunately, there's no one-size-fits-all solution. The September MSDN Magazine had an article which covered a lot of the issues: http://msdn.microsoft.com/msdnmag/is...ecurityBriefs/ Hopefully you can work through that and decide what you can do. Damien Damien |
|
|
|
#3 |
|
Posts: n/a
|
Thanks Damien,
I see this is a very painful issue I will switch to sql auth.. Cheers dyczr@bizerba.com |
|
|
|
#4 |
|
Posts: n/a
|
If there are on the same domain what you can do is use or create
an ASPNET acct on the domain. And use that acct to access the DB. I have ran into such issue so many times and doing that trick solved my problem. Patrick <> wrote in message news: oups.com... > Thanks Damien, > > I see this is a very painful issue > > I will switch to sql auth.. > > Cheers > Patrick.O.Ige |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Prerequisites 70-745 (Business Intelligence) | Valmont | MCITP | 3 | 06-24-2008 03:03 PM |
| SQL Server 2008 delayed into Q3 2008 | darrilgibson@cox.net | MCITP | 0 | 01-27-2008 10:26 PM |
| MCITP SQL Server 2005 or SQL Server 2008 | Darrilgibson@gmail.com | MCITP | 0 | 12-19-2007 01:56 PM |
| SQL Server 2005 Migration Assistant Autonumber problem. | LarryWestMCSD | MCTS | 1 | 03-28-2007 02:08 AM |
| deploy web application behind a server (no NAT) | xavoux | Software | 0 | 06-22-2006 01:11 PM |