tryco.GenerateExecutable = false;

解决方案 »

  1.   

    add the following lines to see what's wrong:foreach (CompilerError ce in result.Errors)
    {
      System.Console.WriteLine("file:{0}, error:{1}, line:{2}", ce.FileName, ce.ErrorText,ce.Line);
    }
      

  2.   

    谢谢,原来是其中的global.asax和web.config文件编译器不能编译,可是我要生成的dll如果没有这两个文件,是我想要得吗??????
      

  3.   

    you cannot compile them into the dll, you have to distribute them with the dll