Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Posts
    317
    Thanks
    0
    Thanked 0 Times in 0 Posts

    COM Object Via ASP

    I'm here just would like to confirm something about the Component object. When I try to install the asp component out of the Inetput/wwwroot directory, the component can't be created, does it mean that we must install the component in our web server. I so wondering, from my understanding, as long as we register our component, no matter where we put the component (.dll/.exe), it can be called via ASP.

    Please advice!

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,037
    Thanks
    0
    Thanked 250 Times in 246 Posts

    Re: COM Object Via ASP

    you must register the component in the web server. the dll can be in any directory in the web server but it's advisable to save them in the windows system32 directory

    Originally posted by charon
    I'm here just would like to confirm something about the Component object. When I try to install the asp component out of the Inetput/wwwroot directory, the component can't be created, does it mean that we must install the component in our web server. I so wondering, from my understanding, as long as we register our component, no matter where we put the component (.dll/.exe), it can be called via ASP.

    Please advice!

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Posts
    185
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You may want to avoid putting it either in the system directory or under the web server directories (you don't want a .dll or .exe to be accessible from the web). Most shops have specific folders set up for components built in-house. It makes it easier to find them for doing updates or making backups.

    When you register it, be sure to give the full path name of the .dll, or change to the directory it is in before you run regsvr32 in the DOS prompt.

    If you still can't instantiate the component from ASP, check the security access settings to make sure the id the web server runs under (usually IUSR_machinename) has access to the .dll and all directories above it.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •