简体   繁体   English

错误:十六进制值 0x00 是无效字符 c#

[英]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.

相关问题 十六进制值0x00是加载XML文档的无效字符 - Hexadecimal value 0x00 is a invalid character loading XML document 十六进制值0x00,是无效字符:将\\ 0替换为“”后仍然遇到问题 - hexadecimal value 0x00, is an invalid character: still encounter problem after replace \0 with “” 构建错误:JsonException:&#39;0x00&#39; 是值的无效开始 - Error on Build: JsonException: '0x00' is an invalid start of a value C# 十六进制值 0x12,是一个无效字符 - C# hexadecimal value 0x12, is an invalid character 导出到excel数据时出错:&#39;&#39;,十六进制值0x07,使用C#是无效字符 - error while exporting to excel data : ' ', hexadecimal value 0x07, is an invalid character using c# C#导出到Excel并给出十六进制值0x02``,这是无效的字符错误 - C# Export to Excel giving '', hexadecimal value 0x02, is an invalid character error &#39;&lt;&#39;,十六进制值 0x3C,是无效的属性字符 - '<', hexadecimal value 0x3C, is an invalid attribute character 十六进制值 0x07,是一个无效字符 - hexadecimal value 0x07, is an invalid character 十六进制值0x1E,是无效字符 - hexadecimal value 0x1E, is an invalid character Xml解析错误:十六进制值是无效字符 - Xml parsing error: hexadecimal value is an invalid character
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM