New Web Dataform wizard won't connect to SQL server

  • Thread starter Thread starter gary
  • Start date Start date
G

gary

Hello:

I am using the new web dataform wizard to load a new webform that is to
connect to an sql database on MSDE. However, when I run it, I get the
following message:

Login failed for user 'GARYLAP\ASPNET'

I do not get this message when I connect to an access database. I have not
required any usernames or passwords.

Any help would be appreciated.
 
Hi gary,

Yup, that's right.
Asp.net application is running under aspnet local account.
You could allow aspnet account to connect to sql server (not recommended),
use sql server authentication (passing username and password within
connection string) or change the account under which your aspnet application
runs:

Put a line into
web.config file somewhere under
<system.web> node:
<identity impersonate="true" userName="USER" password="PASSWORD"/>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top