 悬赏园豆:20
                [待解决问题]
                悬赏园豆:20
                [待解决问题] 
            
                 
        --------------------------------------------------------------------------------
当应用程序不是以 UserInteractive 模式运行时显示模式对话框或窗体是无效操作。请指定 ServiceNotification 或 DefaultDesktopOnly 样式,以显示服务应用程序发出的通知。  
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。  
异常详细信息: System.InvalidOperationException: 当应用程序不是以 UserInteractive 模式运行时显示模式对话框或窗体是无效操作。请指定 ServiceNotification 或 DefaultDesktopOnly 样式,以显示服务应用程序发出的通知。
源错误:  
行 13: public class GetPublic
行 14: {
行 15: private readonly HuiboDLL.GetPublic dal = new HuiboDLL.GetPublic();
行 16: private readonly HuiboBll.grpclass Gp = new HuiboBll.grpclass();
行 17: public GetPublic()
 
源文件: E:\NetAccess\Dll\HuiboBll\GetPublic.cs 行: 15  
堆栈跟踪:  
[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) +1801458
  System.Windows.Forms.MessageBox.Show(String text) +37
  Pc58obLJ3FeKq8ytB7.bW1X0H9bZ4okLvyKcE.rmNvftl34A97T() +33
  HuiboDLL.GetPublic..ctor() +5
  HuiboBll.GetPublic..ctor() in E:\NetAccess\Dll\HuiboBll\GetPublic.cs:15
  LoadTemplate.EntrustVar..ctor() in E:\NetAccess\Dll\LoadTemplate\EntrustVar.cs:14
  LoadTemplate.LoadHtml.Regular(String StrHtml) in E:\NetAccess\Dll\LoadTemplate\LoadHtml.cs:112
  LoadTemplate.EntrustLoad.ParseInclude(String StrFile, String StrPar) in E:\NetAccess\Dll\LoadTemplate\EntrustLoad.cs:41
  LoadTemplate.EntrustLoad.Eval(String StrFunc, String StrFile, String StrPar) in E:\NetAccess\Dll\LoadTemplate\EntrustLoad.cs:132
  LoadTemplate.LoadHtml.Regular(String StrHtml) in E:\NetAccess\Dll\LoadTemplate\LoadHtml.cs:94
  LoadTemplate.LoadHtml.Load(String StrFile) in E:\NetAccess\Dll\LoadTemplate\LoadHtml.cs:29
  LoadTemplate.GetHtml.ParseHtml(String FileName) in E:\NetAccess\Dll\LoadTemplate\GetHtml.cs:32
  Index.Page_Load(Object sender, EventArgs e) in e:\NetAccess\AccessNet\Index.aspx.cs:24
  System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
  System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
  System.Web.UI.Control.OnLoad(EventArgs e) +99
  System.Web.UI.Control.LoadRecursive() +47
  System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061
 
.net recator 加密后就变成这样子了。不加密之前一点问题都没有。是代码的问题,还是系统的问题求教了。