M
Mr.Cyber
Hi, Borthers!!!
I have A Problem. My code builds some picture dynamically. To do this I'm
using Metafile (System.Drawing.Imaging.Metafile). All that works Fine (on my
local machine) untill we run on hosting environment where is set medium trust
level.
As result I catch the following:
at System.Security.CodeAccessSecurityEngine.CheckHelper(PermissionSet
grantedSet, PermissionSet deniedSet, CodeAccessPermission demand,
PermissionToken permToken)
at System.Security.CodeAccessSecurityEngine.Check(PermissionToken permToken,
CodeAccessPermission demand, StackCrawlMark& stackMark, Int32 checkFrames,
Int32 unrestrictedOverride)
at System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap,
StackCrawlMark& stackMark)
at System.Security.CodeAccessPermission.Demand()
at System.Drawing.Imaging.Metafile..ctor(IntPtr referenceHdc, EmfType
emfType, String description)
at System.Drawing.Imaging.Metafile..ctor(IntPtr referenceHdc, EmfType emfType)
This is a part of stack trace. It's clear that I have a problem with
security settings, namely with Trust Level.
Is There Any Solution in this situation at all?????????
There is no way to change security settings on host machine. I should think
something with my code. But WHAT exactly????
I have A Problem. My code builds some picture dynamically. To do this I'm
using Metafile (System.Drawing.Imaging.Metafile). All that works Fine (on my
local machine) untill we run on hosting environment where is set medium trust
level.
As result I catch the following:
at System.Security.CodeAccessSecurityEngine.CheckHelper(PermissionSet
grantedSet, PermissionSet deniedSet, CodeAccessPermission demand,
PermissionToken permToken)
at System.Security.CodeAccessSecurityEngine.Check(PermissionToken permToken,
CodeAccessPermission demand, StackCrawlMark& stackMark, Int32 checkFrames,
Int32 unrestrictedOverride)
at System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap,
StackCrawlMark& stackMark)
at System.Security.CodeAccessPermission.Demand()
at System.Drawing.Imaging.Metafile..ctor(IntPtr referenceHdc, EmfType
emfType, String description)
at System.Drawing.Imaging.Metafile..ctor(IntPtr referenceHdc, EmfType emfType)
This is a part of stack trace. It's clear that I have a problem with
security settings, namely with Trust Level.
Is There Any Solution in this situation at all?????????
There is no way to change security settings on host machine. I should think
something with my code. But WHAT exactly????