473,783 Members | 2,546 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Trusted Connection via ASP page.

CD
Win03 and Win03SQLsp3a servers in the same domain. We are in hybrid mode
with W03 DC's

Back on NT 4, one could not do a trusted connection via web page when IIS
and SQL were on different servers.

We have tried since on the new platforms and see the same results. Makes me
wonder if there is something fishy with our domain.

Should one be able to make a trusted connection in a 2 server scenario?
Jul 22 '05 #1
4 2530
"CD" <mc****@hotmail .REMOVETHIS.com > wrote in message
news:#9******** ******@tk2msftn gp13.phx.gbl...
Win03 and Win03SQLsp3a servers in the same domain. We are in hybrid mode
with W03 DC's

Back on NT 4, one could not do a trusted connection via web page when IIS
and SQL were on different servers.

We have tried since on the new platforms and see the same results. Makes me wonder if there is something fishy with our domain.

Should one be able to make a trusted connection in a 2 server scenario?


Nothing wrong with your domain. See:
http://support.microsoft.com/kb/176380/EN-US/
http://support.microsoft.com/kb/176377/EN-US/

--
Tom Kaminski IIS MVP
http://www.microsoft.com/windowsserv...y/centers/iis/
http://mvp.support.microsoft.com/
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
Jul 22 '05 #2
CD
Thanks for the reply.

In Q176377 it makes reference to fixed but for Kerberos only...
1) Is this a method that can be defined in the connection string?

Comment from Q:
By eliminating the need for IIS to create an authenticated connection to SQL
Server, you can work around this problem. To do this you must use a data
source name (DSN) that does not look out to the network for the SQL Server
and instead looks directly to the local machine. This can be done by using
the "(local)" setting in a System DSN.

2)Does this mean if the programmer was to use a Local DSN on the web server
it would do a trusted connection to the remote SQL? Assume it was defined
as such in the local DSN creation. In the past they have used DSN-Less
connection strings.

Nothing wrong with your domain. See:
http://support.microsoft.com/kb/176380/EN-US/
http://support.microsoft.com/kb/176377/EN-US/

--
Tom Kaminski IIS MVP
http://www.microsoft.com/windowsserv...y/centers/iis/
http://mvp.support.microsoft.com/
http://www.iistoolshed.com/ - tools, scripts, and utilities for running
IIS

Jul 22 '05 #3
"CD" <mc****@hotmail .REMOVETHIS.com > wrote in message
news:Oe******** ******@TK2MSFTN GP09.phx.gbl...
Thanks for the reply.

In Q176377 it makes reference to fixed but for Kerberos only...
1) Is this a method that can be defined in the connection string?
Not 100% sure but i don't think so.
Comment from Q:
By eliminating the need for IIS to create an authenticated connection to SQL Server, you can work around this problem. To do this you must use a data
source name (DSN) that does not look out to the network for the SQL Server
and instead looks directly to the local machine. This can be done by using
the "(local)" setting in a System DSN.

2)Does this mean if the programmer was to use a Local DSN on the web server it would do a trusted connection to the remote SQL? Assume it was defined
as such in the local DSN creation. In the past they have used DSN-Less
connection strings.


No - local would refer to a database on that server.

--
Tom Kaminski IIS MVP
http://www.microsoft.com/windowsserv...y/centers/iis/
http://mvp.support.microsoft.com/
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
Jul 22 '05 #4
CD
Thanks Tom,

So this is another MS cluster fudge. They would rather you use only NT
authencation for SQL. But yet it causes issues with data access from a web
server. I am not in favor of sending plain text across the network as this
seems to be the only option for a trusted connection.
Jul 22 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
16494
by: DMS | last post by:
am new to ASP.NET and IIS web applications, but not to SQL databases. I can successfully build Windows apps using Visual Studio that use ADO. However, for Web Forms, I created data connection and sqladapter to my SQL Server - Northwind - which I dragged from Server Explorer. I generate a dataset, and Preview Data in the da, works fine. I then enter vb code on Page_Load event: SqlDataAdapter1.Fill(ds) DataGrid1.DataSource =...
7
2166
by: Ray Valenti | last post by:
I am able to preview this data in the development environment, but when I run the application the error below shows up. How do I set up a Trusted Connection? -Ray Server Error in '/WebApplication2' Application. ---------------------------------------------------------------------------- ----
2
2259
by: Frederik | last post by:
Hi, First sorry for my english I'm french. I developped a web app that work good under XPDEVSERVER machine (iis5) and SqlServerDevelopper Edition. I get problem when I moved this app to an other web server (IIS5.0) win2000. Actualy, I only have problem to connect with the Database that she still hosted on the the XPDEVSERVER mahcine . I get this error msg when I ask a aspx page that is connected to the database: Login failed for user...
4
7227
by: rrober07 | last post by:
Hello, My Setup is I have a Web Server machine(Devweb01), Database SQL Machine(Devsql01), a Client Machine(local machine) I have configured the SQL machine as follows: 1) Added local Aspnet user account (with same password as aspnet user on IIS (Devweb01)) 2) edited local machine.config file <ProcessModel> Password attribute to same password (both on IIS and SQL Machine) 3) SQL Server security is Sql Server and Windows
3
1681
by: Ramesh | last post by:
I am trying to access a remote sql server from an ASP.Net application using ADO.Net. I want to use trusted connection and so set the connection string as Dim strConn As String = Network Library=DBMSSOCN;server=ServerName;database=DatabaseName;Trusted_Connection=true Also in the web.config file I set <authentication mode="Windows" /> and <identity impersonate="true" />
2
1909
by: Mike | last post by:
I added a new user to my SQL db to log into the DB from my ASP.NET web, When i run my page I'm getting an error Login failed for user 'USERID. Reason: Not associated with a trusted SQL Server connection. do i need to put trusted connection = true in my string? heres my string
0
1043
by: Dennis | last post by:
I am working on an ASP.NET 2.0 site. It runs fine on my local PC. When I deploy it to the server I get this error: Login failed for user ''. The user is not associated with a trusted SQL Server connection. SqlException (0x80131904): Login failed for user ''. The user is not associated with a trusted SQL Server connection.] System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +734867
3
5764
by: Mad Scientist Jr | last post by:
I am getting the following error when trying to access a database with a trusted connection: "Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection." My connection string is: "Server=MyServer; Database=MyCatalog; Trusted_Connection=True;"
3
4715
by: Newbie19 | last post by:
I'm having an issue with viewing my ASP/SQL application in Internet Explorer. I get the error from my Server (located on my PC using IIS 5.0) stating: Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection. I am connected to the database because I can view it in VS 05 and run test queries on it in VS. This is the stack I get: System.Data.SqlClient.SqlInternalConnection.OnError(SqlException...
0
9643
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
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,...
0
10315
Oralloy
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...
0
10147
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9946
tracyyun
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...
1
7494
isladogs
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...
0
5379
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...
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2877
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.