Solved

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

Posted on 2004-04-16
5
383 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_
[X]
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
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Editing XSL files, 2 64
Registering DLL 5 72
IIS Server infected with Ransomware - Postmortem investigation 12 439
Running powershell scripts from ASP.NET 6 83
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…
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

738 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