Web Connection
New WC Install - wcdemo fails in browser
Gravatar is a globally recognized avatar based on your email address. New WC Install - wcdemo fails in browser
  Joel Aiken
  All
  Aug 4, 2017 @ 03:52pm

Rick, I have something wrong on the setup for a new WC install on a Vultr VM host. VFP installed just fine. WC installed without error.

I can start a WCDEMO instance normally. However when I attempt hit the server with http://localhost/wcdemo, I get the error message HTTP Error 500.19 - Internal Server Error

I'm sure this must be a simple glitch in the WC setup, but no success after a couple hours trying to determine what I've done wrong.

Thanks for any advice, Joel Aiken

Gravatar is a globally recognized avatar based on your email address. re: New WC Install - wcdemo fails in browser
  Joel Aiken
  Joel Aiken
  Aug 4, 2017 @ 06:24pm

Here's the full error message Looks like a permission problem, but I don't see anything wrong in permissions. Or something in the web.config file in the c:\wconnect\web\wconnect directory The test2.htm file is a file I put in the directory for testing I get the same error on any htm file in that directory, like default.htm

Joel

HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid.

Detailed Error Information: Module IIS Web Core Notification BeginRequest Handler Not yet determined Error Code 0x80070021 Config Error This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false". Config File \?\c:\wconnect\web\wconnect\web.config Requested URL http://localhost:80/wconnect/test2.htm Physical Path c:\wconnect\web\wconnect\test2.htm Logon Method Not yet determined Logon User Not yet determined

Config Source: 65: 66: 67:

More Information: This error occurs when there is a problem reading the configuration file for the Web server or Web application. In some cases, the event logs may contain more information about what caused this error. View more information ยป

Gravatar is a globally recognized avatar based on your email address. re: New WC Install - wcdemo fails in browser
  Rick Strahl
  Joel Aiken
  Aug 5, 2017 @ 10:05am

Not sure, but why would you even install Web Connection like this?

On the server you only need to have the FoxPro runtimes and your application's binaries installed.

As to permissions the Web Connection installer should set all the appropriate permissions on the Web folders include IUSR_ access.

Make sure the folder you're accessing (/wconnect I suppose) is actually configured as a virtual application in IIS. Then check the error message and it should point at a line in the web.config where permissions are required. It might be that the default permissions on the server for IIS are such that there you can't override the handler mappings (which would be kind of weird). Make sure you have all the right components installed on the server including ASP.NET.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: New WC Install - wcdemo fails in browser
  Joel Aiken
  Rick Strahl
  Aug 5, 2017 @ 10:31am

Rick, Thanks. I'll double-check everything, especially the items you mention. May even re-install WC again. The reason I'm using a Vultr VM (to install VFP and WebConnect) is because my only PC's are are older boxes and need to be replaced. And my favorite personal laptop is a 13" Macbook Air. I like to travel, and it's really convenient to take only the Mac (and connect to the VM using Remote Desktop) I thought it might be easier to have my development machine be in the cloud, knowing it is secure and always available remotely. I enjoy using the Mac for all my other computer activity. I wonder your opinion of this setup. $35/month for the VM, versus probably $800+ to purchase decent Windows machine. The macbook air I'm using was purchased in 2011, and still runs like a top today. I don't like loading Windows on the mac (parallels), seems kinda clunky. I did that once before years ago on another mac and didn't like it.

Thanks for all your comments, they help a lot. Joel

Gravatar is a globally recognized avatar based on your email address. re: New WC Install - wcdemo fails in browser
  Joel Aiken
  Joel Aiken
  Aug 5, 2017 @ 12:13pm

Rick, Server works fine now. ASP.Net was missing. Thanks,

Joel

Gravatar is a globally recognized avatar based on your email address. re: New WC Install - wcdemo fails in browser
  Rick Strahl
  Joel Aiken
  Aug 5, 2017 @ 04:21pm

Re: VM as Windows work machine. Sure that works, but perf will never be as good as a even a mid-range local machine at least not with that configuration. OTOH, VFP doesn't require a lot of resources so that's a bonus in this case.

I could never live with the latency of a remote connection. I tend to have near top of the line laptops that have the horsepower to run VMs if necessary. I run my Macbook Pro as a Windows machine primarily and it's nice for that (minus the funky MAC keyboard layout).

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: New WC Install - wcdemo fails in browser
  Joel Aiken
  Rick Strahl
  Aug 5, 2017 @ 06:09pm

Now you've got me thinking of a new MacBook Pro. Since my Macbook Air is nearly 6 years old, I think I deserve a new laptop... just went browsing the Apple site. Thinking of a 15" MB Pro pretty much loaded.

Which product do you use to run Windows? Parallels? Sounds like you're using the Mac with Windows to do your WC development. Any glitches to watch out for?... using a Mac instead of a PC?

I'm glad I asked you about the development setup. I've been out of the development loop for 3 years, and am now getting back into it. I did a manufacturing app for a small Shopify company which now wants some significant enhancements, and I am considering building a Shopify-connected app, and offering the app to Shopify users. I think there's a real need for it. Shopify is a very successful system for online sellers, and I see no one providing an app like I have in mind. My Web Connect experience was manufacturing, sales and accounting apps for our own family business.

Joel

Gravatar is a globally recognized avatar based on your email address. re: New WC Install - wcdemo fails in browser
  Rick Strahl
  Joel Aiken
  Aug 6, 2017 @ 11:55am

I run Windows on Bootcamp most of the time, but I also have Parallels installed on the Mac. I rarely run the Mac though - mainly for mobile dev otherwise MacOS drives me batty. I have the Mac set up so that Parallels can use the Bootcamp partition so I can run Windows natively or in Parallels. I have my 1tb drive partioned half and half between Mac and Windows although I should have probably made the Windows partition larger - probably can still do that.

If you get a decked out Macbook Pro (ie. 16gig i7, 512gb or 1tb) you can easily run Mac and Windows side by side with Parallels. Latest version of Parallels is pretty decent and even running Visual Studio (which is amongst the biggest resource hogs on Windows) in heavy development with big projects works very well. But there are quirks even then - some key combos don't work quite right (ctrl-F2 for Fox is one of them!) and when you know how fast things run without going through a VM it's hard to put up with the slower speed in Parallels compared to Bootcamp.

My next machine won't be a Mac. I'll keep this one for the little bit of Mobile work I need it for, but next machine is likely to be another Dell XPS 15. This Mac is two years old now and it's been solid. The hardware is very nice but the keyboard is such a bloody pain to deal with on Windows (and on the Mac for me). I also miss the lack of touch UI.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: New WC Install - wcdemo fails in browser
  Joel Aiken
  Rick Strahl
  Aug 6, 2017 @ 08:25pm

Great info. Thanks for sharing. Best, Joel

Gravatar is a globally recognized avatar based on your email address. re: New WC Install - wcdemo fails in browser
  Joel Aiken
  Joel Aiken
  Aug 7, 2017 @ 01:31pm

Rick, now you have me thinking about a Dell laptop for the development machine. For the OS on the laptop, is Windows 10 Pro plenty good enough, as opposed to Win Server 2016?

Joel

Gravatar is a globally recognized avatar based on your email address. re: New WC Install - wcdemo fails in browser
  Tore Bleken
  Joel Aiken
  Aug 7, 2017 @ 10:46pm

Go for Windows 10 Pro. Windows Server is for a dedicated server, and not for a workstation.

© 1996-2017