mono上运行程序常见问题

1.

System.BadImageFormatException: Invalid method header local vars signature token 0x 65d5b2
File name: 'HttpHelper' 没有找到HttpHelper.dll  

gacutil -i HttpHelper.dll  把dll注册到mono中

2.

System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

mysql数据库链接字符串错误,原因是数据库的连接客串值不能为大写.

正确的如下:

DbHelperMySQL.connectionString = "server=127.0.0.1;database=test;user=root;password=wangxiaohu;charset=utf8";

 3.

Failure adding assembly HttpHelper.dll to the cache: Attempt to install an assembly without a strong name

HttpHelper.dll没有签名

在弹出的对话框中给snk文件起一个名字. 按OK.

2-7-2010 9-10-23 PM

详细介绍:http://blog.csdn.net/prince_lintb/article/details/40789211

 

posted @ 2017-11-24 11:17  Microtiger  阅读(782)  评论(0编辑  收藏  举报