My Problem:
I need some C# code which creates a thumbnail from a video. The only
catch is that I need to run it on a shared host (web server) which will
only support assemblies that have the Allow Partially Trusted Callers
(APTCA) attribute.
Solution background:
I have successfully wrapped the qedit.dll using the tlbimp.exe
application, this enables me to create a strong named assembly however
there appears to be no way of specifying the APTCA attribute.
The Detail:
I have implemented a HttpHandler which when the suffix ".thumb" is
appended to an image returns a Thumbnail of that image to the browser, I
have extended this to include wmv files, The Image thumbnails run ok at
either trust level however as the assembly I have used does not support
the APTCA attribute attempts to create a thumbnail for a video cause the
error "System.Security.SecurityException: That assembly does not allow
partially trusted callers."
Question:
Does anyone have any solutions to add the APTCA attribute to my interop
assembly, or other assembly which may fit the bill?
I'm on a shared host so I'm not able to make any reconfigurations of the
live server.
TIA
MC