C# 当应用程序未在UserInteractive模式下运行时,显示模式对话框或窗体在prod server中不是有效的操作错误
我在生产箱中遇到了一些错误,而我们在本地测试中没有遇到这些错误。我们没有在整个弹出窗口中使用任何模式对话弹出窗口或任何窗口消息弹出窗口。这是因为任何响应而导致的。重定向?这是我的服务器事件日志。谁能告诉我是什么导致了这个问题C# 当应用程序未在UserInteractive模式下运行时,显示模式对话框或窗体在prod server中不是有效的操作错误,c#,.net-3.5,windows-server-2008-r2,C#,.net 3.5,Windows Server 2008 R2,我在生产箱中遇到了一些错误,而我们在本地测试中没有遇到这些错误。我们没有在整个弹出窗口中使用任何模式对话弹出窗口或任何窗口消息弹出窗口。这是因为任何响应而导致的。重定向?这是我的服务器事件日志。谁能告诉我是什么导致了这个问题 Log Name: Application Source: ASP.NET 2.0.50727.0 Date: 4/11/2011 8:44:42 AM Event ID: 1309 Task Category: Web
Log Name: Application
Source: ASP.NET 2.0.50727.0
Date: 4/11/2011 8:44:42 AM
Event ID: 1309
Task Category: Web Event
Level: Warning
Keywords: Classic
User: N/A
Computer: PACDCPCCOMA01.cable.comcast.com
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 4/11/2011 8:44:42 AM
Event time (UTC): 4/11/2011 12:44:42 PM
Event ID: a66a8c24117e49d4979975e947bfe021
Event sequence: 49560
Event occurrence: 8
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1/ROOT-1-129469890006189836
Trust level: Full
Application Virtual Path: /
Application Path: C:\inetpub\wwwroot\OM\
Machine name: PACDCPCCOMA01
Process information:
Process ID: 4752
Process name: w3wp.exe
Account name: IIS APPPOOL\Classic .NET AppPool
Exception information:
Exception type: InvalidOperationException
Exception message: 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.
Request information:
Request URL: http://ccom/Default.aspx
Request path: /Default.aspx
User host address: 10.164.74.56
User: CABLE\awitko200
Is authenticated: True
Authentication Type: Negotiate
Thread account name: IIS APPPOOL\Classic .NET AppPool
Thread information:
Thread ID: 18
Thread account name: IIS APPPOOL\Classic .NET AppPool
Is impersonating: False
Stack trace: at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
at System.Windows.Forms.Form.ShowDialog()
at Syncfusion.Core.Licensing.FusionLicenseProvider.GetLicense(LicenseContext context, Type type, Object instance, Boolean allowExceptions)
at System.ComponentModel.LicenseManager.ValidateInternalRecursive(LicenseContext context, Type type, Object instance, Boolean allowExceptions, License& license, String& licenseKey)
at System.ComponentModel.LicenseManager.ValidateInternal(Type type, Object instance, Boolean allowExceptions, License& license)
at System.ComponentModel.LicenseManager.Validate(Type type, Object instance)
at Syncfusion.Core.Licensing.LicensedWebComponent..ctor(Type type)
at Syncfusion.Web.UI.WebControls.Tools.Common.CoreUtilities.ValidateLicense(Type typeToValidate)
at Syncfusion.Web.UI.WebControls.Tools.AutoCompleteTextBox..ctor()
at ASP.default_aspx.__BuildControltxtDivSales() in c:\inetpub\wwwroot\OM\Default.aspx:line 1226
at ASP.default_aspx.__BuildControl__control6(Control __ctrl) in c:\inetpub\wwwroot\OM\Default.aspx:line 1208
at System.Web.UI.CompiledTemplateBuilder.InstantiateIn(Control container)
at System.Web.UI.UpdatePanel.CreateContents()
at System.Web.UI.UpdatePanel.set_ContentTemplate(ITemplate value)
at ASP.default_aspx.__BuildControlupSales() in c:\inetpub\wwwroot\OM\Default.aspx:line 1208
at ASP.default_aspx.__BuildControl__control5(Control __ctrl) in c:\inetpub\wwwroot\OM\Default.aspx:line 1203
at System.Web.UI.CompiledTemplateBuilder.InstantiateIn(Control container)
at Telerik.Web.UI.SingleTemplateContainer.InstantiateTemplate()
at Telerik.Web.UI.SingleTemplateContainer.set_Template(ITemplate value)
at Telerik.Web.UI.RadWindow.set_ContentTemplate(ITemplate value)
at ASP.default_aspx.__BuildControlwinSearchSurveys() in c:\inetpub\wwwroot\OM\Default.aspx:line 1203
at ASP.default_aspx.__BuildControl__control4(WindowCollection __ctrl) in c:\inetpub\wwwroot\OM\Default.aspx:line 1201
at ASP.default_aspx.__BuildControlRadWinMgr() in c:\inetpub\wwwroot\OM\Default.aspx:line 1201
at ASP.default_aspx.__BuildControlContent2(Control __ctrl) in c:\inetpub\wwwroot\OM\Default.aspx:line 658
at System.Web.UI.CompiledTemplateBuilder.InstantiateIn(Control container)
at ASP.masterpage_master.__BuildControlPagePlaceholder() in c:\inetpub\wwwroot\OM\MasterPage.master:line 296
at ASP.masterpage_master.__BuildControlfrm() in c:\inetpub\wwwroot\OM\MasterPage.master:line 65
at ASP.masterpage_master.__BuildControlTree(masterpage_master __ctrl) in c:\inetpub\wwwroot\OM\MasterPage.master:line 1
at ASP.masterpage_master.FrameworkInitialize() in c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\b6b42b42\a011ed90\App_Web_r97r-sw3.4.cs:line 0
at System.Web.UI.UserControl.InitializeAsUserControlInternal()
at System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection)
at System.Web.UI.Page.get_Master()
at System.Web.UI.Page.ApplyMasterPage()
at System.Web.UI.Page.PerformPreInit()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Custom event details:
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="ASP.NET 2.0.50727.0" />
<EventID Qualifiers="32768">1309</EventID>
<Level>3</Level>
<Task>3</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2011-04-11T12:44:42.000000000Z" />
<EventRecordID>15385</EventRecordID>
<Channel>Application</Channel>
<Computer>PACDCPCCOMA01.cable.comcast.com</Computer>
<Security />
</System>
<EventData>
<Data>3005</Data>
<Data>An unhandled exception has occurred.</Data>
<Data>4/11/2011 8:44:42 AM</Data>
<Data>4/11/2011 12:44:42 PM</Data>
<Data>a66a8c24117e49d4979975e947bfe021</Data>
<Data>49560</Data>
<Data>8</Data>
<Data>0</Data>
<Data>/LM/W3SVC/1/ROOT-1-129469890006189836</Data>
<Data>Full</Data>
<Data>/</Data>
<Data>C:\inetpub\wwwroot\OM\</Data>
<Data>PACDCPCCOMA01</Data>
<Data>
</Data>
<Data>4752</Data>
<Data>w3wp.exe</Data>
<Data>IIS APPPOOL\Classic .NET AppPool</Data>
<Data>InvalidOperationException</Data>
<Data>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.</Data>
<Data>http://ccom/Default.aspx</Data>
<Data>/Default.aspx</Data>
<Data>10.164.74.56</Data>
<Data>CABLE\awitko200</Data>
<Data>True</Data>
<Data>Negotiate</Data>
<Data>IIS APPPOOL\Classic .NET AppPool</Data>
<Data>18</Data>
<Data>IIS APPPOOL\Classic .NET AppPool</Data>
<Data>False</Data>
<Data> at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
at System.Windows.Forms.Form.ShowDialog()
at Syncfusion.Core.Licensing.FusionLicenseProvider.GetLicense(LicenseContext context, Type type, Object instance, Boolean allowExceptions)
at System.ComponentModel.LicenseManager.ValidateInternalRecursive(LicenseContext context, Type type, Object instance, Boolean allowExceptions, License& license, String& licenseKey)
at System.ComponentModel.LicenseManager.ValidateInternal(Type type, Object instance, Boolean allowExceptions, License& license)
at System.ComponentModel.LicenseManager.Validate(Type type, Object instance)
at Syncfusion.Core.Licensing.LicensedWebComponent..ctor(Type type)
at Syncfusion.Web.UI.WebControls.Tools.Common.CoreUtilities.ValidateLicense(Type typeToValidate)
at Syncfusion.Web.UI.WebControls.Tools.AutoCompleteTextBox..ctor()
at ASP.default_aspx.__BuildControltxtDivSales() in c:\inetpub\wwwroot\OM\Default.aspx:line 1226
at ASP.default_aspx.__BuildControl__control6(Control __ctrl) in c:\inetpub\wwwroot\OM\Default.aspx:line 1208
at System.Web.UI.CompiledTemplateBuilder.InstantiateIn(Control container)
at System.Web.UI.UpdatePanel.CreateContents()
at System.Web.UI.UpdatePanel.set_ContentTemplate(ITemplate value)
at ASP.default_aspx.__BuildControlupSales() in c:\inetpub\wwwroot\OM\Default.aspx:line 1208
at ASP.default_aspx.__BuildControl__control5(Control __ctrl) in c:\inetpub\wwwroot\OM\Default.aspx:line 1203
at System.Web.UI.CompiledTemplateBuilder.InstantiateIn(Control container)
at Telerik.Web.UI.SingleTemplateContainer.InstantiateTemplate()
at Telerik.Web.UI.SingleTemplateContainer.set_Template(ITemplate value)
at Telerik.Web.UI.RadWindow.set_ContentTemplate(ITemplate value)
at ASP.default_aspx.__BuildControlwinSearchSurveys() in c:\inetpub\wwwroot\OM\Default.aspx:line 1203
at ASP.default_aspx.__BuildControl__control4(WindowCollection __ctrl) in c:\inetpub\wwwroot\OM\Default.aspx:line 1201
at ASP.default_aspx.__BuildControlRadWinMgr() in c:\inetpub\wwwroot\OM\Default.aspx:line 1201
at ASP.default_aspx.__BuildControlContent2(Control __ctrl) in c:\inetpub\wwwroot\OM\Default.aspx:line 658
at System.Web.UI.CompiledTemplateBuilder.InstantiateIn(Control container)
at ASP.masterpage_master.__BuildControlPagePlaceholder() in c:\inetpub\wwwroot\OM\MasterPage.master:line 296
at ASP.masterpage_master.__BuildControlfrm() in c:\inetpub\wwwroot\OM\MasterPage.master:line 65
at ASP.masterpage_master.__BuildControlTree(masterpage_master __ctrl) in c:\inetpub\wwwroot\OM\MasterPage.master:line 1
at ASP.masterpage_master.FrameworkInitialize() in c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\b6b42b42\a011ed90\App_Web_r97r-sw3.4.cs:line 0
at System.Web.UI.UserControl.InitializeAsUserControlInternal()
at System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection)
at System.Web.UI.Page.get_Master()
at System.Web.UI.Page.ApplyMasterPage()
at System.Web.UI.Page.PerformPreInit()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
</Data>
</EventData>
</Event>
日志名称:应用程序
资料来源:ASP.NET 2.0.50727.0
日期:2011年11月4日上午8:44:42
活动编号:1309
任务类别:Web事件
级别:警告
关键词:经典
用户:不适用
计算机:PACDCPCCOMA01.cable.comcast.com
说明:
活动编号:3005
事件消息:发生未处理的异常。
活动时间:2011年11月4日上午8:44:42
事件时间(UTC):2011年11月4日12:44:42下午
事件ID:A66A8C24117E49D49799775E947BFE021
事件顺序:49560
事件发生率:8
事件详细信息代码:0
申请资料:
应用程序域:/LM/W3SVC/1/ROOT-1-129469890006189836
信任级别:完全信任
应用程序虚拟路径:/
应用程序路径:C:\inetpub\wwwroot\OM\
机器名称:PACDCPCCOMA01
过程信息:
进程ID:4752
进程名称:w3wp.exe
帐户名称:IIS APPPOOL\Classic.NET APPPOOL
例外信息:
异常类型:InvalidOperationException
异常消息:当应用程序未在UserInteractive模式下运行时,显示模式对话框或窗体不是有效的操作。指定ServiceNotification或DefaultDesktopOnly样式以显示来自服务应用程序的通知。
请求信息:
请求URL:http://ccom/Default.aspx
请求路径:/Default.aspx
用户主机地址:10.164.74.56
用户:CABLE\awitko200
已验证:True
身份验证类型:协商
线程帐户名称:IIS APPPOOL\Classic.NET APPPOOL
线程信息:
线程ID:18
线程帐户名称:IIS APPPOOL\Classic.NET APPPOOL
是模仿:假
堆栈跟踪:位于System.Windows.Forms.Form.ShowDialog(iwin32窗口所有者)
在System.Windows.Forms.Form.ShowDialog()中
位于Syncfusion.Core.Licensing.FusionLicenseProvider.GetLicense(LicenseContext上下文、类型、对象实例、布尔allowExceptions)
位于System.ComponentModel.LicenseManager.ValidateInternalRecursive(LicenseContext上下文、类型、对象实例、布尔allowExceptions、许可证和许可证、字符串和licenseKey)
位于System.ComponentModel.LicenseManager.ValidateInternal(类型类型、对象实例、布尔allowExceptions、许可证和许可证)
位于System.ComponentModel.LicenseManager.Validate(类型,对象实例)
在Syncfusion.Core.Licensing.LicensedWebComponent..ctor处(类型)
在Syncfusion.Web.UI.WebControls.Tools.Common.CoreUtilities.ValidateLicense(键入typeToValidate)
在Syncfusion.Web.UI.WebControls.Tools.AutoCompleteTextBox..ctor()中
在c:\inetpub\wwwroot\OM\default.aspx中的ASP.default\u aspx.\uu BuildControltxtDivSales()处:第1226行
在c:\inetpub\wwwroot\OM\default.aspx中的ASP.default\u aspx.\uuuuuuBuildControl\uuuuuuu control6(Control\uuuuuu ctrl)处:第1208行
位于System.Web.UI.CompiledTemplateBuilder.InstanceIn(控制容器)
在System.Web.UI.UpdatePanel.CreateContents()中
在System.Web.UI.UpdatePanel.set\u ContentTemplate(ITemplate值)中
在c:\inetpub\wwwroot\OM\default.aspx中的ASP.default\u aspx.\uu BuildControlupSales()处:第1208行
在c:\inetpub\wwwroot\OM\default.aspx中的ASP.default\u aspx.\uuuuuu BuildControl\uuuuu control5(Control\uuuu ctrl)处:第1203行
位于System.Web.UI.CompiledTemplateBuilder.InstanceIn(控制容器)
在Telerik.Web.UI.SingleTemplateContainer.InstanceTemplate()上
在Telerik.Web.UI.SingleTemplateContainer.set_模板(ITemplate值)上
在Telerik.Web.UI.RadWindow.set\u ContentTemplate(ITemplate值)上
在c:\inetpub\wwwroot\OM\default.aspx中的ASP.default\u aspx.\uBuildControlWinSearchSurveys()处:第1203行
在c:\inetpub\wwwroot\OM\default.aspx中的ASP.default\u aspx.\uuuuuBuildControl\uuuuuuuuuuControl4(WindowCollection\uuuuuuuCtrl)处:第1201行
在c:\inetpub\wwwroot\OM\default.aspx中的ASP.default\u aspx.\uu BuildControlRadWinMgr()处:第1201行
在c:\inetpub\wwwroot\OM\default.aspx.\uuuuuBuildControlContent2(Control\uuuCtrl)中的ASP.default\uaspx.\uuuuuBuildControlContent2(Control\uuuCtrl):第658行
位于System.Web.UI.CompiledTemplateBuilder.InstanceIn(控制容器)
在c:\inetpub\wwwroot\OM\masterpage.master中的ASP.masterpage\u master.\u BuildControlPagePlaceholder()处:第296行
在c:\inetpub\wwwroot\OM\masterpage.master中的ASP.masterpage\u master.\u BuildControlfrm()处。master:第65行
在c:\inetpub\wwwroot\OM\masterpage.master中的ASP.masterpage\u master.\u构建控制树(masterpage\u master\u ctrl)中。master:第1行
在c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\b6b42b42\a011ed90\App\u Web\u r97r-sw3.4.cs中的ASP.masterpage\u master.FrameworkInitialize()处:第0行
在System.Web.UI.UserControl.InitializeAsUserControlInternal()中
位于System.Web.UI.MasterPage.CreateMaster(TemplateControl所有者、HttpContext上下文、VirtualPath masterPageFile、IDictionary contentTemplateCollection)
在System.Web.UI.Page.get_Master()上
在System.Web.UI.Page.ApplyMasterPage()上
在System.Web.UI.Page.PerformPreInit()中
在System.Web.UI.Page.ProcessRequestMain(布尔includeStagesBeforeAsyncPoint,布尔includeStagesAfterAsyncPoint)
自定义事件详细信息:
事件Xml:
1309
3.
3.
0x8000000000000
15385
应用
PACDCPCCOMA01.cable.comcast.com
3005
发生了未处理的异常。
2011年11月4日上午8:44:42
2011年11月4日下午12:44:42
a66a8c24117e49d4979975e947bfe021
49560
8.
0
/LM/W3SVC/1/ROOT-1-129469890006189836
满的
/
C:\inetpub\wwwroot\OM\
PACDCPCCOMA01
4752
w3wp.exe
IIS APPPOOL\Classic.NET APPPOOL
无效操作例外
当应用程序未在UserInteractive模式下运行时,显示模式对话框或窗体不是有效的o
Syncfusion.Core.Licensing.FusionLicenseProvider.GetLicense(...)
at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
at System.Windows.Forms.Form.ShowDialog() at Syncfusion.Core.Licensing.FusionLicenseProvider.GetLicense(LicenseContext context, Type type, Object instance, Boolean allowExceptions)
at System.ComponentModel.LicenseManager.ValidateInternalRecursive(LicenseContext context, Type type, Object instance, Boolean allowExceptions, License& license, String& licenseKey)
at System.ComponentModel.LicenseManager.ValidateInternal(Type type, Object instance, Boolean allowExceptions, License& license)
at System.ComponentModel.LicenseManager.Validate(Type type, Object instance)
at Syncfusion.Core.Licensing.LicensedWebComponent..ctor(Type type)
at Syncfusion.Web.UI.WebControls.Tools.Common.CoreUtilities.ValidateLicense(Type typeToValidate)
at Syncfusion.Web.UI.WebControls.Tools.AutoCompleteTextBox..ctor()
at ...