miranhelbl / nmodbus

Automatically exported from code.google.com/p/nmodbus
0 stars 0 forks source link

Accessing ModbusIpMaster while remote debugging throws SecurityException #72

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a Project using ModbusIpMaster 
2. Deploy it on another machine using remore debugger

What is the expected output? What do you see instead?
On executing ModbusIpMaster code while remote debugging it throws a 
SecurityException "That assembly does not allow partially trusted callers". 

What version of the product are you using? On what operating system?
1.11.0.0

Please provide any additional information below.
If one runs the project directly from the deploy PC all is OK.
I have tried with Win7, WinXP as developing environemt and WinXP as deploying 
environment.

Original issue reported on code.google.com by matteo...@gmail.com on 22 Jul 2014 at 1:03

GoogleCodeExporter commented 8 years ago
corrected inserting 
using System.Security;
[assembly: AllowPartiallyTrustedCallers]
in Modbus.cs and recompiling

Original comment by matteo...@gmail.com on 26 Aug 2014 at 8:52