none
WCF. IIS 6.0. access denied on dll.

    Question

  • IIS 6.0 on windows server 2003 R2, .NET 3.5 SP1.
    WCF service is hosted on IIS, the service consist of several dlls. some of them provide services, others contain BL. When user sends request to the service, the service impersonates user with "delegation" level, and then connects to database server under the user context.

    The problem. When we update some dlls in web site bin folder, and then reset IIS, the next request to the service from the client side faults with "Access denied" error to one of BL dlls. We can resolve this situation by clearing ASP.NET cache only.

    We cannot understand the reason of this problem a long time.

    Help, please.

     

    Tuesday, May 18, 2010 7:31 AM

All replies

  • Hi,

    Could you clarify what steps did you do when you "update some dlls" and "reset IIS"? In addition when you get this error message could you please check ACL of the dll file that cause this exception? Can you find any differences between the working and non-working dll?


    Please remember to mark the replies as answers if they help and unmark them if they provide no help. Windows Azure Platform China Blog: http://blogs.msdn.com/azchina/default.aspx
    Thursday, May 20, 2010 3:21 AM
    Moderator
  • Hi VIH,

    Since you're using impersonation at WCF service-side, it is also possibly the access denied error is related to the impersonated security context. For file access error, you can use process monitor to trace the detailed error entries (like path and user account information).

    #Process Monitor v2.91
    http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Wednesday, May 26, 2010 3:54 AM
    Moderator