Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2004-04-16
5
Medium Priority
?
387 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 200 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
Loops Section Overview
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

927 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