Problem calling gdi32 from ASP.NET via Xsl

Discussion in 'ASP .Net Security' started by Matt, Nov 19, 2004.

  1. Matt

    Matt Guest

    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!
    Matt, Nov 19, 2004
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Badrinath Mohan

    Calling a COM component via C#(ASP .net)

    Badrinath Mohan, Nov 11, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    2,433
    Badrinath Mohan
    Nov 12, 2003
  2. Patrick
    Replies:
    2
    Views:
    648
    Steven Cheng[MSFT]
    Oct 1, 2004
  3. Gerry Hickman
    Replies:
    2
    Views:
    1,500
    Gerry Hickman
    Dec 14, 2005
  4. Replies:
    1
    Views:
    3,595
    A. Bolmarcich
    May 27, 2005
  5. Saurabh Aggrawal
    Replies:
    5
    Views:
    1,921
    Karl Heinz Buchegger
    Mar 8, 2005
Loading...

Share This Page