我正在使用iis服务器托管我的.net(mvc)应用程序,我们有两个不同的rdp用于我们的两个环境1)开发和2)生产。
检查内容类型的代码:
if (file.ContentType != "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")
{
data.Status.Message = "Please upload a valid excel file of version 2007 and above";
return data;
}
在
发展
我们得到的环境是“application/vnd.openxmlformats-officedocument.spreadsheetml.sheet和
生产
我们现在是空白的”
有人面临这种情况吗?如何解决这个问题?
问题是我不能提供一个新的构建来解决问题,我所能做的就是尝试在不接触编译的dll的情况下解决这个问题。
谢谢你的帮助。