Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
EXE can't find server, VFP IDE has no problem
Message
De
23/12/2014 16:27:12
Al Doman (En ligne)
M3 Enterprises Inc.
North Vancouver, Colombie Britannique, Canada
 
 
À
23/12/2014 13:25:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01612426
Message ID:
01612679
Vues:
58
>>>
>>>(Weird) UPDATE: On a network share I am able to run the EXE when there is NO config.fpw. As soon as I include a config.fpw the exe cannot connect to the backend SQL Server database.
>>>I have spent the morning trying to find different system variables, SETs but haven't pinpointed it yet.
>>>BTW, I do not have a config.fpw in my VFP home directory. If one does not exist, is there an internal one that VFP uses?
>>>Thanks Al for pointing me to the config.fpw!
>>>Ed
>>
>>This article will answer most of your questions. http://rickschummer.com/blog/2008/06/vfp-include-configfpw-in-exe.html
>
> LOL, that's the article that got me into trouble in the first place! I used Rick's stripped down version of the config.fpw and finally figured out it is the config.fpw itself that is causing issues (even a stripped down one). There must be something VFP IDE loads (or perhaps the VFP.EXE has certain permissions on my company network) that is different than my compiled exe.

Actually your last point is a good one. If your network is fairly tightly locked down you may have firewall rules blocking SQL Server traffic; its communication requirements are at http://support.microsoft.com/kb/287932 .

A firewall on your machine with outgoing rules may allow VFP9.EXE but not allow your compiled EXE.

It's less likely a firewall rule on the machine hosting SQL Server is causing the problem but if it's granular to the point of controlling access by program by computer, then it could be worth looking at.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform