Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: How to update foxpro tables from Asp

$
0
0
Re: How to update foxpro tables from Asp
Web Development with Visual FoxPro
Re: How to update foxpro tables from Asp
12/08/2011
04:04:34 AM
3DN08QMR4 Show this entire thread in new window
From:
To:
Attachments:
None
Dont know whether I should continue this thread or start a new one? Now upgraded to 5.6 and tried an install on my w7 m/c.
On step1 - select a web server - If I hit "advanced iis site selection" I get"IIS 4/5 is not installed on this m/c" - then OIIS is not an object.- then IIS admin objects not installed on this m/c
Step 2 Ok
Step 3 on script file path I Get "Web server not installed...." - which seems to be a folder name inside a directory that I cannot delete

??? Help


The default Web Connection project installs all are set up to run on a local machine. I would highly recommend that you develop this way. If you need to share source code, source control like Subversions or Visual Source Safe would be a better choice to share code IMHO.

That said you can develop on a central machine if you like. Just install Web Connection on the central machine and run everything on that central machine over a network (or RDP for that matter).

It's also possible to do split development with the Web Server on a remote machine and dev files local if you're running in file based mode (not COM which doesn't support cross machine calls easily). You'll have to manually configure Web Connection to make this work. Basically you set up your dev files locally and all the Web files on the server. You then point the temp files at a common folder on the server and both machines can pick out requests from this common folder.

IMHO, this is almost never a good solution for development (regardless of development platform) - it's simply cleaner to have everything local and then deploy the app to either a live site or staging server or both.

+++ Rick ---

Have decided to give web connection another try (got 5.4 some 2 yrs ago - but gave up with it).
1st problem I have is that I develop in vs2010 on 2 computers (Xp & W7) using source on fileserver - then test by copying site to an internal webserver (W2008 R2) that hosts my test site (www.1stclassdriving.net)

I have loaded web connect to the W7 m/c - but it now seems to want IIS loaded - that tells me that it will run on the local m/c which I dont want.

I've been trying to work out how to do this - is there any tutorial that can show me where I should be installing what to where?

Regards

Brian


Hi Brian,

As you seem to already have figured out there are a number of options available to do this depending on how complex your situation is.


  • Use .NET and OleDb to access data directly from .NET

  • OleDb allows SQL access to FoxPro data from .NET applications. This works reasonably well, especially if you have some helper classes (you can look at an example here to get an idea of what this might look like). OleDb works Ok, but only provides SQL access so no FoxPro commands/code can execute easily. It works reasonably well for query only apps and light data entry apps. Biggest issue is OleDb flakyness and inability to control data acess for exclusive use.

  • Use .NET with COM Interop to access FoxPro logic via COM

  • You can build FoxPro COM object to access FoxPro code from .NET. The basic process is fairly easy, but maintenance of this process gets pretty complex due to the compiled nature of COM objects. Because objects are compiled it's hard to debug problems if they occur - it requires a strict regimen to properly test your components and very difficult to debug errors in deployed applications.

  • Use a pure FoxPro Solution to build your backend

  • You can also build a Web application using purely FoxPro code where the server responding to requests is a full FoxPro application. West Wind Web Connection is one of these choices, which basically let you build everything in FoxPro code. One advantage of these types of solutions is that you typically can develop applications interactively just like any other FoxPro application in the FoxPro IDE including stepping through code and breaking on errors on the relevant code.

    My company specializes in tools for the latter and Web Connection is the tool we provide for that.

    All solutions will require you to build your user interface using HTML, and then hook up the FoxPro data to that user interface. When using Web Connection we provide many tools that make this process somewhat similar to the experience you have in desktop applications, but it is definitely a different development process.

    If you're curious on how this works, you can take a look at our Web Connection intro videos that show how this works with Web COnnection using Visual Studio.

    If you have more specific questions you can post them here.

    +++ Rick ---

    My company ( a Driving school) has an old fox2.6 system for bookings/accounts etc and although some has been updated to vfp 8 that still uses the original dbf tables.

    I am now tasked to develop a website that allows our Driving Instructors to see their Diary and make changes online. The website to be developed in VS2010.

    I would really appreciate any advice as to the best way to achieve this - as it seems there is no simple way.






    Viewing all articles
    Browse latest Browse all 10393

    Trending Articles