Silverlight runs in a browser sandbox, so it does not allow you to directly access an unmanaged assembly. Although you are running unmanaged code in a C # assembly, it still loads in the same application domain, which is limited by the same security restriction.
I read that you can use the html compatibility between silverlight and ActiveX, but I have not experienced this myself. In addition, you can deploy the full WPF application, and if you sign it with the appropriate certificate and security setting, it will be able to access unmanaged code - if this is an option.
Fadrian sudaman
source share