Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 25th, 2008, 03:49 PM
Registered User
 
Join Date: Apr 2008
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASP web site connect to SQL Server

I need help with configuring IIS, SQL Server, and the web.config file to have a .Net ASP (C#) application connect to a SQL Server 2005 database. This is an internet site, with the web application and the database on the same machine. Would like to avoid using a password/user name in the web.config file and DB connection string. I have been testing with Trusted_Connection, <identity impersonate="true" />, Integrated Security=SSPI, and other settings, but I don't understand the whole process. Errors occur and no results. Can you provide help with what to do?

 
Old April 26th, 2008, 04:58 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Can you tell us what the errors are?

The web site will typically run under the limited access 'NETWORK SERVICE' account. It's very likely that this account won't have the right access to SQL Server. I have never connected to MSSQL from a web app with anything other than a SQL Server login.

What is your motivation for not wanting a username/password in the web.config file? If the concern is someone seeing the security information, there are ways to encrypt sections of config files. I haven't done this myself so I can't offer any specifics.

-Peter
peterlanoie.blog





Similar Threads
Thread Thread Starter Forum Replies Last Post
can not connect to the web-service remote server? okll .NET Web Services 4 May 24th, 2006 06:08 PM
connect from web server to remote database Durwood Edwards Classic ASP Databases 0 June 24th, 2004 01:03 PM
[000] Unable to connect to server 'SERVER\SQL'; SQ ctanchan SQL Server 2000 1 August 15th, 2003 07:18 AM
Connect Outlook to a web site nvillare Classic ASP Basics 0 July 29th, 2003 03:23 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.