Announcement Announcement Module
Collapse Forum Guidelines

Welcome to the Forums! The purpose of this forum is to allow you to discuss topics relating to hosting and topics of interest with other Customers. The primary focus should relate to issues not generally included in our Wiki or Control Panel, or information not provided by our Customer Support Team. Some examples include programming and coding support, web site design ideas and SEO practices.

The forum is not meant as a replacement to our Wiki or Customer Support. We highly recommend searching our Wiki before posting on the forum. Also, if you have a question for our Customer Support team, please contact them as you would normally.

We ask that if you have any complaints or questions relating specifically to your account, that you address them to our Customer Support department. Do not post personal account information such as passwords or other sensitive and private information the forum, as this type of information is best kept secret. Also, please be respectful of other users and refrain from defamatory comments or use of coarse language.

We will visit the forum from time to time, and contribute to various topics. We reserve the right to delete any posts which are deemed offensive or against the spirit of the forum. Any spamming or illegal activity will not be tolerated. We also reserve the right to block any user who violates these guidelines.

To get started, we welcome you to sign up at our User Management site. Any account created there will have access to these forums, our Wiki, our Ideas site and commenting permission on our Status Blog.
See more
See less
Registering Components Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Registering Components

    I've been at this awhile but one item that has always stumped me is the "registering of components". I recently downloaded a trial ASP component from Chestysoft. This is a component that allows website visitors to select a number of files to download and then nicely wraps up those files into a zip file. That's all cool! I've placed the .dll component in my bin folder, uploaded it, but with no success.
    Here's the error that get's kicked back:

    Server Error in '/' Application.
    Could not create an object of type 'csASPZipFileTrial.MakeZip'.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.Web.HttpException: Could not create an object of type 'csASPZipFileTrial.MakeZip'.
    Source Error:
    Line 13: Dim I
    Line 14:
    Line 15: FileObj = Server.CreateObject("csASPZipFileTrial.MakeZip")
    Line 16:
    Line 17: FileObj.DirName = FileObj.CurrentDir & "../drawings/greengrid/acrobat/"

    I've included the code below. Any ideas?


    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
    <html xmlns="">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>


    Select the files for download</p>
    <form action=makezip.asp method=post>
    Set FileObj = Server.CreateObject("csASPZipFileTrial.MakeZip")

    FileObj.DirName = FileObj.CurrentDir & "datafiles\"

    If FileObj.FileList.Count > 1 Then
    For I = 0 to FileObj.FileList.Count - 1
    Response.Write "<input type=checkbox value=true name=" & I & ">" & FileObj.FileList(I) & "
    End If
    <input type=hidden name=directory value="<%= Server.HTMLEncode(FileObj.DirName) %>">
    <input type=reset value=Clear><input type=submit value=Download>

  • #2
    Re: Registering Components

    This is definately beyond my abilities, but I had one of our developers look at it and this is what he suggests.
    In Visual Studio add a reference to the csASPZipFileTrial.dll file. Right click on the project and select “Add Reference”. Then click the Browse tab and browse to csASPZipFileTrial.dll. You will then get a file called Interop.csASPZipFileTrial.dll in the bin folder. You will be able to use the component on any aspx page in the following way:

    Dim FileObj As New csASPZipFileTrial.MakeZip
    FileObj.DirName = "e:\Inetpub\Clients\\datafiles"
    Hope this helps!