Friday, March 26, 2010

plz help.....404 file not found

I have two files one .sql and one .doc at a server location. when I try to access the files through the browser url using mapped drive address, the .doc file opens but the .sql file shows HTTP 404 file not found error.

Could someone please give me any reason for this?..

plz help.....404 file not found

Hi

Could you please paste the url here, for which you are getting 404 file not found error

plz help.....404 file not found

This is related with IIS as IIS dont understad the file type, you have to add .sql file mime type in iis configuration (httpheaders tab) to resolve this. You can find the mime type for this. Please try ''application/x-sql''.

Thanks for the info..

Is there any way we can configure the mime type in cold fusion application server?

Are you trying to configure your server so that ColdFusion will handle files with a .sql extension??It is possible that your web server (IIS or Apache) is not configured to serve pages with a .sql extension.?I'm not sure what you're trying to accomplish.?Can you give us more information about your server configuration (OS, CF version, web server) and goals?

In regards to changing MIME types this is usually handled by the web server (IIS or Apache).?However you can change the MIME type on ColdFusion pages (*.cfm) by using the CFCONTENT tag and the type attribute.

CFCONTENT
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_c_11.html #2850760

Well I have a hyperlink in my Cold Fusion application which points to a .sql file. But clicking on the link give 404 error.

My application user ColdFusion MX 7 server. Is there any way I can configure the server to so that the browser is able to

retrieve the .sql file or do I have to make code changes in my application for this?

Files with a .sql extension usually contain database SQL scripts and are not usually served by ColdFusion. What is your web server (IIS, Apache, other)? Have you verified that your web server allows files with a .sql extension to be served?

My application uses Cold Fusion MX7 server for web hosting.

I'm unable to find where to add MIME type for .sql in the application server.

Are you sure that you are not using IIS or Apache, rather than the built in web server??A production install of CF usually uses an external web server.

http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=configuring_06 .html#1190006

Hello swati,

If you can access the server iis then open IIS and choose properties. I have attached the sample image.

If you dont have the access, then tell your hosting company to add this type in IIS.

No comments:

Post a Comment