View Complete Thread | FoxWeb Forum Home
Search:
Date:    Msg ID:   
From:    Thread:   
Subject:   
I don't understand how this can explain why you could post a single file, but not two files.  Besides, the FoxWeb setup program automatically creates a script map for the .fwx extension.

FoxWeb Support Team
support@foxweb.com email

Sent by Jim on 10/24/2006 12:04:20 PM:
Took a while, but here it is. 
 
(Lifted from: http://www.somacon.com/p126.php - has a nice screenshot too)

Symptoms

When attempting to POST to a web page in Internet Information Services (IIS) 5.1 under Windows 2000 (Win2k) or Windows XP, you may receive the following error:

The page cannot be displayed 
The page you are looking for cannot be displayed because the page address is incorrect.  

--------------------------------------------------------------------------------

Please try the following:

If you typed the page address in the Address bar, check that it is entered correctly.

Open the 127.0.0.1 home page and then look for links to the information you want. 
HTTP 405 - Resource not allowed
Internet Information Services

--------------------------------------------------------------------------------

Technical Information (for support personnel)

More information:
Microsoft Support  

The code in the sample page that was posted might have been:

<!-- test.html EXAMPLE -->
<html>
<head><title>Test Post</title>
</head>
<body>

<form method="post" action="test.html">
<input type="submit">
</form>

</body></html>

Cause

The file type is not registered in the IIS script map settings (e.g. .html or .htm). IIS 5.1 only allows HTTP requests of type to GET to unmapped files. HTTP requests of type POST, HEAD, and all others are responded to with a 405 resource not allowed error.

As a security note, you should always remove unused script mappings. This is the default behavior of IIS 6, which will only serve named extensions and refuse all others.

Resolution

Add a script map for the extension. A script map associates a particular file type with a given script module. The web server runs the module on the given file and sends the output to the browser, instead of sending the file directly to the browser.

  1. Go to "Control Panel"-"Administrative Tools"-"Internet Information Services".
  2. Expand the tree to "COMPUTERNAME"-"Web Sites"-"Default Web Site".
  3. Right-click on "Default Web Site" and select "Properties". (Alternately, select "Default Web Site" and press Alt+Enter.)
  4. Select the "Home Directory" tab.
  5. Click the "Configuration" button.
  6. From the "Mappings" tab, select the "Add" button.
  7. Click the "Browse..." button, choose "Dynamic Link Libraries *.dll" from the "Files of Type" dropdown, and select c:\WINDOWS\System32\inetsrv\asp.dll.
  8. Type ".html" (without quotes) in the "Extension" box.
  9. Select the "Limit to:" radio button, and type in "GET, POST" (without quotes) in the box next to it.
  10. Click the "OK" button and close all the dialogs. (If the "OK" button is greyed out, then make sure all the entries are correct and try clicking in the file name box.)

See the screen shot below. You must adjust the above instructions to your particular OS, web site configuration, and file type. You can associate the file type with a different script engine besides asp.dll, which is the ASP 3.0 script engine. There is no need to give IWAM_COMPUTERNAME permission to the file, only IUSR_COMPUTERNAME needs NTFS read and execute permission.

Applies to

Internet Information Services (IIS) 5.1
Windows XP
Windows 2000

 

-Jim


"The true measure of a career is to be able to be content, even proud that you succeeded through your own endeavors without leaving a trail of casualties in your wake."  - Allen Greenspan

Sent by Jim on 04/07/2006 03:23:04 PM:
Sorry about that.  In my code, both issues which you point out are correct.  (sloppy cut-n-paste).  I think I know the nature of the problem and will post a little later when I'm certain. 
 
Thanks for looking into it all the same!

-Jim


"The true measure of a career is to be able to be content, even proud that you succeeded through your own endeavors without leaving a trail of casualties in your wake."  - Allen Greenspan

Sent by FoxWeb Support on 04/04/2006 05:19:16 PM:
Your BODY tag is not closed and you don't have a submit button.  Once I fixed these problems, the form worked fine under IIS.

FoxWeb Support Team
support@foxweb.com email

Sent by Jim on 04/03/2006 06:27:05 AM:
Update:
Works fine in Apache.  Sorry for the bother.
 
-Jim
 
Here you go...
 
I'm using FoxWeb 3.1, FoxPro 9, IIS-Windows 2003 server.
 

<html>
<head>
<title>Upload</title>
</head>
<body
<form name="fileinfo" action="cinfo.fwx" method="post" enctype="multipart/form-data">
  <table width="100%"border="0" cellspacing="0" cellpadding="0" bgcolor="#EEEEFF">
    <tr>
      <td align="right">Application Form</td>
      <td align="left"><input name="AppForm" type="file"></td>
    </tr>
    <tr>
      <td align="right">Medical Form</td>
      <td align="left"><input name="MedForm" type="file"></td>
    </tr>
    <tr>
      <td align="right">Brochure</td>
      <td align="left"><input name="Brochure" type="file"></td>
    </tr>

  </table>
</form>
</body>
</html>

-Jim


"The true measure of a career is to be able to be content, even proud that you succeeded through your own endeavors without leaving a trail of casualties in your wake."  - Allen Greenspan

Sent by FoxWeb Support on 04/02/2006 11:27:40 PM:
It would be helpful if you posted a simplified version of your form in this forum.  Just include the form tags, the two file upload tags and the submit button.  First verify that this simplified version still fails and then post it, so that we can examine it.

FoxWeb Support Team
support@foxweb.com email

Sent by Jim on 04/01/2006 07:45:55 PM:
Hello all,
 
I have a form which allows multiple files to be uploaded.  When a person chooses only selects one file and clicks 'upload' everything works fine.  When the person selects more than one file, IE comes back with:

The page cannot be displayed

The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings.
Has anyone else encountered this problem?  All I know is what the problem is not.  It's not that the server 'forgets' the script (which is the same one that creates the form.  And it's not that FoxWeb itself bombs.  I've kept an eye on the monitor and nothing at all happens.  That is, the status never changes from 'waiting'
 
Help, help!
 
Additional note:
Sometimes, when this happens, a blank window appears on the desktop, behind all apps.  It has no entry in the application window, but when FoxWeb is shut down, it goes away. 
 

-Jim


"The true measure of a career is to be able to be content, even proud that you succeeded through your own endeavors without leaving a trail of casualties in your wake."  - Allen Greenspan