我正在尝试将我的数据插入网络服务。
在我的网站上提交我的提交按钮时。我正在检查是否有错误:
if (Convert.ToString(strXML) != "1")
{
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.LoadXml(strXML.ToString());
XmlNode node = xmlDoc.SelectSingleNode("Logic/Errors");
err = node["Error"].InnerText;
}
但现在我收到一个错误:
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the
current web request.
Please review the stack trace for more information about the error and where
it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to
an instance of an object.
谁能帮我 ???