Partial trust

Feb 10, 2009 at 12:34 PM
I really love this framework, but I have to host my application in a shared hosting environment.
Is there a way to modify the code so it will run in a partial trust environment?

I get a permission denied error at in DynamicObjec.cs (Data) line 604


MemoryTypeBuilder tb = MemoryAssembly.Instance.DefineType(ta, SourceType, interfaces, GetCustomAttributes(SourceType));

Thanks in advance!


Feb 10, 2009 at 1:44 PM
This looks like the server doesn't allow dynamic type.
I think you can set it to use reflection instead of emit and avoid to use dynamic object.
It will lose some features but it might be the only way to make it work for your server....