Solved

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

Posted on 2004-04-16
5
379 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

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…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

770 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