问题描述
CentOS7.0使用mono部署.Net程序连接Sqlserver数据库提示Nodataisavailableforencoding936.在6.5下部署正常附上错误提示:Nodataisavailableforencoding936.atSystem.Text.Encoding.GetEncoding(Int32codepage)<0x7fd2c9ab27e0+0x004b9>in<filenameunknown>:0natMono.Data.Tds.TdsCharset.GetEncodingFromLCID(Int32lcid)<0x40c1edc0+0x000c9>in<filenameunknown>:0natMono.Data.Tds.TdsCharset.GetEncodingFromLCID(System.Byte[]collation)<0x40c1ed90+0x00017>in<filenameunknown>:0natMono.Data.Tds.TdsCharset.GetEncoding(System.Byte[]collation)<0x40c18e10+0x0004f>in<filenameunknown>:0natMono.Data.Tds.Protocol.Tds.ProcessEnvironmentChange()<0x40c17d50+0x00517>in<filenameunknown>:0natMono.Data.Tds.Protocol.Tds.ProcessSubPacket()<0x40c17200+0x001ab>in<filenameunknown>:0natMono.Data.Tds.Protocol.Tds.NextResult()<0x40c16fc0+0x0008b>in<filenameunknown>:0natMono.Data.Tds.Protocol.Tds.SkipToEnd()<0x40c16f10+0x00023>in<filenameunknown>:0natMono.Data.Tds.Protocol.Tds70.Connect(Mono.Data.Tds.Protocol.TdsConnectionParametersconnectionParameters)<0x40c152d0+0x00a4b>in<filenameunknown>:0natMono.Data.Tds.Protocol.Tds80.Connect(Mono.Data.Tds.Protocol.TdsConnectionParametersconnectionParameters)<0x40c152a0+0x00013>in<filenameunknown>:0natSystem.Data.SqlClient.SqlConnection.Open()<0x40c11120+0x008c4>in<filenameunknown>:0