Web Development with Visual FoxPro
Web Connection - Deploy - web.config
Gravatar is a globally recognized avatar based on your email address. Web Connection - Deploy - web.config
  Edward K. Marois
  All
  Apr 9, 2019 @ 12:01pm

Dear Rick:

I would like to report that I have made significant progress with 'Web Connection'

I have worked through the Tutorials to the point that I am confident I know what I am doing ... somewhat.

We setup a 'Windows Server 2012 R2' with 1&1 and I managed to get www.risdesk.com up and running ... somewhat.

I installed Visual Foxpro 9.0 on the server and did the update

The 'IIS Server is version is 6.3' and It has been suggested to upgrade to the latest version of IIS.

The 'IP Address Binding' was done off the 1&1 web site by 'adding an A record' and NOT in IIS.

The name of the project is 'webtest' just to keep things simple.

I attempted to do a manual deploy

I copied the File and folders in the 'webtest' project from my workstation to the 'C:\inetpub\webroot' folder except the 'web' folder that I copied into the root.

I am using the 'index.html' as an 'Entrance Program' instead of the 'Default.html' which according to the web.config file seems to be irrelevant.

The point of this message is ... When the www.risdesk.com is opened in a 'web browser' on the 'Windows Server 2012 R2' I got a 0x80070021 'Resource NOT found Error', around line #78

I had to cut out part of the web.config in order for the web page to appear.

This was removed

    <!-- IIS 7 Script Map Configuration -->
    <handlers>
      <add name=".wp_wconnect-module" path="*.wp" verb="*" type="Westwind.WebConnection.WebConnectionHandler,WebConnectionModule" preCondition="integratedMode" />
      <add name=".wc_wconnect-module" path="*.wc" verb="*" type="Westwind.WebConnection.WebConnectionHandler,WebConnectionModule" preCondition="integratedMode" />
      <add name=".wcs_wconnect-module" path="*.wcs" verb="*" type="Westwind.WebConnection.WebConnectionHandler,WebConnectionModule" preCondition="integratedMode" />
      <add name=".md_wconnect-module" path="*.md" verb="*" type="Westwind.WebConnection.WebConnectionHandler,WebConnectionModule" preCondition="integratedMode" />
    </handlers>

Which is more than likely something that I have to fix.

I would surmise the running 'DO launch with .t.' and install ISSEXPRESS will solve the problem or will it seriously mess things up.

or

Do I have to move the 'webtest/web' folder contents into a C:\inetpub\webroot\web' folder and try again

or both

or is there something else ???

I hope my explanation is extensive enough, please let me know ...

Edward K. Marois - Realty Information Systems ...

Gravatar is a globally recognized avatar based on your email address. re: Web Connection - Deploy - web.config
  Edward K. Marois
  Rick Strahl
  Apr 10, 2019 @ 10:48am

Dear Rick:

In the Webtest_ServerConfig.prg ... could you please change all the 'WAIT' into 'MESSAGEBOXES' for Errors. If the ISS is NOT configured properly the nice message telling the user this is coverup by another 'WAIT'.

I managed to figure out how to configure the IIS and install the 'web connection' program, get the ISS to point to the 'web' folder and run the Webtest_ServerConfig.prg without any errors.

There really should be a set of documentation for every version of 'Windows Server', but that would not make it 1/2 as much fun.

One is rather forced into having to figure the whole thing out.

Tomorrow, Development Starts

Your the man ...

Gravatar is a globally recognized avatar based on your email address. re: Web Connection - Deploy - web.config
  Rick Strahl
  Edward K. Marois
  Apr 10, 2019 @ 07:08pm

I don't know I think if you follow the instructions for installation - using the powershell script to configure IIS, run the server update (yourApp.exe CONFIG) the process can be fairly automatic. It's a lot easier than it used be in that you really had to do everything manually before. Now at least you have an option to let it be automated and are only forced to manual if for some reason that fails (usually due to not following steps in the right order).

re: Different Windows or Server Versions: That really doesn't matter for recent versions as all versions of Windows post Server 2003 and XP use the same Web Server mechanism and functionality. Nothing has changed since IIS 7. What has changed is the UI, but again, if you use the automated tools you probably don't need to touch anything manually unless you want to.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Web Connection - Deploy - web.config
  Edward K. Marois
  Edward K. Marois
  Apr 11, 2019 @ 08:26am

Dear Rick:

You are correct ... Thanks ... This is all very new to us and we appreciate your patience ...

Gravatar is a globally recognized avatar based on your email address. re: Web Connection - Deploy - web.config
  Rick Strahl
  Edward K. Marois
  Apr 21, 2019 @ 01:50am

I don't know this is a bit vague...

You defintely need the <handlers> section you took out because that what hooks Web Connection up in IIS. Without it nothing will work.

404 Not Found errors can be vague in IIS as they can be caused by any number of things not just missing files or other resources. 404 can be caused by invalid permissions or missing IIS feature. It could also be the bin folder and the webconnectionmodule.dll in that folder might be missing.

Make sure the virtual/application is properly configured in IIS and you have ASP.NET enabled and the appropriate permissions for ASP.NET set up (like ASP.NET/ISAPI Execution Permissions). Since you appear to be doing this all manually I suggest carefully reviewing the steps in the IIS configuration topic:

We provide tooling for all of this so you don't have to do this manually using the Server Configuration that gets generated into every new project. To see what needs to be done step by step you can peek into the yourServer_config.prg file which shows most of the steps (minus the IIS setup config).

+++ Rick ---

© 1996-2024