【发布时间】:2016-11-18 09:50:49
【问题描述】:
else
strPath = Path.Combine(Server.MapPath("~/" + strFileToUpload + strVendorNo), fileName);
if (!string.IsNullOrEmpty(strPath))
{
strReturnMssg = strPath;
fileItem.SaveAs(strPath);
}
}
}
else
strReturnMessage = "Selected file should be less than 5ΜB.";
}
}
}
}
}
catch (Exception ex)
{
Response.Write("<!--" + ex.Message + "-->");
}
return strReturnMssg;
}
无法将附件发送到服务器,只有路径正在运行 在错误 11 中出现错误必须在控制离开当前方法之前将输出参数“strReturnMessage”分配给
【问题讨论】:
-
如果我们能看到,那就太好了: 1 - 找出你的
out变量是什么的实际方法参数。 2 - 不会让我流血的格式。 3 - 让您实际阅读错误消息,它清楚地告诉您如何处理这种情况
标签: c# asp.net-mvc