Re: Prevent Window Popup
- From: Webbert <webbertsolutions@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 1 Aug 2007 10:04:03 -0700
Gave it shot on my machine "Vista Business" using the code as a test
using System;
using System.Windows.Forms;
namespace CreateException
{
.. class Program
.. {
.. static void Main( string[] args )
.. {
.. MessageBox.Show( "Some text", "Error Caption",
MessageBoxButtons.OK, MessageBoxIcon.Hand );
.. throw new ApplicationException( "This is just a test" );
.. }
.. }
}
With ErrorMode=2 and then with NoInteractiveServices=1, this produce no
noticable results.
Both the popup and error message was still seen. May be a "Vista" thing
though.
I will try it on a server once I get a virtual up and running.
Thanks for the suggestion.
Dave
"TP" wrote:
The following registry setting may help in your situation:.
HKLM\SYSTEM\CurrentControlSet\Control\Windows
ErrorMode REG_DWORD 0x00000002
http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/regentry/29991.mspx?mfr=true
-TP
Webbert wrote:
I just got involved in a production issue and believe that there is a
popup window that is preventing the system from running until someone
presses "OK".
The only indication that I have at this point is a screen shot of an
event log that shows
Source: Application Popup
Category: None
Type: Information
Event ID: 26
User: N/A
No other information is available.
I thought that there was a way with Dr. Watson to prevent any and all
popups from displaying on a server that expects no UI. Can anyone
point me in the right direction to prevent the popups from occuring?
Thanks,
Dave
- Follow-Ups:
- Re: Prevent Window Popup
- From: TP
- Re: Prevent Window Popup
- References:
- Re: Prevent Window Popup
- From: TP
- Re: Prevent Window Popup
- Prev by Date: Re: Can´t use permanent licences from TS Server Licence
- Next by Date: Re: SHaring a MS access frontend amongst all TS users
- Previous by thread: Re: Prevent Window Popup
- Next by thread: Re: Prevent Window Popup
- Index(es):