Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

browsing .sql file giving 404 [IIS 6.0 on Win 2003]

Posted on 2004-04-16
5
380 Views
Last Modified: 2008-02-26
Environment : [IIS 6.0 on Win 2003]

Situation is like this:

i have several ".sql" files in one of my folder, say /usefulsql
this folder is accesible thru web by pointing my browser to:

http://mydomainname/usefulsql

[n.b. directory brosing is allowed for this folder in IIS]

Problem Statement :

but the problem is when i am opening one of the sql file say "1.sql"
i m getting 404 error.


My take:
1]
I am sure due to security reason or some s*it like that IIS is not fetching that file for me.
2]
On further R'nD i found that in Win 2003 "Find files or folder" if i specify
file named *.sql *containing text* - Insert it is returning me 0 files. but I
can clearly see sevral Insert writting in those sql file

when i changed the file ext of 1.sql to 1.txt it shows :

1 file *containing text* - Insert

so both of my findings suggest that win 2003 is treating .sql file is some
strange way, that is why it is not getting fetched by IIS and the text
written it is not getting searched by "Find files or folder"

- sandeepz_

p.s.
I went to
file explorer~tool~folder options~File types
and recreated the .sql and notepad assosiation but in vein

0
Comment
Question by:sandeepz_
5 Comments
 
LVL 2

Accepted Solution

by:
Psychotext earned 50 total points
ID: 10855004
You need to allow IIS 6 to handle this type of file extension as it's locked down by default.  Add a mime type to handle it.  You can do this in the following screen:

IIS Manager -->  Web Sites --> Your Website (Right click --> properties) --> HTTP Headers Tab -->  Mime Types (Click button)

Then add the "sql" extension with the description of your choice.  It'll display, if you want to save the file automatically there is a bit more work involved.
0
 

Author Comment

by:sandeepz_
ID: 10857646
thanks  Psychotext
its working superb!
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here are the symptoms: You start receiving calls from users that one of your legacy web apps isn't coming up, so you log into your IIS 5 server to check it out.  When you pull up the services, you notice that the WWW Publishing service isn't runn…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question