C# & vs note

  • C#中正则表达表判断是否为汉字:
    [\u4e00-\u9fa5]
    http://topic.youkuaiyun.com/t/20040911/09/3362107.html
  • Cannot execute a program. The command being executed was "C:\Windows\Microsoft.NET\Framework\v2.0.50727\csc.exe" /noconfig /fullpaths @"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\testweblib\34720b96\7b1dfc2c\kieqzf7r.cmdline".

    Exception Details: System.Runtime.InteropServices.ExternalException: Cannot execute a program. The command being executed was "C:\Windows\Microsoft.NET\Framework\v2.0.50727\csc.exe" /noconfig /fullpaths @"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\testweblib\34720b96\7b1dfc2c\kieqzf7r.cmdline".

    Stack Trace:
    [ExternalException (0x10b): Cannot execute a program. The command being executed was "C:\Windows\Microsoft.NET\Framework\v2.0.50727\csc.exe" /noconfig /fullpaths @"C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\testweblib\34720b96\7b1dfc2c\kieqzf7r.cmdline".]
       System.CodeDom.Compiler.Executor.ExecWaitWithCaptureUnimpersonated(SafeUserTokenHandle userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName, String trueCmdLine) +2160
       System.CodeDom.Compiler.Executor.ExecWaitWithCapture(SafeUserTokenHandle userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName, String trueCmdLine) +110
     
     如果在IE中访问asp.net webapp报上述,但build website is ok, then remove this project from solution and change it's directory name and add it to solution again with exsiting website menu. maybe it will works now.

  • use sn.exe to view assembly's public token: sn.exe -Tp assemblyfile.
    ref: http://www.andrewconnell.com/blog/archive/2006/09/15/4587.aspx

  • 使用backgroundworker时,如果在dowork中出现异常错误,则此执行立即退出,没有任何提示,如没有传递argument给worker,但调用了e.argument,则退出无任何症状

     

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值