NetTalk Central

Author Topic: Multihost Error  (Read 6700 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Multihost Error
« on: July 23, 2019, 03:43:58 AM »
Hi, trying to modify a server that is running ok as an exe to a dll to be added to the host Im getting an error, see pic
Ive folloewd the instructions to do it.
Change project from exe to dll
Change WebServer and WebHandler prototypes
etc.
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Multihost Error
« Reply #1 on: July 23, 2019, 05:12:25 AM »
I guess you got something wrong....
but without seeing the app I can't say what it was...

One point worth mentioning - it's probably worth putting the DLL, and any DLL's it requires, in the Host.exe folder.
(at least to begin with.) [ more accurately _your_ DLL can be elsewhere, but all the DLL's _it_ requires need to be in the Host.Exe folder]

cheers
Bruce

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: Multihost Error
« Reply #2 on: July 23, 2019, 10:32:53 AM »
When one dll does not exists in the host folder you get an error and then...
All DLLs are copied to the Host folder, all tps and ini files too.
Atached goes the app and dct.

The error goes out, I dont know why...
The server has a static page as the initial page but I think the initial page is now set in the host and not in the server? see pic 1

Now if I run the host setting the same initial page than the server, then it gets part of the page, like theres no styles and images and the busy gif of the browser loader dont stop spining.
see pic2

NOw if I stop the browser and add to go to another server page, it does nothing but still spininig the browser busy gif
see pic 3

And now if I close the browser tab, go to the host tab to try to modify the server params, it does not work
see pic 4

« Last Edit: July 23, 2019, 01:41:20 PM by michelis »
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Multihost Error
« Reply #3 on: July 23, 2019, 10:23:35 PM »
>> The server has a static page as the initial page but I think the initial page is now set in the host and not in the server? see pic 1

Correct.

Also each site has their own web folder location - also set in the host. Mostly they will be different web foders, but they can be shared.

>> Now if I run the host setting the same initial page than the server, then it gets part of the page, like theres no styles and images and the busy gif of the browser loader dont stop spining.

this suggests your WebFolder setting, in the servers list in the host, is wrong.

Cheers
Bruce

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: Multihost Error
« Reply #4 on: July 24, 2019, 06:37:39 AM »
I was trying with the host example (59)
The web path are ok
The I thought the only possibility for the web path to be wrong is that it does not accepts spaces in the path.
I change the folder names deleting the spaces, test again and the site1 example does not locate the web folder and appears like the attached pics.
Dont know what else to do.
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Multihost Error
« Reply #5 on: July 24, 2019, 08:07:53 PM »
zipup your testfolder and email that to me...

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: Multihost Error
« Reply #6 on: July 25, 2019, 05:21:14 AM »
Im sending the ziped folder to you by mail.

Inside your MultiSite6 (59) example you will found a Dap2 folder with my server.
Dap2 connects to a Sql server indicated in fm3.ini
You can run its exe file to see it works ok.
Becarefull of the "PRUEBELO YA" (TEST IT NOW) link because it points to the real server over internet.
Attached goes the pics about how the host is set and the efecto of try to run each server.
The last pic is running as exe

Anyway the problem happens with the site1 example too, pic 2

Hope it helps
« Last Edit: July 25, 2019, 05:24:15 AM by michelis »
-----------
Regards
Alberto

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: Multihost Error
« Reply #7 on: August 06, 2019, 04:20:16 PM »
Hi Bruce, did you received my email with the zip?
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Multihost Error
« Reply #8 on: August 07, 2019, 03:57:45 AM »
I did, but I've not made any progress on it yet because the DLL's talk to SQL.

cheers
Bruce

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: Multihost Error
« Reply #9 on: August 07, 2019, 07:11:39 AM »
Do you need me to comment all MsSql interaction from the apps?
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Multihost Error
« Reply #10 on: August 07, 2019, 06:44:47 PM »
that would make it easier - yes...