发布到iis上面就不行了,在vs中浏览可以
Server Error in '/NPI' Application.
--------------------------------------------
Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
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.InvalidOperationException: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
Source Error:
Line 20: {
Line 21:
Line 22: this.WebReport_DFMWeeklyReport.Prepare();
Line 23: }
Line 24:
Source File: e:\NPI\v3.9\Report_DFMWeekly.aspx.cs Line: 22
Stack Trace:
[InvalidOperationException: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.]
System.Windows.Forms.Form.ShowDialog(IWin32Window owner) +3650736
System.Windows.Forms.Form.ShowDialog() +6
FastReport.Dialog.DialogPage.ShowDialog() +81
FastReport.Engine.ReportEngine.RunDialog(DialogPage page) +43
FastReport.Engine.ReportEngine.RunDialogs() +266
FastReport.Engine.ReportEngine.Run(Boolean runDialogs, Boolean append, ReportPage page) +213
FastReport.Engine.ReportEngine.Run(Boolean runDialogs, Boolean append) +53
FastReport.Report.Prepare(Boolean append) +367
FastReport.Web.WebReport.PrepareReport() +544
FastReport.Web.WebReport.Refresh() +54
FastReport.Web.WebReport.Prepare() +30
Report_DFMWeekly.Page_Load(Object sender, EventArgs e) in e:\NPI\v3.9\Report_DFMWeekly.aspx.cs:22
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +91
System.Web.UI.Control.LoadRecursive() +74
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207
--------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
高手帮我看看呢!这是怎么回事?谢谢!
[解决办法]
http://social.msdn.microsoft.com/Forums/vstudio/en-US/c409b6b6-acef-470a-b4b3-4b48e210dfc6/showing-a-modal-dialog-box-or-form-when-the-application-is-not-running-in-userinteractive-mode-is
[解决办法]
服务器的部署的时候,.net框架选了吗?
[解决办法]
应用程序池的版本,模式
IIS网站的相关配置
[解决办法]
http://hi.baidu.com/lxf_120/item/8644c2921d3069d91a49df2f
希望对你有帮助