VFP and .NET Interop
set up IIS for my web service to run on a cloud server
Gravatar is a globally recognized avatar based on your email address. set up IIS for my web service to run on a cloud server
  VFPJCOOK
  All
  Jul 25, 2017 @ 07:14am

Hi Rick,

A lot has changed since we last visited. Hope you are well. If you recall:

I have my web service ITFWebService written in VFP/VFE and you helped me make it internet accessible.

It is only running on one local server at one of my customer sites. Been running for years now. Last August I did get it running on a 2nd local server at a different customer site. That ended up not coming to fruition so my web service never got used on that customer site. That was a server 2012 r2 server.

Aug 15 I go live with a new customer. This will be the first instance of my app running on a cloud server where users access my app via RemoteApp. I have done extensive testing and it all looks good.

This new installation will need my web service. I have been trying all morning to setup IIS for the web service. I have almost no notes or knowledge of how to do this.

What I did: I zipped up the ITFWebService folder on the server 2012 r2 server and copied that to a folder on the cloud server (basically I copied what I know will run on a customer's server to the new cloud server).

I went into IIS and basically mimicked (best I could) between the 2 servers. The cloud server is also server 2012 r2.

I get the following error when I go to the browser on the cloud server and access http://localhost/ITFWebService.asmx?

Thanks for any advice, John Bulletproof Software Inc

Gravatar is a globally recognized avatar based on your email address. re: set up IIS for my web service to run on a cloud server
  Rick Strahl
  VFPJCOOK
  Jul 25, 2017 @ 08:58am

Well you need to configure IIS for the folder location and it looks like that's not been done. You need to create an Application and assign an Application Pool to it that matches your permissions. The rest should just work as is since this is an ASP.NET service.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: set up IIS for my web service to run on a cloud server
  VFPJCOOK
  Rick Strahl
  Jul 25, 2017 @ 10:18am

Thank You Rick,

Well...I would do that but as usual I have very little clue what you are telling me BUT, I am wanting to learn. I really need to have an understanding of this process. Do you have a white paper that would educate me on how to setup IIS for my service and help me to understand why I am doing what?

I did look at the other server's IIS setup and everything I see looks identical. I had already (before I posted my question) setup a "site" but perhaps that is not the same as an "application" but when I look at the other server I do not see any applications yet it works so I am totally confused.

Thanks, John

Gravatar is a globally recognized avatar based on your email address. re: set up IIS for my web service to run on a cloud server
  VFPJCOOK
  Rick Strahl
  Jul 26, 2017 @ 10:52am

Thank You Rick, I just in the last few minutes figured it out. I tried everything I could imagine. For one thing I had missed adding the HANDLER in the IIS settings. I did that but that was not the biggest issue. The biggest issue was my physical path was pointed to the root folder for my service i.e. d:\ITFWebService but that was wrong. I finally "saw" the light and realized it was trying to access ITFWebService.asmx at that location rather than in the subfolder Web so I changed the physical path to d:\ITFWebService\Web and it works. I will read the document you pointed me to because I really do need a full comprehension of "what I am doing" and I certainly do not have that.

Thanks again, John

© 1996-2024