(Type your message here)
Hi,
I am trying to create a MSProject.Proje ct object instance in VB .Net.
this is the code I am using
/*************** *************** *************** *************** *************** **/
Private Sub Button2_Click(B yVal sender As System.Object, ByVal e As System.EventArg s) Handles Button2.Click
line 1: Dim p As Object
line 2: Dim p1 As MSProject.Proje ct
line 3: p = CreateObject("M SProject.Projec t")
line 4: p.Application.F ileNew()
line 5: p1 = CType(p, MSProject.Proje ct)
line 6: p1.Tasks.Add("t est task on 21.04.2004")
line 7 : p1.SaveAs("d:\t emp\testx.mpp", MSProject.PjFil eFormat.pjMPP)
End Sub
/*************** *************** *************** *************** ***************/
I am trying to run the project and click the button i am getting the following exception at line 3
/*************** *************** *************** *************** *******/
An unhandled exception of type 'System.Runtime .InteropService s.COMException' occurred in sample2.exe
Additional information: COM object with CLSID {1019A320-508A-11CF-A49D-00AA00574C74} is either not valid or not registered.
/*************** *************** *************** *************** *******/
Please help for the above mention problem
--------------------------------
From: Prakash V
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>hKUyWS/Xz0aJsPLXTutm2A ==</Id>