473,786 Members | 2,428 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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()
{
InitializeCompo nent();
try
{
SHDocVw.ShellWi ndows shellWindows = new SHDocVw.ShellWi ndowsClass();
//MessageBox.Show ("Voilà!");
foreach(SHDocVw .InternetExplor er ie in shellWindows)
{
//MessageBox.Show ("ie.Locatio n:" + ie.LocationURL) ;
ie.BeforeNaviga te2 += new SHDocVw.DWebBro wserEvents2_Bef oreNavigate2Eve ntHandler(Monit orForm.ie_Befor eNavigate2);
}
}
catch(Exception exception)
{
MessageBox.Show ("InternetExplo rerMonitor.exe exception.Messa ge:" + exception.Messa ge);
}
}

static public void ie_BeforeNaviga te2(object disp, ref object url, ref object flags, ref object targetFrameName , ref object postData, ref object headers, ref bool cancel)
{
MessageBox.Show ("BeforeNavigat e2: " + 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 2511
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 misunderstandin g. 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" -> "Administra tive 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******@onlin e.microsoft.com > wrote in message
news:z1******** ******@cpmsftng xa07.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 misunderstandin g. 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" -> "Administra tive 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************ *@NewsGroupOnli ne.com> wrote in message
news:w8******** ******@cpmsftng xa07.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.Applicatio n app = new Word.Applicatio nClass();
app.Visible = true;

The line that generates the exception is: static private
SHDocVw.ShellWi ndows shellWindows = new SHDocVw.ShellWi ndowsClass();

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

Thanks.
"Tam" <ga************ *@NewsGroupOnli ne.com> wrote in message
news:zd******** ******@cpmsftng xa07.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
5805
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 MSMQ , although my WinSvc is set to automatic restart setting. I have to manually go and restart the service then only it retrieves all the messages from the MSMQ. This is the code..... /////////////////////////////////////////
1
4646
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 programmer's point of view? thanks in advance
1
2819
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 considered a COM component? If this is the case, should I register it? (against all .NET logic?). Or because I call it through the ProgID it knows how to locate the DLL by itself?
14
15876
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 what I read I need to have my system setup on a domain, is this correct? For my dev work I'm not going to have that envirorment available and everything is tested on one laptop. Is there anything I can do? Thank you
8
413
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 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();...
0
2120
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 through the MSMQ. It's just a basic form with 2 textboxes, and 2 buttons, first textbox is to "send" or put on the queue (with a send button), second is to receive (take from the queue with a receive button). My question is, why before I specified...
1
4417
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 then calculates the receivers (pager) for this message and then puts single message to different private queues based on receiver types (pager carriers) 4. In the end different receiver console applications are set using MSMQ Triggers such that...
0
2968
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 trigmon.exe is opened But I want to have trace log for the whole day
0
1132
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 trigger to be able to use this body as the parameter to the call, but the body is only in XML or binary format. I want the body of the message object to be plain text format. How can I get the body of the message to be in plain text rather than xml or...
0
10360
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10108
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9960
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7510
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6744
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5397
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5532
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4064
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.