Hi,
My development machine is running Win XP SP2 and IIS. I'm developing an
ASP.NET application on this machine that accesses data from a SQL Server
database on another machine.
That machine that contains the SQL Server runs Win 2003 and is the primary
controller for our domain.
When I connect I receive the error "Login failed for user '(null)'. Reason:
Not associated with a trusted SQL Server connection."
My connection string is ""integrate d security=SSPI;d ata
source=SDI-SERVER01;persis t security info=False;init ial catalog=Contact s"
In IIS, I have anonymous access checked and Integrated Windows Security set.
In SQL Server, I have included the ASPNET account as a login, and also as a
user within the database I'm accessing.
This problem seems to have been encountered plenty of times, and there are
quite a few solutions (eg impersonation, sql server authentication, etc), but
I'd like to find out why the error is occurring.
Am I right in saying that the problem is happening because the local ASPNET
account credentials are being passed through and they are not seen as being
the same as the credentials for the ASPNET account on the server?
If someone could help my understanding or point me in the direction of some
info, that would be great.
Thanks,
David. 2 1433
Hi David:
By default the ASPNET account password is generated per machine, so
the ASPNET password on your local machine does not match the password
for the ASPNET account on the remote machine. You can explicitly set a
matching ASPNET password on both computers and it should work (don't
forget to set the ASPNET password in the processModel element of
machine.config too).
--
Scott http://www.OdeToCode.com
On Thu, 9 Sep 2004 23:45:02 -0700, DavidR
<Da****@discuss ions.microsoft. com> wrote: Hi,
My development machine is running Win XP SP2 and IIS. I'm developing an ASP.NET application on this machine that accesses data from a SQL Server database on another machine.
That machine that contains the SQL Server runs Win 2003 and is the primary controller for our domain.
When I connect I receive the error "Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection."
My connection string is ""integrate d security=SSPI;d ata source=SDI-SERVER01;persis t security info=False;init ial catalog=Contact s"
In IIS, I have anonymous access checked and Integrated Windows Security set.
In SQL Server, I have included the ASPNET account as a login, and also as a user within the database I'm accessing.
This problem seems to have been encountered plenty of times, and there are quite a few solutions (eg impersonation, sql server authentication, etc), but I'd like to find out why the error is occurring.
Am I right in saying that the problem is happening because the local ASPNET account credentials are being passed through and they are not seen as being the same as the credentials for the ASPNET account on the server?
If someone could help my understanding or point me in the direction of some info, that would be great.
Thanks, David.
Thanks Scott.
"Scott Allen" wrote: Hi David:
By default the ASPNET account password is generated per machine, so the ASPNET password on your local machine does not match the password for the ASPNET account on the remote machine. You can explicitly set a matching ASPNET password on both computers and it should work (don't forget to set the ASPNET password in the processModel element of machine.config too).
-- Scott http://www.OdeToCode.com
On Thu, 9 Sep 2004 23:45:02 -0700, DavidR <Da****@discuss ions.microsoft. com> wrote:
Hi,
My development machine is running Win XP SP2 and IIS. I'm developing an ASP.NET application on this machine that accesses data from a SQL Server database on another machine.
That machine that contains the SQL Server runs Win 2003 and is the primary controller for our domain.
When I connect I receive the error "Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection."
My connection string is ""integrate d security=SSPI;d ata source=SDI-SERVER01;persis t security info=False;init ial catalog=Contact s"
In IIS, I have anonymous access checked and Integrated Windows Security set.
In SQL Server, I have included the ASPNET account as a login, and also as a user within the database I'm accessing.
This problem seems to have been encountered plenty of times, and there are quite a few solutions (eg impersonation, sql server authentication, etc), but I'd like to find out why the error is occurring.
Am I right in saying that the problem is happening because the local ASPNET account credentials are being passed through and they are not seen as being the same as the credentials for the ASPNET account on the server?
If someone could help my understanding or point me in the direction of some info, that would be great.
Thanks, David.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jaydeep |
last post by:
Hello,
I am facing a strange problem. Problem accessing remote database from
ASP using COM+ server application having VB components (ActiveX DLL)
installed.
Tier 1 : ASP front End (IIS 5.0)
Tire 2 : COM objects
Tier 3 : SQL Server 2000 DB
Flow is : ASP talks with COM objects and COM objects talks with DB
Scenario 1
|
by: Douglas Harber |
last post by:
If I have DB2 8.1 (FP5, I believe, but not relevant to my question...I hope)
installed on my desktop, do I have what I need to connect to a remote DB2
server (also running 8.1 FP5) from my desktop machine? I assume, perhaps
naively, that all the parts are there but I've spent several hours trying to
grasp how to go about accessing the remote server.
Specifically, I'm trying to create and populate databases on the remote
server from...
|
by: prodirect |
last post by:
Hi all,
I hope someone can help me. I've recently created a database and wanted to
put it up on an ftp sight so that multiple people could access the same
tables at the same time from different geographical locations. I have been
completely unsucessful in acheiving this goal so far however.
Things I have tried:
Create a shortcut to ftp sight via browser then tried to map local drive to
|
by: Jon L. Lovesky |
last post by:
Hello all,
I am attempting to access a remote folder from an asp.net application (all
within the same domain). The application is configured for windows
authentication in IIS and the asp.net worker process runs as the local
ASP.NET account. When the application is about to access the remote folder I
switch the security context to the remote user programmatically, then switch
it back afterwards. When I run the application on my local...
|
by: Jeff |
last post by:
Hi -
I have an ASP.NET web page accessing a SQL database. It works fine on the
web, and I'm trying to get it to also work in debug mode in the IDE. The
"on the web" page and my SQL database are hosted by a third party (on
separate servers).
Since debug mode opens IE and loads my page from localhost, since the
database is located at a web URL, and since my development machine has an
always-on DSL connection, I'm hoping there's a way...
| |
by: Fredric Ragnar |
last post by:
Hi,
I am making a prototype system with Remoting in the bottom of the system. An
XML Web Service is using the remote object on an IIS to present data.
I am using a TcpChannel for communicating between the XML Web Service and
the host for the remote object. Within the host a port is defined and the
channel registered. It starts listening for requests. The destination port is
therefore clearly defined.
|
by: Mike |
last post by:
I'm having trouble accessing SQL2005 Standard Edition as a second
instance of SQL Server where the first instance is SQL 2000 Enterprise
Edition. I installed SQL 2005 as a named instance "SQL2005". The
server is running Windows 2000 SP4 ON A 32-Bit machine. When I look in
Services I see the SQL Server (SQL2005), SQL Server Agent (SQL2005)
services there. I went into SQL Server Configuration manager and
disabled the named pipes protocol...
|
by: Noy B |
last post by:
Hi,
I have developed a small application that is using a MSAccess DB.
the problem is that it was developed on a machine where the
application and the DB are both located.
now it needs to be change that the application will be able to run on
any other machine (using \\ syntax on the run command- not a problem)
using the DB located on a static-different machine.
for this purpose I need to create a Remote Connection from my
|
by: John |
last post by:
Hi
We had an sbs 2003 with isa 2000 server. We wre able to access a
remote sql server (hosted at our web host) just fine. We replaced the
server with a new sbs 2003 r2 with isa 2004 server and even though I
have opened port 1433 in isa 2004 we can't access the remote sql
server anymore. Where can I look for any blocks?
Many Thanks
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |