分不够加,有关问题:程序不是以 UserInteractive 模式运行时显示模式对话框或窗体是无效操作

分不够加,问题:程序不是以 UserInteractive 模式运行时显示模式对话框或窗体是无效操作,
vs2005编译的web程序,执行程序过程中提示以下错误.但是用代码运行就没问题.
请问需要在服务器上配置什么?

“/test”应用程序中的服务器错误。
--------------------------------------------

当应用程序不是以 UserInteractive 模式运行时显示模式对话框或窗体是无效操作。请指定 ServiceNotification 或 DefaultDesktopOnly 样式,以显示服务应用程序发出的通知。 
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 

异常详细信息: System.InvalidOperationException: 当应用程序不是以 UserInteractive 模式运行时显示模式对话框或窗体是无效操作。请指定 ServiceNotification 或 DefaultDesktopOnly 样式,以显示服务应用程序发出的通知。

源错误: 

执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。  

堆栈跟踪: 


[InvalidOperationException: 当应用程序不是以 UserInteractive 模式运行时显示模式对话框或窗体是无效操作。请指定 ServiceNotification 或 DefaultDesktopOnly 样式,以显示服务应用程序发出的通知。]
  System.Windows.Forms.MessageBox.ShowCore(IWin32Window owner, String text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, Boolean showHelp) +1801794
  System.Windows.Forms.MessageBox.Show(IWin32Window owner, String text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options) +26
  Microsoft.VisualBasic.Interaction.MsgBox(Object Prompt, MsgBoxStyle Buttons, Object Title) +544
  WriteLog.writeLog(String logstr, String sExToMessage, String sFormName, String sModName) +484
  Files.AlterShipFile(String& errCode, String file_dept_name, String file_type_name) +1828
  aspx_fileupdate.ibUpdate_Click(Object sender, ImageClickEventArgs e) +1842
  System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +105
  System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +115
  System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
  System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
  System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
  System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102

 


------解决方案--------------------
我也是相同的问题.....
------解决方案--------------------
哈哈 
LZ我的问题解决了...
我的是因为我写了一个 System.Windows.Forms.MessageBox.Show("Test");
因为我的是BS的.所以有些浏览器出不来,但有些浏览器可以..
LZ你找一下 你的是 不是也有这类似的东东...
------解决方案--------------------
帮顶一下