解决vs2008 sp1 创建工作流遇到“An error was encountered during code generation……”的问题

来源:互联网 发布:奉化淘宝司法拍卖网 编辑:程序博客网 时间:2024/05/01 04:39

VS中创建工作流出现如下错误:

An error was encountered during code generation. The changes made in the designer have been partially committed to the source code. It is recommended that you examine the source code for errors and then close and re-open the source file. The error was Value cannot be null. Parameter name: docData.

 

发生条件(同时具备以下2点):

1,VS是2008SP1版本

2,代码文件路径包含井号(#)

 

解决方案(以下两点任选一个):

1,卸载SP1

2,在路径中把井号(#)去掉或替换,如C#改成CSharp(推荐这个,傻子才做上一件事)。

 

以上结论未必完全正确,但如果你也遇到同样的问题,不妨一试。

原创粉丝点击