日期:2014-05-17  浏览次数:20465 次

发布到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