Book a Demo

Author Topic: Instantiate Repository Object using ASP (VBScript)  (Read 4728 times)

craigj

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Instantiate Repository Object using ASP (VBScript)
« on: July 21, 2003, 09:21:22 am »
Is it possible to obtain a reference to the EA automation interface using VBScript in an ASP page?  Presently, on my local server, the following statement is deemed invalid:

Set objRep = Server.CreateObject("EA.Repository")

What must I do to make the EA.Repository object available to my ASP page is this way?  

If I can make inroads into this problem then I am sure that my company, Vodafone, would be interested in adopting EA for use in its organization.

Many thanks,
James Craig

Darren Lock

  • EA User
  • **
  • Posts: 36
  • Karma: +0/-0
    • View Profile
Re: Instantiate Repository Object using ASP (VBScr
« Reply #1 on: August 06, 2003, 02:15:58 am »
James,

in principle this should work. I have done similar. To check that EA is correctly registered with COM try the same line in a VB Script file (e.g. test.vbs) and runit fromthe command line.

If this works then it is likely to be IIS environmental. i.e. Does the user the page is executing under have the appropriate rights, etc.

I have actually moved all my ASP code over to ASP.Net and wraped EA up in its own object, especially now that there is a type library for the object model.
Darren Lock
United Kingdom

craigj

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Instantiate Repository Object using ASP (VBScr
« Reply #2 on: August 06, 2003, 05:35:45 am »
Thanks Darren.  The problem must be related to the IIS environment as EA starts up correctly when I run the .vbs file from the command line.  If you (or anyone else) could give me some advice as to how I might go about setting up the IIS environment correctly I'd be most grateful.

Thanks in advance,
James Craig