Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Problem calling gdi32 from ASP.NET via Xsl

Reply
Thread Tools

Problem calling gdi32 from ASP.NET via Xsl

 
 
Matt
Guest
Posts: n/a
 
      11-19-2004
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(Fr ameSecurityDescriptor
secDesc, IPermission demand, PermissionToken permToken)
at System.Security.CodeAccessSecurityEngine.Check(Per missionToken
permToken, CodeAccessPermission demand, StackCrawlMark& stackMark, Int32
checkFrames, Int32 unrestrictedOverride)
at System.Security.CodeAccessSecurityEngine.Check(Cod eAccessPermission
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!

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
gdi32.dll program hang (the ghost in the machine) miso@sushi.com Windows 64bit 6 12-30-2006 08:45 PM
gdi32.dll program hang miso@sushi.com Windows 64bit 0 09-12-2006 06:36 AM
gdi32.dll program hang miso@sushi.com Windows 64bit 6 08-01-2006 03:24 AM
Why we need symbol files for GDI32.dll or Kernel32.dll etc... Saurabh Aggrawal C++ 5 03-08-2005 09:16 AM
WAOl IPFs in GDI32 ??? HOIB Computer Support 6 09-05-2004 04:06 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57