how to get msproject.application component to be worked in my asp

A

aiwa

I have to export data to the ms project professional.I got some code which is
in VB.when I use the code in asp scripting it is showing error like --"active
x component cant create object-"msproject.application" ".

can any one help me how can avoid this error.or is there any other way of
appraoch to get the code to work correctly.some lines of my coding are


set prjApp=CreateObject("MSProject.Application")--------showing error in
this line
'set prjProject=CreateObject("MSProject.Project")
'set prjTask=CreateObject("MSProject.Task")
Set prjApp = New MSProject.Application
prjApp.FileOpen "D:\Project\protrak\test\mpp\new.mpp"
Set prjProject = prjApp.ActiveProject

pls guide me ,
thank u in advance.
 
A

Adam Behrle

Aiwa,

I bet this is a security error (scripting isn't allowing you to create
that COM object).

If this is on the server you may need to tweak some IIS settings.

If this is on the client, you could try to tweak your IE settings to
get it to work (like adding the site to your trusted sites list).

Hopefully that helps,

Adam
 
Top