Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trusted_Connection Problem with VS2005
Message
From
05/10/2006 20:30:02
 
 
To
05/10/2006 18:44:56
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
ASP.NET
Category:
Web Services
Miscellaneous
Thread ID:
01156747
Message ID:
01159912
Views:
25
Cetin,

>However one thing is different between IIS versions.

I'm using IIS 5.

>I suspect in 1.1 you either were not using anoymous user or had UID/PWD. In config impersonate = true might have effect too. I didn't use impersonation.

Anonymous Access was enabled.
Not using Impersonation.
No UID/PWD (why would I have that when I'm testing the Trusted_Connection? <g>)

~~Bonnie




>Hmm AFAIK it hasn't changed. It was aspnet_wp.exe with ASPNET local account and still it is. However one thing is different between IIS versions. In IIS 6, worker is w3wp.exe with account is NT authority\Networkservice instead of local system.
>I suspect in 1.1 you either were not using anoymous user or had UID/PWD. In config impersonate = true might have effect too. I didn't use impersonation.
>Cetin
>
>>Oh, did you see my other post about maybe why this happened?
>>
>>"The only thing I can think of as to why this didn't need tweaking with 1.1 was that they've possibly changed the account that ASP.NET runs under to a different name. Perhaps the original account name was included under the default "BUILTIN\Administrators" login and the new one isn't?"
>>
>>~~Bonnie
>>
>>
>>
>>>Bonnie,
>>>Are you sure 1.1 didn't need anything? I remember I always had to do that. You might try with 1.1 first removing ASPNet's rights from SQL server.
>>>Cetin
>>>
>>>>Cetin,
>>>>
>>>>>It works for me when I give machineName\ASPNet account
>>>>
>>>>Yes, that's what I found out that I had to do, but I never had to do that with 1.1. It just worked with no permission settings that I ever had to add.
>>>>
>>>>~~Bonnie
>>>>
>>>>
>>>>
>>>>
>>>>>John,
>>>>>It works for me when I give machineName\ASPNet account (or NT Authority\Network service under win2003) access to my SQL server (as it did before with vs2003). Probably in IIS anonymous is not allowed).
>>>>>Cetin
>>>>>
>>>>>>Did you ever figure this one out. I'm curious about the result.
>>>>>>
>>>>>>
>>>>>>>I'm sure this is a known problem, but I can't seem to find the fix.
>>>>>>>
>>>>>>>My VS2005 app connects to the SQL Server database through web services. If I connect with a connection string that uses userid and password, no problem. But, if I change that to use a Trusted_Connection instead, it won't work.
>>>>>>>
>>>>>>>This worked fine when the app was compiled under VS2003, but has not since migrating it to VS2005. Is there some setting I need to tweak somewhere? In IIS maybe? This is only a problem with Web Services.
>>>>>>>
>>>>>>>TIA,
>>>>>>>
>>>>>>>~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform