Form Control在IE中使用的问题
创建一个简单的窗体控件,包含了一些非托管代码,能在WindowsFormApplication中正常使用,但是IE中使用就不行了。需要权限之类,是非托管代码的原因,提示信息如下:
-----------------------
Microsoft .NET Framework
Application atempted to perform an operation not
allowed by the security policy. To grant this
applicaiton the required permission , contact your system
administrator, or use the Microsoft .NET Framework
Configuration tool.
If you click Continue, the application will ignore this
error and attempt to continue.
Request for the permission of type
'System.Security.Permissions.SecurityPermission,
mscorlib, version=2.0.0.0, Cultrue=neutral,
PublicKeyToken=xxxxxxxx' failed.
-----------------------
1.包含非托管代码的窗体控件确定能在IE下使用吗?
2.在管理工具的.net 配置里设置了可以访问非托管代码还是原来的错误,请教如何解决?
[解决办法]
非托管代码要用system用户来运行吧。试试模拟用户
[解决办法]