A
Andy
A simple call to load up proj 2007 ends up in a COM Exception: Creating an
instance of the COM component with CLSID
{36D27C48-A1E8-11D3-BA55-00C04F72F325} from the IClassFactory failed due to
the following error: 80010001. Here's the code being used:
using MSProject = Microsoft.Office.Interop.MSProject;
public void LoadProject(string fileName)
{
MSProject.ApplicationClass app = null;
try
{
// execute the Microsoft Project Application
app = new MSProject.ApplicationClass();
}
catch (System.Runtime.InteropServices.COMException ex)
{
//Get COM exception here:
retVal = "Could not process the MS Project file " + fileName
+ "." + System.Environment.NewLine + ex.Message + System.Environment.NewLine
+ ex.StackTrace;
}
}
I have tried to decorate the method with
[PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")], and that
gets the same error. I have also tried to update the security for Microsoft
project (by adding the domain account).
Any thoughts or suggestions would be appreciated.
instance of the COM component with CLSID
{36D27C48-A1E8-11D3-BA55-00C04F72F325} from the IClassFactory failed due to
the following error: 80010001. Here's the code being used:
using MSProject = Microsoft.Office.Interop.MSProject;
public void LoadProject(string fileName)
{
MSProject.ApplicationClass app = null;
try
{
// execute the Microsoft Project Application
app = new MSProject.ApplicationClass();
}
catch (System.Runtime.InteropServices.COMException ex)
{
//Get COM exception here:
retVal = "Could not process the MS Project file " + fileName
+ "." + System.Environment.NewLine + ex.Message + System.Environment.NewLine
+ ex.StackTrace;
}
}
I have tried to decorate the method with
[PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")], and that
gets the same error. I have also tried to update the security for Microsoft
project (by adding the domain account).
Any thoughts or suggestions would be appreciated.