Not sure how to describe this error.

B

B. Chernick

I'm writing a DotNet 2.0 winforms program that calls MS Project 2003 through
the interop. The program initially has Project load a base project and then
programmatically starts adding tasks.

This works fine on my development machine but when I try to deploy it to a
potential user's machine (unfortunately in another state) I get the error:
The server threw an exception. (Exception from
HRESULOT:0x80010105(RPC_E_SERVERFAULT)).

So far I have not been able to find much online that would seem to be
related. To the best of knowledge, all necessary files have been deployed.
(Click-Once deployment)

The relevant code is:
Imports MSProject = Microsoft.Office.Interop.MSProject

Private aApp As MSProject.Application
Private oCurrentSummaryTask As MSProject.Task

' This is the line that crashes.
oCurrentSummaryTask = aApp.ActiveProject.Tasks.Add(vsName)

The same task name (vsName) is being used on my machine and on the user's.

Suggestions?
 
B

B. Chernick

Sorry. False alarm. Ignore previous message.

The problem was that this program is solely designed and tested to work with
MS Project 2003 and a certain user forgot to tell me the machine was running
MS Project 2000.

(I knew this problem looked familiar.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top