08-26-2014 12:50 AM
an error occurs when trying the detect function using system.net.sockets as show in below.
Possible reason(s):
LabVIEW: A .NET exception occurred in an external assembly. For information about correcting this error, copy the following exception (in bold), and search the Microsoft Developer Network (MSDN) Web site or the Web for a possible explanation.
System.ArgumentNullException in Untitled.vi
OS: Win7 Enterprise X64, the same code works on Win XP OS with no such error.
Solved! Go to Solution.
08-26-2014 01:34 AM
http://msdn.microsoft.com/zh-cn/library/system.net.sockets.socket.shutdown(v=vs.100).aspx
as the MSDN say, the parameter of shutdown is "SocketShutdown how". It include send, recieve and both. The error occured in shutdown? your pic didn`t show shutdown.
08-26-2014 01:44 AM
it will call some property and method, and result the error:
Error creating instance of Socket in assembly System.Net.Sockets.Socket, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, (System.Net.Sockets.SocketException: 以一种访问权限不允许的方式做了一个访问套接字的尝试。) <append><b>System.Net.Sockets.SocketException</b> in Untitled 4.vi
as it failed to create the constructor, that is why it also show "shutdown how"
08-26-2014 01:52 AM
I have solved this issue by run the code as administrator.
anyway, thx for your response!