問題:Cannot execute a program. The command being executed was “C:\Windows\Microsoft.NET\Framewor

來源:互聯網
上載者:User

今天按照往常一樣,運行項目,卻不能登入了。並且拋出來一個異常。“Cannot execute a program. The command being executed was "C:\Windows\Microsoft.NET\Framework\v2.0.50727\csc.exe" /noconfig /fullpaths”

上網查查,說會在訪問webservice的時候會遇到這樣的問題。

“If you use Simple Object Access Protocol (SOAP) to call the WebServices method from an .aspx page, the .aspx page may fail when you run the Microsoft Internet Information Services (IIS) Lockdown tool. In addition, you may receive the following error message:

[ExternalException (0x5): Cannot execute a program. The command being executed was "d:\winnt\microsoft.net\framework\v1.0.3408\csc.exe" /noconfig @"D:\WINNT\TEMP\eyrpuhyg.cmdline".]

This problem only affects Web applications or Web services that are clients of a Web service and that impersonate the Anonymous user account. ”

 

在根據自己的情況,好像真是處在訪問webservice時出現的問題。因為我們在進入項目的時候,使用者名稱和密碼都是通過webservice來驗證的!

回想起金山毒霸曾經攔截過自己的項目。就去金山毒霸哪裡查詢一下日誌。結果被我發現了!

金山毒霸->檔案即時防護->查看日誌 彈出:

看到csc.exe被誤認為注入程式,給阻止了。

隨便點擊操作中的“永久允許”或“永久阻止”,彈出“程式行為管理器”

在阻止列表中將csc.exe移除掉。 在次運行程式,一切正常!

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.