473,378 Members | 1,375 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

MSMQ trigger app causes exception

I'm trying to trigger an app with the following code from a message queue. It works with only the message box voilą! enabled. But it causes the exception below when it is triggered with the rest of the code. This application works fine when executed by double-clicking on the filename in Explorer. Any ideas?
public MonitorForm()
{
InitializeComponent();
try
{
SHDocVw.ShellWindows shellWindows = new SHDocVw.ShellWindowsClass();
//MessageBox.Show("Voilą!");
foreach(SHDocVw.InternetExplorer ie in shellWindows)
{
//MessageBox.Show("ie.Location:" + ie.LocationURL);
ie.BeforeNavigate2 += new SHDocVw.DWebBrowserEvents2_BeforeNavigate2EventHan dler(MonitorForm.ie_BeforeNavigate2);
}
}
catch(Exception exception)
{
MessageBox.Show("InternetExplorerMonitor.exe exception.Message:" + exception.Message);
}
}

static public void ie_BeforeNavigate2(object disp, ref object url, ref object flags, ref object targetFrameName, ref object postData, ref object headers, ref bool cancel)
{
MessageBox.Show("BeforeNavigate2: " + url.ToString());
}

Exception:
COM object with CLSID {9BA05972-F6A8-11CF-A442-00A0C90A8F39} is either not valid or not registered.

Thank you.

Jul 21 '05 #1
8 2479
Hello,

Thanks for your post. As I understand, the problem you are facing is that
your application does not work properly when started from a MSMQ trigger.
Please correct me if there is any misunderstanding. I think more
information is needed before moving forward:

1. Does the problem occur when it is not started from a MSMQ trigger?

2. What's the operating system of your machine, Windows 2000 or Windows
Server 2003?

3. Please go to "Control Panel" -> "Administrative Tools" -> "Services",
open the property page of the service "Message Queuing Triggers", select
the "Log On" panel, and check if its "Log on as" is set to "Local System
account" with "Allow service to interact with desktop".

I look forward to your response.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #2
Thanks for your reply.

1. The problem doesn't occur when the application is not started from an
MSMQ trigger.
2. OS: Windows 2000 SP4.
3. The service Message Queing Triggers is set to log on as Local System and
"Allow service to interact with desktop" is checked.

"Tian Min Huang" <ti******@online.microsoft.com> wrote in message
news:z1**************@cpmsftngxa07.phx.gbl...
Hello,

Thanks for your post. As I understand, the problem you are facing is that
your application does not work properly when started from a MSMQ trigger.
Please correct me if there is any misunderstanding. I think more
information is needed before moving forward:

1. Does the problem occur when it is not started from a MSMQ trigger?

2. What's the operating system of your machine, Windows 2000 or Windows
Server 2003?

3. Please go to "Control Panel" -> "Administrative Tools" -> "Services",
open the property page of the service "Message Queuing Triggers", select
the "Log On" panel, and check if its "Log on as" is set to "Local System
account" with "Allow service to interact with desktop".

I look forward to your response.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #3
Hi,

Thanks for your response. I am performing research on my side and will
update you with my information.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #4
Tam

Hi,
Based on the error message it seems you are invoking a COM Component from
the MSMQ Trigger Service. Can you confirm if this article applies to your
COM Component
http://support.microsoft.com/?id=257289

Also can you confirm that enabling the Messages Box Resolves your Issue and
you don't see any error messages?

Thanks,

Gautam
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.

Jul 21 '05 #5
The guid mentioned in the exception message belongs to Internet Explorer,
which exposes the IDispatch interface and therefore it should work from a
trigger.

Enabling the message box does not solve the problem.

Thanks.
"Tam" <ga*************@NewsGroupOnline.com> wrote in message
news:w8**************@cpmsftngxa07.phx.gbl...

Hi,
Based on the error message it seems you are invoking a COM Component from
the MSMQ Trigger Service. Can you confirm if this article applies to your
COM Component
http://support.microsoft.com/?id=257289

Also can you confirm that enabling the Messages Box Resolves your Issue and you don't see any error messages?

Thanks,

Gautam
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.

Jul 21 '05 #6
Tam

Hi,
Please confirm if you can Invoke other COM Components? I an trying to
isolate the issue to this particulr com Component or to any other component
in general.
Also What is the version of trigger service that you are running. Verify
the version info for trigobj.dll

Thanks,

Gautam

This posting is provided "AS IS" with no warranties, and confers no rights.

Jul 21 '05 #7
It works when invoking other COM components.
For example, I can do the following:
Word.Application app = new Word.ApplicationClass();
app.Visible = true;

The line that generates the exception is: static private
SHDocVw.ShellWindows shellWindows = new SHDocVw.ShellWindowsClass();

I can't find trigobj.dll, but trigserv.exe is at version 1.1.0.23.

Thanks.
"Tam" <ga*************@NewsGroupOnline.com> wrote in message
news:zd**************@cpmsftngxa07.phx.gbl...

Hi,
Please confirm if you can Invoke other COM Components? I an trying to
isolate the issue to this particulr com Component or to any other component in general.
Also What is the version of trigger service that you are running. Verify
the version info for trigobj.dll

Thanks,

Gautam

This posting is provided "AS IS" with no warranties, and confers no rights.

Jul 21 '05 #8
Tam

Hi,
I recommend that you open a Support Incident with Microsoft Support. This
is not a known issue and not something that we can troubleshoot via news
groups since it requires more detailed troubleshooting.

Thanks,

Gautam

This posting is provided "AS IS" with no warranties, and confers no rights.

Jul 21 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Vai2000 | last post by:
hi all, I have a winsvc which reads of messages out an MSMQ. Can someone help with this problem. If my server goes down and comes back up my WinSvc doesn't picks up messages accumulated in the...
1
by: tommy | last post by:
Apart from designing a timer to examine the queue, I know that the new version of MSMQ over XP/2003 platform provides a way called 'MSMQ trigger', anyone had some experience of using it from...
1
by: Leo Muller | last post by:
Okay, I got confused here. In order to get the messages out the MSMQ 3, on windows 2003, I need to invoke a COM component (ProgID). However, if I compile a class of .NET, and get a DLL, is this...
14
by: Webbee | last post by:
I have a service built that is trying to read messages from a private que. When this tries to happen I get this error.... A workgroup installation computer does not support the operation From...
8
by: SunshineGirl | last post by:
I'm trying to trigger an app with the following code from a message queue. It works with only the message box voilą! enabled. But it causes the exception below when it is triggered with the rest of...
0
by: ASPnewb1 | last post by:
Hello, I have a question about MSMQ as I'm new to using this system in the .NET framework. Here is my following application that I run 2 instances of to test the ability to communicate...
1
jackb
by: jackb | last post by:
Structure of my application is: 1. Message is dispatched to an application 2. That application puts the message in a private queue 3. Another application reads messages from this queue and...
0
jackb
by: jackb | last post by:
Hello there. I have setup triggers on MSMQ private queues I wanted to trace MSMQ Trigger activities for the whole day I tried using trigmon.exe but it shows trace log from the time...
0
by: lgrella | last post by:
I am using MSMQ and am using the triggers. What I am doing is running a web service, and placing parameters to a call to a 3rd party program in the body of the message object of a queue. I want the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.