<small id='Bjs8J'></small><noframes id='Bjs8J'>

    <bdo id='Bjs8J'></bdo><ul id='Bjs8J'></ul>
<legend id='Bjs8J'><style id='Bjs8J'><dir id='Bjs8J'><q id='Bjs8J'></q></dir></style></legend>
  • <i id='Bjs8J'><tr id='Bjs8J'><dt id='Bjs8J'><q id='Bjs8J'><span id='Bjs8J'><b id='Bjs8J'><form id='Bjs8J'><ins id='Bjs8J'></ins><ul id='Bjs8J'></ul><sub id='Bjs8J'></sub></form><legend id='Bjs8J'></legend><bdo id='Bjs8J'><pre id='Bjs8J'><center id='Bjs8J'></center></pre></bdo></b><th id='Bjs8J'></th></span></q></dt></tr></i><div id='Bjs8J'><tfoot id='Bjs8J'></tfoot><dl id='Bjs8J'><fieldset id='Bjs8J'></fieldset></dl></div>

        <tfoot id='Bjs8J'></tfoot>
      1. 访问串行端口需要哪些 ASP.NET 权限?

        What ASP.NET permissions do I need to access a serial port?(访问串行端口需要哪些 ASP.NET 权限?)
          <bdo id='Go9or'></bdo><ul id='Go9or'></ul>
              <i id='Go9or'><tr id='Go9or'><dt id='Go9or'><q id='Go9or'><span id='Go9or'><b id='Go9or'><form id='Go9or'><ins id='Go9or'></ins><ul id='Go9or'></ul><sub id='Go9or'></sub></form><legend id='Go9or'></legend><bdo id='Go9or'><pre id='Go9or'><center id='Go9or'></center></pre></bdo></b><th id='Go9or'></th></span></q></dt></tr></i><div id='Go9or'><tfoot id='Go9or'></tfoot><dl id='Go9or'><fieldset id='Go9or'></fieldset></dl></div>

                <tbody id='Go9or'></tbody>
              <tfoot id='Go9or'></tfoot><legend id='Go9or'><style id='Go9or'><dir id='Go9or'><q id='Go9or'></q></dir></style></legend>

              1. <small id='Go9or'></small><noframes id='Go9or'>

                • 本文介绍了访问串行端口需要哪些 ASP.NET 权限?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在开发一个 asp.net 应用程序,我希望它通过串行端口与 arduino 板通信.我创建了一个可以做到这一点的 Windows 应用程序并且它工作,但是当我在我的 asp.net 应用程序上使用相同的代码时,我得到一个异常,说访问端口 COM7 被拒绝".现在我一直在网上寻找答案,我遇到了一个论坛,他们正在讨论通过使用模拟授予 asp.net 权限.我对使用 .net 框架和串行端口非常陌生.如果有人可以提供帮助,请做或发布可能有帮助的链接.

                  I am working on a asp.net application and I want it to communicate to a arduino board via a serial port. I created a windows application that could do that and it worked, but when I use the same code on my asp.net application, I get an exception that says that "Access to the port COM7 is denied". Now I have been surfing the net for an answer, I came across a forum where they were talking about granting permissions to asp.net by using impersonation. I am very new at using the .net framework and serial port. If anyone can help, please do or maybe post a link that might be helpful.

                  提前感谢.

                  推荐答案

                  ASP.net 在您的计算机上使用特定的用户帐户.就像您登录的主要帐户一样.该用户帐户无权对硬件进行任何操作.

                  ASP.net uses a specific user account on your computer. Just like your main account you log in with. That user account has no permissions to do anything with the hardware.

                  要在 ASP.net 中模拟其他帐户,请执行以下操作:

                  To impersonate the other account in ASP.net you do the following:

                  创建一个与网络用户具有所有相同权限的帐户,然后在 web.config 文件中的配置标签之间添加以下代码

                  Create an account that has all of the same permissions that the web user does, then in the web.config file add the following code in between the configuration tags

                  <identity impersonate="true" userName="somedomain
                  ewUser" password="newUsersPassword" />
                  

                  这篇关于访问串行端口需要哪些 ASP.NET 权限?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Multicast delegate weird behavior in C#?(C# 中的多播委托奇怪行为?)
                  How to store delegates in a List(如何将代表存储在列表中)
                  Delegate.CreateDelegate() and generics: Error binding to target method(Delegate.CreateDelegate() 和泛型:错误绑定到目标方法)
                  CreateDelegate with unknown types(具有未知类型的 CreateDelegate)
                  Does Funclt;Tgt;.BeginInvoke use the ThreadPool?(Funclt;Tgt;.BeginInvoke 使用线程池吗?)
                  How to create a delegate to an instance method with a null target?(如何为具有空目标的实例方法创建委托?)
                    <tbody id='2LSn5'></tbody>

                  <tfoot id='2LSn5'></tfoot>

                    <small id='2LSn5'></small><noframes id='2LSn5'>

                      1. <legend id='2LSn5'><style id='2LSn5'><dir id='2LSn5'><q id='2LSn5'></q></dir></style></legend>

                          <i id='2LSn5'><tr id='2LSn5'><dt id='2LSn5'><q id='2LSn5'><span id='2LSn5'><b id='2LSn5'><form id='2LSn5'><ins id='2LSn5'></ins><ul id='2LSn5'></ul><sub id='2LSn5'></sub></form><legend id='2LSn5'></legend><bdo id='2LSn5'><pre id='2LSn5'><center id='2LSn5'></center></pre></bdo></b><th id='2LSn5'></th></span></q></dt></tr></i><div id='2LSn5'><tfoot id='2LSn5'></tfoot><dl id='2LSn5'><fieldset id='2LSn5'></fieldset></dl></div>
                          • <bdo id='2LSn5'></bdo><ul id='2LSn5'></ul>