• 问题:Cannot execute a program. The command being executed was "C:\Windows\Microsoft.NET\Framework\v2.0.50727\csc.exe"


    今天按照往常一样,运行项目,却不能登录了。并且抛出来一个异常。“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移除掉。 在次运行程序,一切正常!

  • 相关阅读:
    session的使用
    不可变对象的魅力
    协变和逆变
    LaTeX 学习小结
    KMP 算法的两种实现
    MySQL MVCC
    Java 并发之 Executor 框架
    Java 动态代理的简单使用和理解
    Java 偏向锁、轻量级锁和重量级锁
    事件循环和协程
  • 原文地址:https://www.cnblogs.com/icebutterfly/p/1999866.html
Copyright © 2020-2023  润新知