Problem calling gdi32 from ASP.NET via Xsl

M

Matt

I have a component that makes call to gdi32 through a DLLImport. This call
is failing with the following exception:

gmCompose.buildFeatureCollection()(17||Error [Request for the permission of
type System.Security.Permissions.SecurityPermission, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
failed.], [ at
System.Security.SecurityRuntime.FrameDescHelper(FrameSecurityDescriptor
secDesc, IPermission 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.Graphics.ReleaseHdc(IntPtr hdc)
at CMT.Compose.addElementToFeatures(ArrayList& Features, String FontFace,
Int32 FontSize, String Delimiter, Int32 Rank, String Value, String Name,
Int32& HighestRank)
at CMT.Compose.buildFeatureCollection(XmlNode xmlParagraph, Hashtable
htParaStyle, ArrayList& alFeatures, Int32& HighestRank, Hashtable&
htElements)]

This works on two machines here, but not on two others. I have looked for
commonality between OS, .NET Security Config, user permissions,
machine.config processModel usernames, etc...

The Compose object is created in the web's .NET code behind, and passed into
an Xsl document as a parameter. The contents of the Xsl doc then call the
various methods of the component. The Compose class itself generated the
above error. Any help would be appreciated!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top