Boo

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
    06/Jul/09 5:44 PM
    2 kB
    Joao Braganca
  2. mediumtrustier.patch
    09/Jul/09 1:09 PM
    15 kB
    Joao Braganca
  3. mediumtrust-missingfile.patch
    09/Jul/09 1:18 PM
    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

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: