DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Sun, 05 Aug 2007 21:48:11 -0000,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    SpaceMarine
          2    Kevin Spencer


newbie SQL Server 2005 connection question   
hello,

i have a SQL Server instance running on a server. i have an ASP.NET
application running locally on my dev machine. in my app's web.config
i have this connection string:

   <add key="connStr" value="server=MYSERVER; database=MyDb;
Integrated Security=SSPI;" />

....however, this connection is refused w/ this error message:

   Login failed for user ''. The user is not associated with a trusted
SQL Server connection.


so the question is -- how do i setup a user in the db instance that is
associated w/ a trusted connection? currently for users i have a
"MYSERVER\ASPNET", however thats local to the server -- its not my dev
machine's ASPNET account. i tried to add one via the right-click "New
User", but wasnt able to point to the DEVMACHINE\ASPNET account.

thanks for you help.


sm
Date:Sun, 05 Aug 2007 21:48:11 -0000   Author:  

Re: newbie SQL Server 2005 connection question   
DEVMACHINE\ASPNET is a local account on the development machine, and cannot 
be seen by the other machine. Create a user account on that machine, and 
have your connection string use that user's credentials.

-- 
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net

"SpaceMarine"  wrote in message 
news:1186350491.936389.296840@g4g2000hsf.googlegroups.com...

> hello,
>
> i have a SQL Server instance running on a server. i have an ASP.NET
> application running locally on my dev machine. in my app's web.config
> i have this connection string:
>
>   <add key="connStr" value="server=MYSERVER; database=MyDb;
> Integrated Security=SSPI;" />
>
> ...however, this connection is refused w/ this error message:
>
>   Login failed for user ''. The user is not associated with a trusted
> SQL Server connection.
>
>
> so the question is -- how do i setup a user in the db instance that is
> associated w/ a trusted connection? currently for users i have a
> "MYSERVER\ASPNET", however thats local to the server -- its not my dev
> machine's ASPNET account. i tried to add one via the right-click "New
> User", but wasnt able to point to the DEVMACHINE\ASPNET account.
>
> thanks for you help.
>
>
> sm
> 
Date:Mon, 6 Aug 2007 07:28:12 -0400   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us