user1260827
user1260827

Reputation: 1520

file not found (ajax)

I have the following code:

svg = $("#rsr").svg({ loadURL: '@Url.Content("~/Content/images/svg_curv.svg")', onLoad: svgLoaded });

This code load svg file (Jquery SVG plugin). On local web server all works fine. But in production web server I get the following error: 404 Not Found. The file is exist on server: enter image description here

Also, it's not found if I open the file via browser (mysite.com/content/images/svg_curv.svg), but other files in the images folder is found.

Where is a problem?
Thanks and sorry for my English.

Upvotes: 1

Views: 312

Answers (1)

Rab
Rab

Reputation: 35572

I dont know much about your enviroment. but you need to add/allow svg MIME Type on your webserver

Allow MIME TYPE in IIS

Add New MIME Type

Upvotes: 2

Related Questions