473,320 Members | 1,876 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,320 software developers and data experts.

Window Services XML Export Error

Hello,

Currently have a Window Services program in ASP.Net and C#. It
automatically runs a procedure to export a XML file and I gave been
receiving this error every time it runs

System.InvalidOperationException: It is invalid to show a modal dialog
or form when the application is not running in UserInteractive mode.
Specify the ServiceNotification or DefaultDesktopOnly style to display
a notification from a service application.

The XML file gets created, but it fails to export the file.

Are there any idea on how to correct this?

Thank you

May 10 '06 #1
1 958
you probably are calling MessageBox in an error handler. this is not allowed
as the error message indicates.

-- bruce (sqlwork.com)

"KoolAidGrrl" <Ba*********@yahoo.com> wrote in message
news:11**********************@q12g2000cwa.googlegr oups.com...
Hello,

Currently have a Window Services program in ASP.Net and C#. It
automatically runs a procedure to export a XML file and I gave been
receiving this error every time it runs

System.InvalidOperationException: It is invalid to show a modal dialog
or form when the application is not running in UserInteractive mode.
Specify the ServiceNotification or DefaultDesktopOnly style to display
a notification from a service application.

The XML file gets created, but it fails to export the file.

Are there any idea on how to correct this?

Thank you

May 11 '06 #2

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

Similar topics

2
by: ScottH | last post by:
I am running DB2 7.2 FP8e with the Data Warehouse Center (using Tivoli Data Warehouse). Everything was humming along fine. I defragged all my drives without bringing DB2 down (should have known...
9
by: me | last post by:
I need to write the client part of a virtual channel for terminal services in c#. I have already done the server part and it works just fine in c#. My problem is exporting the function is requires...
1
by: oleole | last post by:
Hello, I'm getting hard time solving a problem. I have a datagrid with checkboxes. Based on the rows checked, when the user click on link (named export) i want to open a window and export the...
1
by: tma | last post by:
First, I'm following instructions without truly understanding them, so go easy on me... :) I am exporting a report to .PDF. Below is a code snippet. What I would like is for a new IE instance to...
4
by: ianyian | last post by:
hi experts, im doing some staff bween th the aspx + MS Word.chellcheck, and and which running on my ypc is no problem ( windows xp , activation by ASPNET ), buts someshow when i try to deploy to...
1
by: chaitu | last post by:
Hi, Can anybody tell me what the error code for Export is. Like i get the message SQL3104N The Export utility is beginning to export data to file...
7
by: =?Utf-8?B?Vmlua2k=?= | last post by:
public void sendKeysTest() { Process myProcess = Process.Start(@"C:\winnt\system32\cmd.exe"); SetForegroundWindow(myProcess.Handle); if (myProcess.Responding) SendKeys.SendWait("{ENTER}");...
3
by: =?Utf-8?B?R3JlZyBN?= | last post by:
Hello, I'm running an asp.net, intranet web application using .net framework 1.1 on IIS5.1 / 6.0. Through the web application, I would like to press a button on the web page, have another window...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.