Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm Controls / March 2008

Tip: Looking for answers? Try searching our database.

serialization problem when host a custom control in IE

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bolo - 07 Mar 2008 10:51 GMT
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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.