NetTalk Central

Author Topic: Multi-Site Host  (Read 4171 times)

bijan

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
    • Email
Multi-Site Host
« on: December 01, 2013, 11:56:42 AM »
Hi,

Getting Invalid File Structure when compiling the Multi-Host app in C9. What is causing this?

Regards

Bijan

[attachment deleted by admin]

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Multi-Site Host
« Reply #1 on: December 01, 2013, 09:49:55 PM »
One of your data files needs converting. (This is like an Error 47).

Perhaps you forgot to run the FM3 "SupportABC" utility template?

bijan

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
    • Email
Re: Multi-Site Host
« Reply #2 on: December 02, 2013, 10:37:04 AM »
Hi Bruce,

That solved it. Thank you. Now, I am trying to compile the Site1 app and getting the following errors: I am using StringTheory 1.93 and NT 7.31

Unresolved External TYPE$STRINGTHEORY in NetAll.obj
Unresolved External VMT$STRINGTHEORY in NetAll.obj
Unresolved External CONSTRUCT@F12STRINGTHEORY in NetAll.obj
Unresolved External DESTRUCT@F12STRINGTHEORY in NetAll.obj
Unresolved External TYPE$STRINGTHEORY in NetWeb.obj
Unresolved External VMT$STRINGTHEORY in NetWeb.obj
Unresolved External CONSTRUCT@F12STRINGTHEORY in NetWeb.obj
Unresolved External DESTRUCT@F12STRINGTHEORY in NetWeb.obj
Unresolved External DESTRUCT@F12STRINGTHEORY in NetWeb.obj
Unresolved External TYPE$STRINGTHEORY in NetWeb.obj
Unresolved External VMT$STRINGTHEORY in NetWeb.obj
Unresolved External CONSTRUCT@F12STRINGTHEORY in NetWeb.obj
Unresolved External TYPE$STRINGTHEORY in NetWeb.obj
Unresolved External VMT$STRINGTHEORY in NetWeb.obj
Unresolved External CONSTRUCT@F12STRINGTHEORY in NetWeb.obj
Unresolved External DESTRUCT@F12STRINGTHEORY in NetWeb.obj
Unresolved External DESTRUCT@F12STRINGTHEORY in NetWeb.obj
Unresolved External DESTRUCT@F12STRINGTHEORY in NetWeb.obj
Unresolved External DESTRUCT@F12STRINGTHEORY in NetWeb.obj
Unresolved External TYPE$STRINGTHEORY in NetWeb.obj
Unresolved External VMT$STRINGTHEORY in NetWeb.obj
Unresolved External CONSTRUCT@F12STRINGTHEORY in NetWeb.obj
Unresolved External TYPE$STRINGTHEORY in NetWeb.obj
Unresolved External VMT$STRINGTHEORY in NetWeb.obj
Unresolved External CONSTRUCT@F12STRINGTHEORY in NetWeb.obj
Unresolved External TYPE$STRINGTHEORY in NetWeb.obj
Unresolved External VMT$STRINGTHEORY in NetWeb.obj
Unresolved External CONSTRUCT@F12STRINGTHEORY in NetWeb.obj
Unresolved External TYPE$STRINGTHEORY in NetWeb.obj
Unresolved External VMT$STRINGTHEORY in NetWeb.obj
Unresolved External CONSTRUCT@F12STRINGTHEORY in NetWeb.obj
Unresolved External TYPE$STRINGTHEORY in NetWeb.obj
Unresolved External VMT$STRINGTHEORY in NetWeb.obj
Unresolved External CONSTRUCT@F12STRINGTHEORY in NetWeb.obj
Unresolved External DESTRUCT@F12STRINGTHEORY in NetWeb.obj
Unresolved External DESTRUCT@F12STRINGTHEORY in NetWeb.obj
Unresolved External TYPE$STRINGTHEORY in NetWeb.obj
Unresolved External VMT$STRINGTHEORY in NetWeb.obj
Unresolved External CONSTRUCT@F12STRINGTHEORY in NetWeb.obj
Unresolved External DESTRUCT@F12STRINGTHEORY in NetWeb.obj
Unresolved External TYPE$STRINGTHEORY in NetWeb.obj
Unresolved External VMT$STRINGTHEORY in NetWeb.obj
Unresolved External CONSTRUCT@F12STRINGTHEORY in NetWeb.obj

bijan

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
    • Email
Re: Multi-Site Host
« Reply #3 on: December 02, 2013, 10:46:23 AM »
Hi Bruce,

I cleaned out the obj folder. The project/option/Output type and Link Mode are both set to DLL. Still same errors.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Multi-Site Host
« Reply #4 on: December 02, 2013, 09:37:41 PM »
You need to go to the StringTheory global extension, Multi-Dll tab, and tick on "Export Class from this DLL".

cheers
Bruce

bijan

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
    • Email
Re: Multi-Site Host
« Reply #5 on: December 03, 2013, 03:37:31 PM »
Hi Bruce,

It works now,

I created a dll from my own app and it seems to load the first page fine. However, it seems like the host is not setting the path for my data files. Is there something I have to do to make sure the tps files get opened in my app folder?  The data path is correct. Please see attached image.

Regards

Bijan

[attachment deleted by admin]

bijan

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
    • Email
Re: Multi-Site Host
« Reply #6 on: December 03, 2013, 09:33:03 PM »
Hi Bruce,

I found the answer in the Nettalk Book. I forgot to set the data file path in my site DLL. The book clearly explains how to modify the dct and set the data path in the webhandler procedure.

Regards

Bijan

bijan

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
    • Email
Re: Multi-Site Host
« Reply #7 on: December 05, 2013, 08:34:45 AM »
Hi Bruce,

Instead of setting the path for each table why can't we just SetPath(clip(s_web._SitesQueue.defaults.appPath)) in the site app?

Regards

Bijan

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Multi-Site Host
« Reply #8 on: December 05, 2013, 11:41:57 PM »
SetPath is dangerous because a program con only have one "current path" across all threads at the same time.
So under the host all the other programs would end up with a different path, and all uses of all apps would end up having the same path.

cheers
Bruce