NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: ntnewbies on August 28, 2017, 11:36:10 PM

Title: uploading net talk application on godaddy windows hosting
Post by: ntnewbies on August 28, 2017, 11:36:10 PM
hi friends,
can i use godaddy windows hosting server to upload a net talk application that i have developed?
if yes, what are the steps?
i have searched about deployment info and found http://www.capesoft.com/docs/nettalk6/NetTalkWebDeployment.htm#Basics

which of course did not mention anything about the steps in doing Internet Deployment - on a hosted server.

let's say for example, my application is invoice.exe

my website is: www.billme.com

should i create invoice folder and put all the dll, tps and exe in that folder?
and within that folder, should i create sub folder such as images, scripts etc?

then when i run the application, the link should be: www.billme/invoice/invoice.0

is it correct?
Title: Re: uploading net talk application on godaddy windows hosting
Post by: terryd on August 28, 2017, 11:56:17 PM
Hi
I'm sure bruce will come in afterwards to give you a more definitive version but:-
I assume you have compiled and generated an application that runs on your local development system.
As a first step you could copy that whole folder and subfolders to your hosted server.
It would contain your .exe and any files you are using (I am assuming tps files)
below this would be your web folder with all those additional folders you have mentioned already pre populated.
At this point if you run the exe on the hosted server  you system should be live.
You would access it simply as http://www.billme.com The link you give is the sort I think you would use if you were deploying H5.
If this works you could then remove any files not required to run the application  in the Invoice folder on the hosted server (*.clw, *,inc .app .dct etc.)
Title: Re: uploading net talk application on godaddy windows hosting
Post by: ntnewbies on August 29, 2017, 12:14:03 AM
Hi Terry,
Thanks for the input. Yes, i have compiled it and able to run it well on local host. Should i create the folder under the virtual directory?

my website index.htm is the introduction html page.
thus, i need to put the application in a folder (say, invoice).

i am using both tps and ms sql.
my hosting service support ms sql and i have already setup the odbc database.

jason
Title: Re: uploading net talk application on godaddy windows hosting
Post by: terryd on August 29, 2017, 03:12:08 AM
Hi Jason
I don't think the location of the folder is the issue as long as the files are in the correct folders (i.e, in the web folder under your invoices folder.), which is why I say copy you full invoices folder to the host.
Once you run the invoices application on the host server you should be able to access the website locally on the machine as http://127.0.0.1.
If that works then you should be live as long as http://www.billme.com is pointing to your virtual server.
Title: Re: uploading net talk application on godaddy windows hosting
Post by: mmelby on August 29, 2017, 08:44:35 AM
I believe there may be some confusion between web hosting and server hosting. If you purchased one of their web hosting products I do not believe you can run a NT application on it. I think you need to purchase either a dedicated server or a Virtual Private server.
Title: Re: uploading net talk application on godaddy windows hosting
Post by: Flint G on August 29, 2017, 01:53:10 PM
I believe there may be some confusion between web hosting and server hosting. If you purchased one of their web hosting products I do not believe you can run a NT application on it. I think you need to purchase either a dedicated server or a Virtual Private server.

That is my understanding, as well.  Virtual Private would be the minimum you would need to run anything but an IIS-based site.
Title: Re: uploading net talk application on godaddy windows hosting
Post by: Bruce on August 30, 2017, 06:27:44 AM
I Concur.

I don't think GoDaddy offer virtual servers - you need to create a virtual server and host your machine there. I use AWS, but any VM host will do.
see  http://clarionlive.wikispaces.com/ #363

also read this
http://www.capesoft.com/docs/NetTalk10/NetTalkWebDeployment.htm

Cheers
Bruce
Title: Re: uploading net talk application on godaddy windows hosting
Post by: mmelby on August 30, 2017, 09:24:38 AM
They do. Here is the link to their VPS

https://www.godaddy.com/hosting/vps-hosting

Here is a link to all their products:

https://www.godaddy.com/catalog.aspx




Title: Re: uploading net talk application on godaddy windows hosting
Post by: Bruce on August 30, 2017, 11:46:50 PM
Hi Mike,

cool, in that case it should be the same as deploying on any other server - see the webinars and docs etc.

