serialization problem when host a custom control in IE
- From: "bolo" <hbolo@xxxxxxxxxxx>
- Date: Fri, 7 Mar 2008 18:51:17 +0800
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.
.
- Follow-Ups:
- Prev by Date: Re: Something eats next click after click on ToolStripButton
- Next by Date: Re: Something eats next click after click on ToolStripButton
- Previous by thread: Re: Something eats next click after click on ToolStripButton
- Next by thread: Re: serialization problem when host a custom control in IE
- Index(es):