Web Connection
Creatin New Process Class Error
Gravatar is a globally recognized avatar based on your email address. Creatin New Process Class Error
  Ron Jasper
  All
  Feb 10, 2025 @ 07:08am

Hi Rick, I'm having trouble creating a new process class as per the tutorial. I've created a business object that works well. I believe I've followed the instructions closely when I create the process class and the subfolder shows up with the default.htm etc files in it. I am using IIS Express to test locally and when I type the test url as follows: http://localhost:7000/customerdemo/default.htm I get a 404 error. Could you please point me in the right direction, thanks. I'm wanting to build my first REST api and I think I'll want to use your suggestions in the tutorial but I'm stuck at this point. Thanks for your help, really appreciated. I should also note that when I try just http://localhost/customerdemo/default.htm I get a connection refused error.

Gravatar is a globally recognized avatar based on your email address. re: Creatin New Process Class Error
  Rick Strahl
  Ron Jasper
  Feb 10, 2025 @ 09:59am

There should be no /customerdemo path for IIS. It should be: http://localhost:7000/default.htm most likely.

That said you can set up IIS Express to do the virtual path, but you have to manually configure it in the IIS Express Task Menu applet.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Creatin New Process Class Error
  Ron Jasper
  Rick Strahl
  Feb 10, 2025 @ 11:15am

Hi Rick, I've followed the instructions here: https://webconnection.west-wind.com/docs/_0i104drv5.htm and it definitely shows a subfolder in the path. I've tried it without "CustomerDemo" in the url and I get an error. The main webdemo page loads when I run launch(). Could you please point me to the IIS Express Task Menu applet, thanks. I'm hoping it's a configuration issue with IIS Express.

Gravatar is a globally recognized avatar based on your email address. re: Creatin New Process Class Error
  Ron Jasper
  Ron Jasper
  Feb 10, 2025 @ 01:20pm

Hi Rick, Is there a way to upload a screenshot on this forum?

Gravatar is a globally recognized avatar based on your email address. re: Creatin New Process Class Error
  Rick Strahl
  Ron Jasper
  Feb 11, 2025 @ 09:20am

When I create a new project and choose IIS Express as the Web Server I get the following:

IIS Express is set up to run off the root not off the virtual like IIS does and it tells you what the start URL is when it launches in the VFP IDE Console output.

If you originally set up for IIS then switched the URL is likely wrong and you need to change it in your launch.prg file to the actual launch URL.

You can check IIS Express status on your Windows Task bar Task Tray. There's not much you can see, only the port that it's defined on. But it definitely shows you that you are running and you should be able to open the default.htm page there at minimum as that's a static page.

If there is a virtual (ie. /test) the URL will show it - in this case there's none and the default setup for IIS Express never creates one.

Images: You can paste from clipboard directly into the editor or upload image using the image icon in this editor.

All this said, for the easiest local development experience the .NET Web Server is the easiest way and the new installer can auto-install the required .NET Runtime SDK for you if it's not already installed.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Creatin New Process Class Error
  Ron Jasper
  Rick Strahl
  Feb 11, 2025 @ 10:09am

Thanks again Rick, I'll use the .NET Web Server for local development. And thanks for pointing out how to upload an image. All the best.

Gravatar is a globally recognized avatar based on your email address. re: Creatin New Process Class Error
  Ron Jasper
  Rick Strahl
  Feb 11, 2025 @ 10:11am

Can I just do a re-install of Web Connection on top of the old one to get the auto-install of .NET to kick in?

Gravatar is a globally recognized avatar based on your email address. re: Creatin New Process Class Error
  Rick Strahl
  Ron Jasper
  Feb 11, 2025 @ 10:40am

To install the .NET Core server I believe you can just create a new project with that as your default server and it will prompt you. If it doesn't there's a DotnetRuntimeInstaller.exe in the Web Connection install folder that installs the correct runtimes.

It installs the .NET runtimes not the SDK - which is the minimum you need to run the local Web Server. The SDK is useful as it adds support for creating local certificates so you can run locally with https://.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Creatin New Process Class Error
  Ron Jasper
  Rick Strahl
  Feb 11, 2025 @ 01:58pm

Thanks Rick, I'll give that a go.

Gravatar is a globally recognized avatar based on your email address. re: Creatin New Process Class Error
  Ron Jasper
  Rick Strahl
  Mar 4, 2025 @ 06:08am

Hi again Rick, Just getting around to installing the .NET server and am wondering how to get the SDK to install. Do I need to do a complete setup.exe re-install to get the .NET SDK to install. I'm hoping I won't have to, but think I should definitely get the .NET server running for local testing and would benefit from the SDK as https: local certificates is something I need to get skilled on.

© 1996-2025