在Web程序中引用了WinForm的类库引起了主要是为了在web程序中使用Message.Show()以及SaveFileDialog类,能web程序中引用了WinForm类库在Visual Studio中调试、运行均没有异常,但部署到IIS后出现了此问题。解决方法:去掉Winform类库