Dear Friend,
Please ensure that the .svg extension MIME type is enabled. By default IIS 6.0 only allows certain file extensions such as .html, .txt to increase security. The request for .svg extension fails because is not registered in IIS. Hence, please refer the following steps to add it.
1. Open IIS manager.
2. Right click the website which you want to allow .svg file, and then select “Properties”.
3. Click the “Http Headers” tab.
4. Cllick the “MIME types” button which on the botton of the property dialog.
5. Add .svg extension and its type in the “Registered file types” list.
For more informaiton about HTTP 404 error scenarios, please rerfer to the following link:
Common reasons IIS Server returns "HTTP 404 - File not found" error
http://support.microsoft.com/kb/248033[
^]
In addtion, since you want to let ASP.NET to handle the .svg file, you should also register IIS mapping for the .svg file, Then IIS will route the request for .svg file to ASP.NET ISAPI.
1. Open IIS manager.
2. Right click the website you want to route request for .svg file to ASP.NET ISAPI, and then select “Properties”.
3. Click the “Home Directory” (for website) or “Virtual Directory” (for web application) tab.
4. Click the “Configuration…” button.
5. Add the mapping for .svg file.
For more information about this scenario, please refer to the following link:
IIS 6.0 F1: Add/Edit Application Extension Mapping (for Application Extensions)
http://technet2.microsoft.com/windowsserver2008/en/library/4f289818-a796-4329-af3c-5d7b594f25ec1033.mspx?mfr=true[
^]
I hope this solution will work for you.
Thanks