473,655 Members | 3,112 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Schedule Job - Console Application to create an Excel File

I create a console application. This application creates a simple Excel
File. I move this application to a server. I use the .Net Configuration
utility and grant the application full access authority. I run the
application under my user ID interactively and it runs just fine. I schedule
the application to run using my ID and password and it fails with an error
message whose FULL TEXT is "Access Violation". I fails when the code
attempts to instatiate the Excel object. The job can read databases, and it
can wite files to shared drives, but when it get's to the code in which the
Excel object is to be created, it fails.

Any ideas as to why?

Thanks in advance for your assistance!!
Jan 24 '06 #1
0 1655

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

Similar topics

2
318
by: yindevil | last post by:
HI~ I am coding a program that need to run a method in a schedule when start a program, but i have no idea to make it(how to code it). Can someone help me please? My case: The user can input many task(start time, stop time and action(call which method)) at the same time, just like a table. When the current
3
1815
by: Jim Heavey | last post by:
Hello, I am trying to figure out why when I physically use Remote Desktop connections and sign on to my server and run a console application, it runs just fine. But if I scedule that console application to run using my Domain Name and my user ID and password, the job fails when it attempts to write the output file which is located on another server. I am referencing the file using the following convention.... ...
5
1617
by: Anonymous | last post by:
Does anybody know how I can schedule aspx pages so that they run few times a day? Thanks
6
5707
by: tony | last post by:
Hello! When you have windows forms you have the same possibility as when you have a Console application to use Console.Writeln to write whatever on the screen. Now to my question: Is it possible to use Console.Writeln when you have a Webservice. I don't think it's possible but just to be sure I ask you?
2
4357
by: Jatin | last post by:
Microsoft.Office.Interop.Excel.Application excelApp = new Microsoft.Office.Interop.Excel.ApplicationClass(); excelApp.Visible = true; string workbookPath = @"d:\change.xls"; Microsoft.Office.Interop.Excel.Workbook excelWorkbook = excelApp.Workbooks.Open(workbookPath, System.Reflection.Missing.Value, System.Reflection.Missing.Value, System.Reflection.Missing.Value, System.Reflection.Missing.Value, System.Reflection.Missing.Value,...
2
525
by: Jim Heavey | last post by:
Hello, I used VS 2005 to create a console application. Got the application working just fine. I then decided I would create a folder for each of my "console" applications within that project. I created a new folder and placed the working application under tht folder (This included the .config file, the driver .cs (void main) and the class which is called by the driver class which does all of the work). I created a new folder for a new...
1
2037
by: John Wright | last post by:
I am running a console application that connects to an Access database (8 million rows) and converts it to a text file and then cleans and compacts the database. When it runs I get the following error: The CLR has been unable to transition from COM context 0x1a2008 to COM context 0x1a2178 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long...
3
16218
by: BLUE | last post by:
I've to call 2 web method from time to time so that the web service will do cleanup and sync jobs on a database. These methods can be called once every X days where X >= Y for the sync method and X >= Z Y for the cleanup method with Y and Z specified by the user in the app.config file. Is it best to create a web service client app and schedule it with Windows Scheduler or to create a web service client Windows Service that will use a...
2
7706
by: ami'n | last post by:
i'm also not newbie to Access but i'm not programmer. I have a need to automate some task in Access. Every monday which is the first day of the week, I have to send a MS Excel file containing data which generated by MS Access. In my MS Access, I queries and filter a lot of data from Oracle database which I connect using ODBC. In this query, there is one perimeter need to fill up. The parameter is date. It's a range of date. Every Monday...
0
8380
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8296
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8816
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...
0
7310
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4150
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
4299
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2721
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
2
1928
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1598
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.