Re: ASP Impersonation - null user



Not Me

Was your SQL Server set up with Windows Authentication only?




"Not Me" <Not.Me@xxxxxxxxxxxxxxx> wrote in message
news:1166521469.754869@xxxxxxxxxxxxxxxxxxxx
Hi, this could be an ASP, IIS or SQL server question so please bear with
me!

We have an sql server 2000 machine and our IIS 6 machine running
seperately but on the same domain. I can connect fine to the database
without using impersonation, but when it's enabled I get the error:
"Login failed for user '(null)'. Reason: Not associated with a trusted SQL
Server connection."
I've tried looking into this, and noted suggestions of copying accounts to
the database server machine.. is this really necessary? they're on the
same domain, and that would be lots of hassle as I'm hoping to allow
anyone on the domain access to the pages, with authorisation being ran
against the sql server roles/security groups.

Hope my query makes sense.. for info when I check
System.Security.Principal.WindowsIdentity.GetCurrent().Name I get the
expected result.

cheers for any help,
Chris



.



Relevant Pages

  • Re: A newbie need help for SQL XML
    ... What OS is this machine running? ... >I am trying to set up my SQL server so that I can get recordset in XML ... > 2) Opened the IIS virtual dir. for SQL and created a virtual ...
    (microsoft.public.sqlserver.xml)
  • ASP Impersonation - null user
    ... Hi, this could be an ASP, IIS or SQL server question so please bear with me! ... the database server machine.. ...
    (microsoft.public.sqlserver.security)
  • Re: New to Merge/Replication
    ... ADO.NET 3.0 includes "Synchronization Services" that does not require IIS. ... Hitchhiker's Guide to Visual Studio and SQL Server ... It was my deepest hope that Merge/Replication between SQL Compact Edition and SQL Server 2005 Enterprise Edition would have it's own sync services NOT dependent on IIS. ... You can use merge replication with SQL Server on your main desktop serving as the publisher with SQL Compact on PPC, TabletPC, or other desktops as subscribers, so that would probably be the easiest solution for you. ...
    (microsoft.public.sqlserver.ce)
  • Re: Help on synch to SQL server
    ... from SQL CE to SQL Server from your smart-device application's code. ... This can occur whenever the device has a network path to IIS, ... Unlike merge replication between SQL Servers where you can use RMO ... Ideally I would like to use Sql CE to synch with a SQL ...
    (microsoft.public.sqlserver.ce)
  • Re: SMS_MP_CONTROL_MANAGER error 4960
    ... When I try to restart the IIS it says nothing.... ... Manually restart the SMS Agent Host service on the MP. ... MP encountered an error when connecting to SQL Server. ... The Default Web Site is disabled in IIS. ...
    (microsoft.public.sms.setup)