cheers
Bruce
Title: Re: uploading net talk application on godaddy windows hosting
Post by: ntnewbies on September 11, 2017, 03:33:26 AM
Hi guys,
thank you all for the kind lead.
Yes, the problem is i choose the wrong server. Now, i have bought a VPS unmanaged.
Thus, i have to do everything from configuring the server and sql.
All is done and the index.htm is running.
The trick is to run the nettalk executable to run.
Stuck it here. Hope Clarion Live 363 will give an hint for my problem (Thanks Bruce)

Jason
Title: Re: uploading net talk application on godaddy windows hosting
Post by: ntnewbies on September 11, 2017, 03:47:43 AM
Hi Friends,
While waiting for 363 to finish download, just let you know where i am stuck:

when i run the application, it gives me this error on browser:
Server Error in '/' Application.

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Data at the root level is invalid. Line 1, position 1.

Source Error:


Line 1:  <?xml version="1.0" encoding="UTF-8"?>
Line 2:  <configuration>
Line 3:      <connectionStrings>

Source File: C:\inetpub\sites\mywebsite.com\web.config    Line: 1

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1087.0



Any idea?
Title: Re: uploading net talk application on godaddy windows hosting
Post by: Bruce on September 11, 2017, 06:22:01 AM
It appears that IIS is running on the machine.
Get that turned off, then your exe can use the ports.

cheers
Bruce
Title: Re: uploading net talk application on godaddy windows hosting
Post by: ntnewbies on September 11, 2017, 07:14:38 AM
hi bruce,
the IIS is completely removed.
Firewall allowed to open port for sql.
Notification ticked if the app blocked (according to 363 webinar)
the application is compiled with Port 80
i open the application...nothing is generated. thus obviously when i try to open it up via browser, nothing comes up.
now, the index.htm (the main page of my website also not loading - need to figure out how to configure without using IIS)

i have created inbound rule to allow the exe to run both in tcp n udp - any port.

what am i missing?
Title: Re: uploading net talk application on godaddy windows hosting
Post by: Wolfgang Orth on September 11, 2017, 07:43:07 AM
Jason,

how do you access your virtual server? Are you working on it via RDP, so that you have the regular Windows desktop of that server on your local screen?

If so, can you access your NT-server from inside that virtual server, in other words, have you accessed 127.0.0.1?

Now, it that does not work, then your exe is the culprit.

However, if you can access your NT-server correctly from the inside, then I lean to say that this is a Firewall-problem.

> Firewall allowed to open port for sql.

That means, you can access this SQL-server fromn the inside, but you have not opened the door for the Internet to access you SQL-Server?

just my .02
Wolfgang
Title: Re: uploading net talk application on godaddy windows hosting
Post by: ntnewbies on September 11, 2017, 08:02:40 AM
hi wolfgang,
thanks for the reply.

yes, i use RDP.

I cant open the exe even from inside the virtual server.

i can open the sql from my laptop and even export the data to the VPS database. Thus, i can access SQL remotely.

can i run IIS and Nettalk on a parallel basis ? like keeping port 80 for IIS and setting some other port for nettalk. will it work?

or is it mandatory for the complete removal of IIS if i need to run nettalk?



Title: Re: uploading net talk application on godaddy windows hosting
Post by: Wolfgang Orth on September 11, 2017, 08:46:08 AM
hi wolfgang,
thanks for the reply.

yes, i use RDP.

I cant open the exe even from inside the virtual server.

i can open the sql from my laptop and even export the data to the VPS database. Thus, i can access SQL remotely.

can i run IIS and Nettalk on a parallel basis ? like keeping port 80 for IIS and setting some other port for nettalk. will it work?

or is it mandatory for the complete removal of IIS if i need to run nettalk?

Yes, you can run more than just one webserver on one machine. However, each webserver has to have its own port! So, when the IIS listens to port 80, you can make your NTWS listening to port 20000. Or 54321. Or 81.

Consequently you have to open both port 80 and 81 to the public and your users will be able to access your NTWS with an URL like http://123.123.123.123:81. If this looks okay to you and your users, its a solution.

If you prefer to avoid a trailing port-number _and_ like to have a symbolic name, rather than an IP-Address to surf to, then start reading this article: "Apache As A Reverse Proxy For Clarion Web Servers" by Ben Krajmalnik.

https://clarionmag.jira.com/wiki/download/attachments/399450/cmag-2007-02.pdf?api=v2

