tag:blogger.com,1999:blog-696327788622858126.post173823347804785614..comments2024-03-15T00:19:21.858-07:00Comments on The DotNet Experience: Resetting local Ports and Devices from .NETDaniel Grundhttp://www.blogger.com/profile/12663026847838584002noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-696327788622858126.post-41996253479951178832020-01-22T05:33:48.888-08:002020-01-22T05:33:48.888-08:00Hi Matthew, the blog is old but the topic is still...Hi Matthew, the blog is old but the topic is still relevant. I also received an UnauthorizedAccessException and maybe following statement applies to the `SetupDiCallClassInstaller(DiFunction.PropertyChange, ...)` call:<br />> The caller of SetupDiChangeState must be a member of the Administrators group.<br />See https://docs.microsoft.com/en-us/windows/win32/api/setupapi/adabruhttps://www.blogger.com/profile/15385497653255676097noreply@blogger.comtag:blogger.com,1999:blog-696327788622858126.post-25999347014255983062016-10-28T08:06:29.094-07:002016-10-28T08:06:29.094-07:00Daniel, I found this article and was very excited ...Daniel, I found this article and was very excited to find a way to programmatically reset COM ports since my company has a system that uses serial comms from a webAPI process and those ports occasionally will lock up. I incorporated your code into our pre-connection tests and have found that the calls to TryResetPortByName don't seem to work. I continue to get UnauthorizedAccessExceptions Matthew Belkhttps://www.blogger.com/profile/17940706819789717468noreply@blogger.comtag:blogger.com,1999:blog-696327788622858126.post-21398777865051183282014-07-09T03:49:25.547-07:002014-07-09T03:49:25.547-07:00ok sryok sryShayhttps://www.blogger.com/profile/13696020900734801951noreply@blogger.comtag:blogger.com,1999:blog-696327788622858126.post-53209840179528092242014-07-09T03:23:44.168-07:002014-07-09T03:23:44.168-07:00Did you really read my article? Of course, I took ...Did you really read my article? Of course, I took some code from other posts, but there are the corresponding references in the article (e.g. http://www.eggheadcafe.com/community/csharp/2/10315145/enabledisable-comm-port-by-programming.aspx). These other posts were the foundation for the solution I came up with and that helped me back then when I needed that functionality in a project. I would Daniel Grundhttps://www.blogger.com/profile/12663026847838584002noreply@blogger.comtag:blogger.com,1999:blog-696327788622858126.post-45171699938545601422014-07-09T02:22:51.222-07:002014-07-09T02:22:51.222-07:00Ok ok, you didn't take it from here, but all t...Ok ok, you didn't take it from here, but all the unexplained method calls in your article (methods you can find in some other similar articles) are an obvious proof that you took your code from another article (GetGuidFromName, GetDeviceInfoData, etc)Shayhttps://www.blogger.com/profile/13696020900734801951noreply@blogger.comtag:blogger.com,1999:blog-696327788622858126.post-10316397231373637452014-07-08T11:05:11.416-07:002014-07-08T11:05:11.416-07:00Hi Shay. But how should this be possible? The post...Hi Shay. But how should this be possible? The post you referenced is from october 2013. My post was written in may 2012. As far as I know, I have no time machine that allows me to travel to the future. I would really appreciate it for the future if you check you statements before blaming someone.Daniel Grundhttps://www.blogger.com/profile/12663026847838584002noreply@blogger.comtag:blogger.com,1999:blog-696327788622858126.post-88861767303304325642014-07-08T09:59:46.181-07:002014-07-08T09:59:46.181-07:00This comment has been removed by the author.Shayhttps://www.blogger.com/profile/13696020900734801951noreply@blogger.comtag:blogger.com,1999:blog-696327788622858126.post-35227002590269982372013-05-23T08:34:25.500-07:002013-05-23T08:34:25.500-07:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/17736544466810464356noreply@blogger.com