1
woo hoo... I solved the little bast%#$rd...
the answer is:
Make the following change to the machine.config file for ASP.Net:
The reason... as I had figured, the default local user that ASP.Net uses (mycomputer\ASPNET) does not have adequate priviledges to interact on the network. Using the impersonate property of the identity allows the ASPNET worker process to inherit that users access rights.
...James does a little touchdown dance....
thanks for the help Mike!!
1
Well, 6.5 is pretty old, I'm not working with it for about 6 years. However, I remeber that there were problems with connecting SQL Serer using Named Pipes. I used TCP/IP to avoid this.
Here is a note I found in SQL 2000 documentation, so it may not really apply to your case:
Note When connecting to an instance of SQL Server running on Windows NT 4.0 or Windows 2000 using Named Pipes, the user must have permission to connect to the Windows NT Named Pipes IPC, \\\IPC$. If the user does not have permission to connect, it is not possible to connect to an instance of SQL Server using Named Pipes unless either the Windows NT 4.0 or Windows 2000 guest account on the computer is enabled (disabled by default), or the permission "access this computer from the network" is granted to their user account.
BTW, SQL 2000 does not have pure SQL Authentication mode, it has Windows and Mixed.
1
Yes, I am, but I think this authentication problem doesn't reach SQL Server, its more of a windows authentication issue saying that the [localmachine]\ASPNET user does not have authorization to connect to the server itself.
The only difference between running the assembly from a command line app and from IIS is that the WindowsIdentity changes from my username to [localmachine]\ASPNET.
1
James,
I'm a little confused by your posting. If you use SQL Authentication, then you are specifying SQL Login and Password in you connection string, are you?
Mike