【发布时间】:2015-06-26 05:41:31
【问题描述】:
我在尝试通过应用程序执行 SQL 查询时遇到错误。
错误:原因短语不能包含换行符。
当我关闭集成安全选项时,错误消失了。
请告知为什么会出现此错误以及其背后的原因是什么?
【问题讨论】:
-
这似乎不是sql-server 错误消息。
标签: c# sql-server database asp.net-web-api
我在尝试通过应用程序执行 SQL 查询时遇到错误。
错误:原因短语不能包含换行符。
当我关闭集成安全选项时,错误消失了。
请告知为什么会出现此错误以及其背后的原因是什么?
【问题讨论】:
标签: c# sql-server database asp.net-web-api
这不是sql-server的错误。属性问题HttpResponseMessage.ReasonPhrase
public string ReasonPhrase
{
get { return reasonPhrase; }
set
{
if ((value != null) && ContainsNewLineCharacter(value))
{
throw new FormatException("The reason phrase must not contain new-line characters.");
}
CheckDisposed();
reasonPhrase = value; // It's OK to have a 'null' reason phrase
}
}
请详细描述您的问题
【讨论】: