Boo
  1. Boo
  2. BOO-1215

Boo Does not Work in Medium Trust

    Details

    • Type: Improvement Improvement
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.1
    • Fix Version/s: 0.9.2
    • Component/s: Compiler
    • Labels:
      None
    • Patch Submitted:
      Yes
    • Number of attachments :
      3

      Description

      Many shared hosting companies such as Mosso are moving over to medium trust on Microsoft's recommendation. As of .net 2.0 sp1, ReflectionPermissionFlag.ReflectionEmit is only required when emitting debug symbols. It should be only be requested if CompilerParameters.Debug == true.

      1. mediumtrust.patch
        2 kB
        Joao Braganca
      2. mediumtrustier.patch
        15 kB
        Joao Braganca
      3. mediumtrust-missingfile.patch
        1 kB
        Joao Braganca

        Activity

        Hide
        Cedric Vivier added a comment -

        Landed in rev. 3224. Thanks!

        Show
        Cedric Vivier added a comment - Landed in rev. 3224. Thanks!
        Hide
        Joao Braganca added a comment -

        Still doesn't work in medium trust.

        Show
        Joao Braganca added a comment - Still doesn't work in medium trust.
        Hide
        Joao Braganca added a comment -

        More hangups for boo to run in medium trust:
        Added AllowPartiallyTrustedCallers to assemblyinfo
        Check permissions before calling:

        • Assembly.Location
        • Directory.GetCurrentDirectory
        • Environment.GetEnvironmentVariable
        • wiring AppDomain.TypeResolve
          Replaced FormatterServices.GetUninitializedObject with Activator.CreateInstance in NodeImpl.cs template
          changed Assembly.GetName to new AssemblyName()
        Show
        Joao Braganca added a comment - More hangups for boo to run in medium trust: Added AllowPartiallyTrustedCallers to assemblyinfo Check permissions before calling: Assembly.Location Directory.GetCurrentDirectory Environment.GetEnvironmentVariable wiring AppDomain.TypeResolve Replaced FormatterServices.GetUninitializedObject with Activator.CreateInstance in NodeImpl.cs template changed Assembly.GetName to new AssemblyName()
        Hide
        Joao Braganca added a comment -

        Added missing file.

        Show
        Joao Braganca added a comment - Added missing file.
        Hide
        Cedric Vivier added a comment -

        Landed in rev. 3381

        Show
        Cedric Vivier added a comment - Landed in rev. 3381

          People

          • Assignee:
            Cedric Vivier
            Reporter:
            Joao Braganca
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: