I believe the problem in boo was that the assembly asked for
ReflectionEmit. However, in net 2.0sp1 on you only need that if you
want to emit debug symbols. Unfortunately boo 0.9.1 breaks brail (and
I have 0 time to spend on that right now) so I can't test my theory :(

On Jun 21, 8:14 pm, Ayende Rahien <[email protected]> wrote:
> No, Binsor was never tested on medium trust.
> But Brail will work on medium trust if you precompile it.
> You can precompile Binsor as well, for that matter, which would make it work
>
> 2009/6/19 João Bragança <[email protected]>
>
>
>
> > Just wanted to know if anyone had experience setting up binsor and /
> > or brail in medium trust. I am moving my stuff over to mosso cloud
> > sites and it won't load Boo.Lang.Compiler.
>
> > Stack Trace:
>
> > [PolicyException: Required permissions cannot be acquired.]
> >   System.Security.SecurityManager.ResolvePolicy(Evidence evidence,
> > PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset,
> > PermissionSet& denied, Boolean checkExecutionPermission) +7604211
> >   System.Security.SecurityManager.ResolvePolicy(Evidence evidence,
> > PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset,
> > PermissionSet& denied, Int32& securitySpecialFlags, Boolean
> > checkExecutionPermission) +57
>
> > [FileLoadException: Could not load file or assembly
> > 'Boo.Lang.Compiler, Version=2.0.0.0, Culture=neutral,
> > PublicKeyToken=32c39770e9a21a67' or one of its dependencies. Failed to
> > grant minimum permission requests. (Exception from HRESULT:
> > 0x80131417)]
> >   System.Reflection.Assembly._nLoad(AssemblyName fileName, String
> > codeBase, Evidence assemblySecurity, Assembly locationHint,
> > StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean
> > forIntrospection) +0
> >   System.Reflection.Assembly.nLoad(AssemblyName fileName, String
> > codeBase, Evidence assemblySecurity, Assembly locationHint,
> > StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean
> > forIntrospection) +43
> >   System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef,
> > Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean
> > forIntrospection) +127
> >   System.Reflection.Assembly.InternalLoad(String assemblyString,
> > Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean
> > forIntrospection) +142
> >   System.Reflection.Assembly.Load(String assemblyString) +28
> >   System.Web.Configuration.CompilationSection.LoadAssemblyHelper
> > (String assemblyName, Boolean starDirective) +46
>
> > [ConfigurationErrorsException: Could not load file or assembly
> > 'Boo.Lang.Compiler, Version=2.0.0.0, Culture=neutral,
> > PublicKeyToken=32c39770e9a21a67' or one of its dependencies. Failed to
> > grant minimum permission requests. (Exception from HRESULT:
> > 0x80131417)]
> >   System.Web.Configuration.CompilationSection.LoadAssemblyHelper
> > (String assemblyName, Boolean starDirective) +613
>
> > System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory
> > () +203
> >   System.Web.Configuration.CompilationSection.LoadAssembly
> > (AssemblyInfo ai) +105
> >   System.Web.Compilation.BuildManager.GetReferencedAssemblies
> > (CompilationSection compConfig) +178
> >   System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath
> > configPath, Boolean supportLocalization, String outputAssemblyName)
> > +54
>
> > System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult
> > (Boolean isPrecompiledApp) +227
> >   System.Web.Compilation.BuildManager.CompileGlobalAsax() +52
> >   System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()
> > +337
>
> > [HttpException (0x80004005): Could not load file or assembly
> > 'Boo.Lang.Compiler, Version=2.0.0.0, Culture=neutral,
> > PublicKeyToken=32c39770e9a21a67' or one of its dependencies. Failed to
> > grant minimum permission requests. (Exception from HRESULT:
> > 0x80131417)]
>
> > System.Web.Compilation.BuildManager.ReportTopLevelCompilationException
> > () +58
> >   System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()
> > +512
> >   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager
> > appManager, IApplicationHost appHost, IConfigMapPathFactory
> > configMapPathFactory, HostingEnvironmentParameters hostingParameters)
> > +729
>
> > [HttpException (0x80004005): Could not load file or assembly
> > 'Boo.Lang.Compiler, Version=2.0.0.0, Culture=neutral,
> > PublicKeyToken=32c39770e9a21a67' or one of its dependencies. Failed to
> > grant minimum permission requests. (Exception from HRESULT:
> > 0x80131417)]
> >   System.Web.HttpRuntime.FirstRequestInit(HttpContext context)
> > +8890735
> >   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context)
> > +85
> >   System.Web.HttpRuntime.ProcessRequestNotificationPrivate
> > (IIS7WorkerRequest wr, HttpContext context) +333
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Rhino Tools Dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rhino-tools-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to