ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Tortuous server migration
Posted by Peter Duray-Bito on Sep-26-2013 11:21
Hi Peter,

Long-time ChartDirector user here: www.bullandbearwise.com.

I migrated my website a few days ago to a new hosting service. I didn't realize you were up to v.5.1.1 so I sent them the .dlls for that version. They loaded the 5.1.1 dlls (aspapi.dll and comchartdir.dll) successfully but it turns out my license is still for 4.1. So I downloaded v.4.1 and sent them the following dlls:

aspapi.dll 6/10/2006
comchartdir.dll 7/12/2006

They successfully registered comchartdir.dll  but could not register aspapi.dll.

Can you please advise on http://www.bullandbearwise.com/cdinfo.asp?

Thanks,

Peter Duray-Bito
BullandBearWise.com

  Re: Tortuous server migration
Posted by Peter Kwan on Sep-26-2013 21:38
Hi Peter,

If you are registering "aspapi.dll" manually using "regsvr32", and you could not register it, would you mind to clarify what is the error? Can you replace your existing "aspapi.dll" with the old "aspapi.dll"?

If you had used your existing "aspapi.dll" with IIS, the IIS will lock the file, and you cannot even delete or replace it. The OS will complain the the file is used by another process and refuse to let you delete or replace it. If you place the old "aspapi.dll" in another directory and register it, it will be successful, but the IIS will not use it until it is reset, as it is still locked to the old "aspapi.dll'.

So if you cannot replace the "aspapi.dll", the suggested method is to reset IIS by entering "iisreset" from the command line. Note that this will cause all web connections to drop for a few seconds. Then you should be able to replace "aspapi.dll".

Also, note that you need to replace "comchartdir.dll", "aspapi.dll" and use "chartdir41.dll", and they should all be in the same directory.

Again thing to note is that ChartDirector 4.1 only works in 32-bit mode. If you are using 64-bit Windows, you would need to configure the IIS to run in 32-bit mode (or create a pool that runs in 32-bit mode.)

If the above still cannot solve the problem, please try the diagnostics script cdcheck5.asp below and inform me what is the result (or inform me where is the URL so I can go to see the result)

http://www.chartdir.com/forum/download_thread.php?bn=chartdir_support&thread=1253938504#N1254144401

Regards
Peter Kwan

  Re: Tortuous server migration
Posted by Peter Duray-Bito on Oct-01-2013 02:43
Thanks for your detailed reply Peter.

Unfortunately, the hosting service (which will remain unnamed unless you ask me privately) blew me off with this message: "There were so many modifications on those DLL's and we almost broke the whole shared-server so therefore this is no longer supported."

So now I'm shopping around for another host. Any ideas?

  Re: Tortuous server migration
Posted by Peter Kwan on Oct-02-2013 01:32
Hi Peter Duray-Bito,

We do not really have any suggestions for hosting companies.

For classical ASP, the only method to install a component is to register it, and this requires administrator privilege. If you are using shared hosting, you would need to ensure the hosting company can register the DLLs on behalf of you before using their service.

Some hosting companies offer Virtual Private Server or Dedicated Server in which you many have administration privilege. In this case, you can register the DLLs yourself.

Some hosting companies may offer "reseller accounts", in which the reseller may have additional privileges. (I have heard that in some reseller hosting accounts, the reseller control panel allows the reseller to register DLLs.) Strangely, in some hosting companies, it seems anyone can purchase a reseller hosting account, and this may not be significant more expensive than a regular hosting account

Regards
Peter Kwan

  Re: Tortuous server migration
Posted by Peter Duray-Bito on Oct-05-2013 07:16
Hi Peter,

I found another host and they successfully registered the DLLs but the unregistered sign still appears on the website:

www.bullandbearwise.com

When I run:

http://www.bullandbearwise.com/cdinfo.asp

the page reads:

    Description : ChartDirector

    Version : 4.1.0

    Copyright : Copyright (c) 2006 Advanced Software Engineering Limited

    Boot Log :
        2013-10-04 17:56:37> ChartDirector at C:\\Program Files (x86)\\ChartDirector\\lib\\chartdir41.dll started
        2013-10-04 17:56:37> Cannot load license file C:\\Program Files (x86)\\ChartDirector\\lib\\chartdir.lic - No such file or directory [error code = 2]
        Updated license check at 2013-10-04 18:54:31> Cannot load license file C:\\Program Files (x86)\\ChartDirector\\lib\\chartdir.lic - No such file or directory [error code = 2]

    Font Loading Test :
        Searching for arial.ttf - No such file or directory [err code = 2]
        Successfully opened C:\\Windows/fonts/arial.ttf


Does this mean Chart Director is looking for the chartdir.lic file at C:\\Program Files (x86)\\ChartDirector\\lib\\ on the host's server? Do I need to instruct them to create this folder and place the chartdir.lic file in there?

Thanks,

Peter

  Re: Tortuous server migration
Posted by Peter Kwan on Oct-07-2013 19:58
Hi Peter,

The message means that the ChartDirector has already been installed in "C:\\Program Files (x86)\\ChartDirector\\lib", as the "chartdir41.dll" is already in that directory. However, the "chartdir.lic" file is not in that directory, so ChartDirector runs in unregistered mode.

To solve the problem, the best way is to put the license file "chartdir.lic" in that directory. Another method is to modify your code and add the line:

Call cd.setLicenseCode("....put your license key here")

However, because you may have a lot of code files, so it is not convenient, and in future if you want to upgrade the license key, you would need to modify all of them again. So putting the license file "chartdir.lic" in "C:\\Program Files (x86)\\ChartDirector\\lib" is the preferred method. Hope this can help. (Please make sure the "chartidr.lic" is readable by the IIS anonymous user account.)

Hope this can help.

Regards
Peter Kwan