I wrote a custom winform control in c#(dotnet1.1), hosted in IE, like this:
<OBJECT id="safe"
style="Z-INDEX: 101; LEFT: 48px; WIDTH: 216px; POSITION: absolute; TOP:
24px; HEIGHT: 152px"
height="152" width="216"
classid="http:SafeTest.dll#SafeTest.UserControl"
VIEWASTEXT>
</OBJECT>
and i have a javascript, like this
document.getElementById("safe").Openxxx(aBase64String);
The javascript call a method (Openxxx) of my usercontrol, which Deserialize
an object from the
a memoryStream decoded from aBase64String.
But a exception raised: Type is not resolved for Member xxx...
and sometimes security exception,
and sometimes: Unable to cast object of type 'myClass' to type 'myClass'
The usercontrol's dll was signed with a strong name,
I've add a new code group on the client machine, fulltrust to the strong
name
[assembly: AllowPartiallyTrustedCallers()]
and the version was frozen at:
[assembly: AssemblyVersion("1.0.10.10")]
Is there a clear architecture for host dotnet control in IE?
Thanks a lot.
bolo - 09 Mar 2008 10:38 GMT
By the way, serialization is OK despite deserialization fail.
I found my dll ownloaded into c:\windows\assembly\download\ (actully :
c:\documents and settings\...)
After I copy the dll to c:\windows\assembly with "gacutil -i", it works
fine.
> I wrote a custom winform control in c#(dotnet1.1), hosted in IE, like
> this:
[quoted text clipped - 30 lines]
>
> Thanks a lot.