Winform control hosted on internet explorer fails displaying a R

S

Suchitra

Description :Windows control is hosted in Internet Explorer to print a form
based on certain coordinate positions retrieved from WebServer. The Control
uses Printing resources of the client machine.

Creation of the Windows control (PrinterCtrl.dll)

1.Derives from System.Windows.Forms.UserControl

2.Permission requested for the assembly
a.[assembly:
SecurityPermission(SecurityAction.RequestMinimum,Assertion=true,Execution=true)]
b.[assembly:
PrintingPermission(SecurityAction.RequestMinimum,Level=System.Drawing.Printing.PrintingPermissionLevel.AllPrinting)]
c.[assembly:
WebPermission(SecurityAction.RequestMinimum,Unrestricted = true)]

3.CodeGroup and PermissionSet in CAS under Machine Policy
1. Permission Set has 3 assigned permissions (PrinterCtrlPerms)
• Security permission with
1. Enable Security permission
2. Assert any permissions that has been granted
• Printing
1. Grant assemblies unrestricted access to printers
• Web Access
1. Grant assemblies access to following website with (http://sitename/.*)
with Accept and Connect options checked.
2.
2.CodeGroup (PrinterCtrlCodeGroup)
Created new codegroup using URL as membership condition
URL : http://sitename/PrinterCtrl.dll
Selected “PrinterCtrlPerms†as Permission Set .

4.Added the website “http://sitename†to trusted sites in Internet Explorer.
5.The Control’s assembly and Web Page which contains this control are both
located with same directory.
6.The Execute permission to Virtual directory containing the page and
control is limited to “Scripts onlyâ€.


The control works properly in the development environment, but fails on
certain Client machines by displaying a Red X mark instead of the control. No
script error shows at the bottom of the page.
The Control was not visible in Assembly Download Cache using gacutil /ldl
IE HOST does not create any logs on client machines since the control is
not downloaded.
Tried to run FUSLOGVW.exe,but no files are created
The Client environment has Windows XP with Service Pack 2 and .net 1.1
installed.(Does not have .Net 2.0 installed)
Added IExplorer.exe.Config file to the Internet explorer install directory
with supported runtime as 1.1.4322
Added System.Security.AllowPartiallyTrustedCallersAttribute to the
Assemblyinfo.cs


The client machines where they are failing currently, could access them
sucessfully earlier.I was wondering if any patches or security updates by
microsoft is now disabling them for being downloaded.


I would appreciate any insight to the reason that is preventing the control
from showing up in IE browser.


Regards,
Suchitra
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top