Another AllowPartiallyTrustedCallers Question

From: jadams (adams114_at_comcast.net)
Date: 06/15/05

  • Next message: Viorel Ghilas: "PrincipalPermission trouble"
    Date: 15 Jun 2005 13:04:53 -0700
    
    

    Hello,

    I'm sure this is a common question so please forgive me if I'm
    irritating anyone with it but I've not been having good luck finding a
    'dumbed down' answer for this.

    I've been looking around the net and found the attribute <Assembly:
    AllowPartiallyTrustedCallers()> is supposed to solve my security rules
    violation problem.

    My knowledge of the asp.net platform has holes in it and I'm not sure
    where this assembly attribute belongs. I assume in the assembly file
    due to the name and have tried placeing the attribute in the
    AssemblyInfo.vb file but still have the same security error.

    Also, is there any code I need to run in a
    AllowPartiallyTrustedCallers() procedure? I cannot seem to find
    information concerning this.

    Here's what I am trying to do that causes the security exception:

    I am trying to update a MSSQL server database after a user clicks on a
    button in a DataGrid control. One can navigate the DataGrid succesfully
    (paging, etc) but once the Update button (which fires the event
    containing the DB update code) the exception is thrown.

    My host says that if an application requires a FullTrust that I can
    override this with the AllowPartiallyTrustedCallers attribute, but
    after adding the new code, the application haults in the same location.

    Thank you in advance for any help you may offer.


  • Next message: Viorel Ghilas: "PrincipalPermission trouble"
    Loading