Hi all,
I'm trying to set up a web server using IIS on a different machine than my
SQL Server is on. I have my web site set up to use windows authentication,
and I have ASPNET set up as a user on the database. I still get the "Login
failed for user '(null)'. Reason: Not associated with a trusted SQL Server
connection." though. Anyone have any ideas how to fix this?
Thanks,
Matt 5 1201
You will have to turn off anonymous access for the website and force the
user to log in. If you have a login page already, you can work with Active
Directory to link the user to his account, but having the Windows login box
automagically pop up is a lot easier. As long as the user is in the DB, you
should be fine now.
Reason: User logged in as IUSR_ComputerName when they hit an anon website.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
************************************************
Think Outside the Box!
************************************************
"Matt MacDonald" <ma******@hotmail.com> wrote in message
news:eR****************@TK2MSFTNGP11.phx.gbl... Hi all, I'm trying to set up a web server using IIS on a different machine than
my SQL Server is on. I have my web site set up to use windows
authentication, and I have ASPNET set up as a user on the database. I still get the
"Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection." though. Anyone have any ideas how to fix this?
Thanks,
Matt
Cannot this be more easy?
Maybe the access rights of the SQLServer can be not good.
Or maybe the connection string can be modified !
Carlos Barini.
MCSE, MCDBA
"Cowboy (Gregory A. Beamer) [MVP]" <No************@comcast.netNoSpamM> wrote
in message news:O4**************@TK2MSFTNGP11.phx.gbl... You will have to turn off anonymous access for the website and force the user to log in. If you have a login page already, you can work with Active Directory to link the user to his account, but having the Windows login
box automagically pop up is a lot easier. As long as the user is in the DB,
you should be fine now.
Reason: User logged in as IUSR_ComputerName when they hit an anon website.
-- Gregory A. Beamer MVP; MCP: +I, SE, SD, DBA
************************************************ Think Outside the Box! ************************************************ "Matt MacDonald" <ma******@hotmail.com> wrote in message news:eR****************@TK2MSFTNGP11.phx.gbl... Hi all, I'm trying to set up a web server using IIS on a different machine
than my SQL Server is on. I have my web site set up to use windows authentication, and I have ASPNET set up as a user on the database. I still get the "Login failed for user '(null)'. Reason: Not associated with a trusted SQL
Server connection." though. Anyone have any ideas how to fix this?
Thanks,
Matt
The thing is, I don't want to have to put a user in my database for every
person who is going to login to the site. Can't I have ASP.NET log intot
SQL server using the windows authentication for the machine that IIS is
running on? It works fine if IIS and SQL Server are on the same machine,
just not when they are on different ones.
"Cowboy (Gregory A. Beamer) [MVP]" <No************@comcast.netNoSpamM> wrote
in message news:O4**************@TK2MSFTNGP11.phx.gbl... You will have to turn off anonymous access for the website and force the user to log in. If you have a login page already, you can work with Active Directory to link the user to his account, but having the Windows login
box automagically pop up is a lot easier. As long as the user is in the DB,
you should be fine now.
Reason: User logged in as IUSR_ComputerName when they hit an anon website.
-- Gregory A. Beamer MVP; MCP: +I, SE, SD, DBA
************************************************ Think Outside the Box! ************************************************ "Matt MacDonald" <ma******@hotmail.com> wrote in message news:eR****************@TK2MSFTNGP11.phx.gbl... Hi all, I'm trying to set up a web server using IIS on a different machine
than my SQL Server is on. I have my web site set up to use windows authentication, and I have ASPNET set up as a user on the database. I still get the "Login failed for user '(null)'. Reason: Not associated with a trusted SQL
Server connection." though. Anyone have any ideas how to fix this?
Thanks,
Matt
Matt,
Yes you can. See http://msdn.microsoft.com/library/de...SecNetch07.asp
Eliyahu
"Matt MacDonald" <ma******@hotmail.com> wrote in message
news:O1**************@TK2MSFTNGP09.phx.gbl... The thing is, I don't want to have to put a user in my database for every person who is going to login to the site. Can't I have ASP.NET log intot SQL server using the windows authentication for the machine that IIS is running on? It works fine if IIS and SQL Server are on the same machine, just not when they are on different ones.
"Cowboy (Gregory A. Beamer) [MVP]" <No************@comcast.netNoSpamM>
wrote in message news:O4**************@TK2MSFTNGP11.phx.gbl... You will have to turn off anonymous access for the website and force the user to log in. If you have a login page already, you can work with
Active Directory to link the user to his account, but having the Windows login box automagically pop up is a lot easier. As long as the user is in the DB, you should be fine now.
Reason: User logged in as IUSR_ComputerName when they hit an anon
website. -- Gregory A. Beamer MVP; MCP: +I, SE, SD, DBA
************************************************ Think Outside the Box! ************************************************ "Matt MacDonald" <ma******@hotmail.com> wrote in message news:eR****************@TK2MSFTNGP11.phx.gbl... Hi all, I'm trying to set up a web server using IIS on a different machine than my SQL Server is on. I have my web site set up to use windows authentication, and I have ASPNET set up as a user on the database. I still get the "Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection." though. Anyone have any ideas how to fix this?
Thanks,
Matt
OK, I have one more question. Is there any way to use the configuration is
that article, but use windows authentication rather than forms?
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:eF****************@TK2MSFTNGP09.phx.gbl... Matt,
Yes you can. See http://msdn.microsoft.com/library/de...SecNetch07.asp Eliyahu
"Matt MacDonald" <ma******@hotmail.com> wrote in message news:O1**************@TK2MSFTNGP09.phx.gbl... The thing is, I don't want to have to put a user in my database for
every person who is going to login to the site. Can't I have ASP.NET log
intot SQL server using the windows authentication for the machine that IIS is running on? It works fine if IIS and SQL Server are on the same
machine, just not when they are on different ones.
"Cowboy (Gregory A. Beamer) [MVP]" <No************@comcast.netNoSpamM> wrote in message news:O4**************@TK2MSFTNGP11.phx.gbl... You will have to turn off anonymous access for the website and force
the user to log in. If you have a login page already, you can work with Active Directory to link the user to his account, but having the Windows
login box automagically pop up is a lot easier. As long as the user is in the
DB, you should be fine now.
Reason: User logged in as IUSR_ComputerName when they hit an anon website. -- Gregory A. Beamer MVP; MCP: +I, SE, SD, DBA
************************************************ Think Outside the Box! ************************************************ "Matt MacDonald" <ma******@hotmail.com> wrote in message news:eR****************@TK2MSFTNGP11.phx.gbl... > Hi all, > I'm trying to set up a web server using IIS on a different machine
than my > SQL Server is on. I have my web site set up to use windows authentication, > and I have ASPNET set up as a user on the database. I still get the "Login > failed for user '(null)'. Reason: Not associated with a trusted SQL Server > connection." though. Anyone have any ideas how to fix this? > > Thanks, > > Matt > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Ken Lindner |
last post by:
I have a need to become familiar with SQL Server 2000 for work.
Needless to say I am new to SQL Server any version, but not IT in
general. My employer has provided me with the SQL Server 2000...
|
by: chuckdfoster |
last post by:
I am having a problem with moving my web app that uses Crystal Reports to
our web server. I do not have administrative rights to the web server.
When my site gets moved from my local machine to...
|
by: coosa |
last post by:
Hi,
I was installing SQL Server on my machine and during installation my PC
freezed. It happens frequently on my machine. So i tried after
restarting to install it again and since then i always...
|
by: Greg P |
last post by:
I know this is a long post, please bear with me. I have been working on
this all weekend to no avail although I have done a good amount of research
(see most pertinent links that I've looked at...
|
by: Greg P |
last post by:
I know this is a long post, please bear with me. I have been working on
this all weekend to no avail although I have done a good amount of research
(see most pertinent links that I've looked at...
|
by: Steve |
last post by:
Hi All
I have a vb.net Windows forms App which I am deploying with a VS.net 2005
deployment project
I have selected SQL Server express as a prerequisite and use the standard
SQL server express...
|
by: piggy |
last post by:
I have developed an application using C# under .NET 2.0 framework. It is
almost done and it is time for me to think about deploymnet to all users. I
don't have any background about this and would...
|
by: Steve |
last post by:
Hi All
I downloaded Sql server 2005 express SP2 and attempted to modify the
Bootstrapper package files as I did with SP1
When i try to install SQL server as part of my VS 2005 deployment app I...
|
by: =?Utf-8?B?ZGF2aWQ=?= |
last post by:
Last week I asked a question about connection to database from client machine
(developer machine). I have changed the database security setup for "SQL
Server and Windows" under (local)Windows NT...
|
by: Teja |
last post by:
Hi All,
I have a Python COM server. I need to deploy it on various sytems.
When I run the COM server from
python its showing an output " Registered : sample.lib"
If I try to use the COM obj...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
| |