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?
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?