Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - Sql Server login from a web application only works from browser where iis runs.

 
Thread Tools Search this Thread
Old 01-23-2006, 08:41 AM   #1
Default Sql Server login from a web application only works from browser where iis runs.


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
  Reply With Quote
Old 01-23-2006, 08:50 AM   #2
Damien
 
Posts: n/a
Default Re: Sql Server login from a web application only works from browser where iis runs.
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
  Reply With Quote
Old 01-23-2006, 11:35 AM   #3
dyczr@bizerba.com
 
Posts: n/a
Default Re: Sql Server login from a web application only works from browser where iis runs.
Thanks Damien,

I see this is a very painful issue

I will switch to sql auth..

Cheers



dyczr@bizerba.com
  Reply With Quote
Old 01-23-2006, 12:26 PM   #4
Patrick.O.Ige
 
Posts: n/a
Default Re: Sql Server login from a web application only works from browser where iis runs.
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
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

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




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46