Error calling the DLL

  • When I run this, I get the following error:

    [rsRuntimeErrorInExpression] The Color expression for the textrun ‘textbox1.Paragraphs[0].TextRuns[0]’ contains an error: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

    I tried adding the following code:

    Dim Permission As New System.Data.SqlClient.SqlClientPermission(System.Security.Permissions.PermissionState.Unrestricted)

    Permission.Assert()

    But that didn't work...

    I'm currently running this on my VISTA machine, but would like to deploy it to a real server after I get it working.

    Any help would be greatly appreciated 🙂

Viewing 0 posts

You must be logged in to reply to this topic. Login to reply