Click here to Skip to main content
15,892,737 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I had created created a windows control library and the control will access the printer configured in the client machine to print the generated file with some configuration.

Now i am having the myPage.aspx(Page which is having the Windows Control Library) in the my system and it's working fine when i am accessing it from some other system.

After deploying it in the server when i am trying to access the myPage.aspx, it's displaying the Windows Control Library. Instead of that it's displaying empty space in that place.
Please help me to slove this issue.

Thanks in advance.
- Muthu pandi
Posted

1 solution

Hosting a Windows Control in ASP.NET is not a good practice it has several limitations

1- It requires both that the client machines have, at minimum, the .NET redistributable installed.

2- IE 5+ browser.

3- Not a feasible solution for Internet based application.

4- All controls and libraries calls must be "safe". no file i/o, no registry access, etc. the browser control is not allowed

If you still want to use this then check that the Internet Explorer configuration security policy of your system allows it to run from the server. You can do this by identifying your hosting page as belonging to the Trusted zone. To set your site as part of the Trusted zone, from IE choose Tools->Options->Security->Trusted Sites and then add your site to the list and then click OK.
 
Share this answer
 
Comments
tomuthupandi 26-May-10 9:41am    
Hi Prakash,

Thank for your reply. Even after adding it into the Trusted Site zone, it's not working fine.

Since i want to configure(For alignment) the printer connected to the client machine, i choose this WindowsControlLibrary Option. If you have any other better option for the Printer configuration, Pls suggest me.

- Muthu pandi

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900