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