C# & vs note

  • C#中正则表达表判断是否为汉字:
    [\u4e00-\u9fa5]
    http://topic.csdn.net/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,则退出无任何症状

     

posted @ 2007-11-06 17:37  margiex  阅读(979)  评论(0编辑  收藏  举报