The article covers the basics on that port-number thingie. As the next step I suggest you to go to a service like No-Ip.com and obtain an address over there, which then points to your server. Like Jason.No-Ip.Com or whatever is still available. Make that address point to your http://123.123.123.123. Note: there is no portnumber in that URL, because the Apache (or IIS) will run on port 80, receiving the request for Jason.No-Ip.Com. The Apache (or IIS) will now look into a list of virtual hosts on this machine (Apache looks into a textfile named vhost.conf) for that Jason.No-Ip.Com, reads the accompanied IP-Address 127.0.0.1:81 and hands the request you your webserver, which then responds. The user does not see anything of this. All he sees is the address he typed into his webbrowser. I have a dozend webserver running on one and the same box, works great.

If you want to have a "real" webaddress, like www.Jason.com, you then have to fiddle with the DNS. Not difficult at all.

But get your NTWS running locally first.

enjoy and have fun
Wolfgang
Title: Re: uploading net talk application on godaddy windows hosting
Post by: Bruce on September 11, 2017, 10:05:40 PM
Hi Jason,

>> The IIS is completely removed.

But it was there right?
Else where did the line
"Source File: C:\inetpub\sites\mywebsite.com\web.config    Line: 1 "
come from?

>> I open the application...nothing is generated.

you mean you do not see the WebServer log window? Clearly you need to see that. If you're not seeing that then you need to figure out why not. Perhaps you are missing a DLL or something. Or perhaps you need to set the firewall on the server to allow the program.

Or perhaps there is some other restriction - depending on the install of Windows. Like maybe it needs to be signed or something.

>> can i run IIS and Nettalk on a parallel basis ? like keeping port 80 for IIS and setting some other port for nettalk. will it work?

It can be done (as wolfgang describes) but serves no purpose to do this.
You are better off letting NetTalk just serve everything, your dynamic app and your static files.

cheers
Bruce
Title: Re: uploading net talk application on godaddy windows hosting
Post by: ntnewbies on September 12, 2017, 06:00:26 AM
Hi Wolfgang,
Thank you very much for the fine detailed input. Yes, now Nettalk finally works! both localhost and as well as on other browser outside the server.
but as you say its right....it opens when i type : www.jason.com:2222

i would like to make it like if the client type www.jason.com/jsapp then it should automatically redirects to www.jason.com:2222

is there any alternative than going for noip.com? can i do it if i create another zone in dns?


jason
Title: Re: uploading net talk application on godaddy windows hosting
Post by: ntnewbies on September 12, 2017, 06:06:18 AM
hi bruce,
my apology for confusing you.

i get the "Source File: C:\inetpub\sites\mywebsite.com\web.config    Line: 1 "
when IIS was installed in my VPS server.

but after i remove the IIS from the server, it cant run because i figure out that it was a wrong port number usage.

you mean you do not see the WebServer log window?
- what i mean is that i can see the log file but no data generated because i cant run even in localhost of the nettalk application.

now that i make it both IIS and nettalk to run on different port, all goes well.

But as per your suggestion, it would be better if i just maintain nettalk web server and delete IIS.

if that is the case, how can i display my index.htm file first when the customer opens my website
say for example : www.jason.com

my idea is when my customer type www.jason.com, it would open a index html file and one of the menu link will open the nettalk application (customer portal).

to achieve it, i should configure something in nettalk global extension?

also, whats the drawback of running both IIS and nettalk web server together?

thanks for your kind and patience reply to my newbies questions. appreciate it.

jason
Title: Re: uploading net talk application on godaddy windows hosting
Post by: Bruce on September 12, 2017, 09:33:52 PM
Hi Jason,

>> if that is the case, how can i display my index.htm file first when the customer opens my website say for example : www.jason.com

WebServer procedure, NetTalk extension, Settings, General tab, Default page.
Set this to
'index.htm'

make sure index.htm (and other static files) are in the web folder.

>> also, whats the drawback of running both IIS and nettalk web server together?

it's a whole bunch of extra work to make this work, and gives you no return. Also it makes you put the nettalk stuff either on another port, or another domain, both of which just make the integration more ugly.

Plus it exposes your server to any flaws in IIS, again with no gain. So now you have 2 programs to keep updated, not just 1.

In other words, it's twice the work (well more than twice the work) and serves no purpose at all.

cheers
Bruce