CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8
  1. #1
    Join Date
    Sep 2007
    Posts
    18

    IIS 6.0 and Windows 2003 Server Problem

    Hi All,
    When I am on my XP machine with IIS 5.1 I create a virtual folder called Download off my web site. I place an exe file called a.exe in this folder.
    I enable the Web Server for Anonymous access.
    When I type http://192.160.20.30/Download/a.exe in Internet explorer I can download the file.
    192.160.20.30 is the local machine IP address.

    I do exactly the same thing using IIS 6.0 on a Windows 2003 Server machine.
    When I type http://192.163.22.32/Download/a.exe in Internet explorer I get a 404-0 error.
    When I trawled the web I found that 404-0 is "File or directory not found"
    But I am doing exactly the same thing as I was doing on my XP machine.

    How do I enable myself to download an exe from a Virtual directory on Windows 2003 Server using IIS 6.0?
    Thanks all.
    Last edited by carrolls; May 2nd, 2008 at 09:30 AM.

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: IIS 6.0 and Windows 2003 Server Problem

    Last edited by dglienna; May 2nd, 2008 at 10:07 PM.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Mar 2002
    Location
    St. Petersburg, Florida, USA
    Posts
    12,125

    Re: IIS 6.0 and Windows 2003 Server Problem

    Quote Originally Posted by dglienna

    a) Most of that link is actually "proper procedure" rather than "a work around"

    b) Since you have published your Click Once application is is now part of the past, rather than the future.
    TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
    2008, 2009,2010
    In theory, there is no difference between theory and practice; in practice there is.

    * Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
    * How NOT to post a question here
    * Of course you read this carefully before you posted
    * Need homework help? Read this first

  4. #4
    Join Date
    Sep 2007
    Posts
    18

    Re: IIS 6.0 and Windows 2003 Server Problem

    Thanks dglienna et al,
    but in view of the fact that I have set Execute Permission = 'None' on the IIS6.0 Win2003 machine, and it still is coming back with a 404.0 error when I try to download an exe file, what do i need to do to make IIS 6.0 on a Windows 2003 machine behave like IIS 5.1 on an XP Professional machine in terms of downloading an exe from a website.
    Thanks

  5. #5
    Join Date
    Mar 2002
    Location
    St. Petersburg, Florida, USA
    Posts
    12,125

    Re: IIS 6.0 and Windows 2003 Server Problem

    Can you please post the actual IIS log (just covering the time period where you attempt a single download...we not need megabytes of what has happended for weeks. )
    TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
    2008, 2009,2010
    In theory, there is no difference between theory and practice; in practice there is.

    * Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
    * How NOT to post a question here
    * Of course you read this carefully before you posted
    * Need homework help? Read this first

  6. #6
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: IIS 6.0 and Windows 2003 Server Problem

    Quote Originally Posted by TheCPUWizard
    b) Since you have published your Click Once application is is now part of the past, rather than the future.

    This is true.


    About IIS, did you specify the correct version of Net? You need a default document also, unless you specifically turn on directory browsing.

    Also, check your firewall.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  7. #7
    Join Date
    Sep 2007
    Posts
    18

    Re: IIS 6.0 and Windows 2003 Server Problem

    Quote Originally Posted by TheCPUWizard
    Can you please post the actual IIS log (just covering the time period where you attempt a single download...we not need megabytes of what has happended for weeks. )
    My Windows 2003 Server is in the office.
    I will be back in the office on Tuesday, today is a bank holiday.
    I will post the log first thing..
    dglienna, I have the correct version of net chosen. 2.0xxx, also the firewall is off.
    CheersCPU Wizard.
    Last edited by carrolls; May 5th, 2008 at 03:18 PM.

  8. #8
    Join Date
    Sep 2007
    Posts
    18

    Re: IIS 6.0 and Windows 2003 Server Problem

    Hi CPUWizard
    Here are the logs that were generated for the error.
    I tried it three times in a row and it is still failing.
    I have only anonymous access on for the Downloads virtual folder.
    I have set the execute permissions to none for the virtual folder.
    I have set Read, Write and Directory browsing to on.
    I have added .exe octet/stream as a mime type.
    I have disabled default content page.

    #Software: Microsoft Internet Information Services 6.0
    #Version: 1.0
    #Date: 2008-05-06 08:17:16
    #Fields: date time s-sitename s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status
    2008-05-06 08:17:16 W3SVC300981380 192.163.22.32 GET /Download/a.exe - 80 - 192.163.22.32 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727) 404 0 3
    2008-05-06 08:22:59 W3SVC300981380 192.163.22.32 GET /Download/a.exe - 80 - 192.163.22.32 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727) 404 0 3
    2008-05-06 08:23:01 W3SVC300981380 192.163.22.32 GET /Download/a.exe - 80 - 192.163.22.32 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727) 404 0 3

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured