[英]Error: hexadecimal value 0x00 is an invalid character c#
I need a help about "hexadecimal value 0x00 is an invalid character c#" Which is also shown in picture as well.The problem is when i am trying to connect with sql server database this error appear.我需要有关“十六进制值 0x00 是无效字符 c#”的帮助,这也显示在图片中。问题是当我尝试连接 sql server 数据库时出现此错误。
According to this other question , this error has to do with XML which does not allow a character of byte 0x00
.根据this other question ,此错误与不允许使用字节
0x00
字符的 XML 有关。 Look for a file that contains XML (like the .edmx file) and see if it has such a character and remove it if you can.查找包含 XML 的文件(如 .edmx 文件),看看它是否有这样的字符,如果可以,将其删除。
Look at app.config
file.查看
app.config
文件。 In my project I save some user strings in settings that may contain strange characters.在我的项目中,我在可能包含奇怪字符的设置中保存了一些用户字符串。 This was the cause of a similar error.
这是导致类似错误的原因。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.