I am designing a website, which requires dot matrix printing (Fast - printer resident font printing). For that, I designed activex control. It is displayed in browser window, but when it's button is clicked it raises following error.
I added this AssemblyInfo.cs
[assembly: System.Security.AllowPartiallyTrustedCallers]
[assembly: System.Security.Permissions.PermissionSet(System.Security.Permissions.SecurityAction.RequestMinimum, Name = "FullTrust")]
I also made Trust assembly setup in .NET 2.0 configuration, so that activx is displayed in browser window.
Problem occurs in developer machine as well as in client.
This printing class (got from Microsoft website) works fine in desktop applications.
Please guide me to solve this problem.
Error displayed is as follows;
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.Security.Secu ...
Go to the complete details ...