Error while instantiating an object of MS Project 2003

M

MaheshN

Hi,

I am trying the MS Project import in to my application.But while trying to
create an object of Microsoft Project I am getting the "Access Denied" error.

I have added the component MS Project object Library using Add Reference but
still I am getting this "Access Denied" error.
I have also set the appropriate permissions to access the MS Project.Dll and
I have given privileges to everyone. But still this error has become a major
bug for me.

The code I am running is simple.
Try
Dim objMSP As Microsoft.Office.Interop.MSProject.Application
objMSP = New ApplicationClass


objMSP.FileOpen("D:\EnLite3.0Releaseplan.mpp")
Dim strTaskcount As String

strTaskcount =
objMSP.Application.ActiveProject.Tasks.Count.ToString

objMSP.FileExit(PjSaveType.pjDoNotSave)
objMSP = Nothing


Catch ex As Exception
Response.Write(ex.Message)
End Try
 
G

Guest

Hi Maheshll,

Are you working with a Project Server? If so,

Does your account (or the one you are using) have permission to
access the server with Microsoft Project (Administrator, Project
Manager)?

Is Microsoft Project configured to automatically connect to the server (it
needs
to be)?

Bob Segrest, PMP
Microsoft Project Blackbelt
 
M

MaheshN

Hi Bob,

I am not working with a Project Server but only the MS Project 2003 client
is installed in my system. I am not using the MS Project central.
Basically I just need to read the Project data from MS Project and insert
the same to the database.

Please tell me how can I do this.
Please post back some of the examples implementing MS Project import
functionality.
Also it would be great if you can post some of the url's related to this
issue or Microsoft Project.

Regards,
Mahesh.N
 

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