![]() ![]() Note IIS 7.5 Express is not included in SP1, and you must download it separately. Services (IIS) 7.5 Express as the local hosting server for the website Visual Studio 2010 SP1 enables you to use the Internet Information You will need Visual Studio 2010 Service Pack 1 to take full advantage: If you don't have IIS 7.5 Express installed you can get it from here: In Visual Studio check that you're using IIS Express by opening your site's project properties and selecting the "Web" tab from the vertical tab list: This is probably what's causing the browser to prompt to download. svg file as: Content-Type: application/octet-stream Setting MIME types using the ASP.NET Development Server I wrote up an answer to a similar problem on Stack Overflow a while back: The built-in Visual Studio web server only has a limited set of mime-types it can serve and has no knowledge of mime types you set for IIS7. If this was being served by IIS7 then we'd see: Server: Microsoft-IIS/7.5 ***įor the record, here is useful Q&A for Fiddler:įrom your Fiddler trace it appears that you're serving your pages using the built-in Visual Studio web server: Server: ASP.NET Development Server/10.0.0.0 I already defined mime type in IIS (for entire server - 'image/svg. If I type the address of this svg (from localhost, not as a local file) - browser tries to download it instead of displaying. aspx page and launch it dynamically from Visual Studio I get alt text. *** FIDDLER: RawDisplay truncated at 128 characters. If I type the address of this svg - it is displayed. Server: ASP.NET Development Server/10.0.0.0 WireShark won't work (it is in documentation), I tried also RawCap, but it cannot trace my connection (odd), luckily Fiddler worked: I already defined mime type in IIS (for entire server - "image/svg+xml") and restarted IIS. If I type the address of this svg - it is displayed.īut when I make this as. If I make this page as static html page and view it directly svg is displayed. Let's say I have a simple web page with svg image in it: ![]()
0 Comments
Leave a Reply. |