Svg images are not working when they are in project resources

0
0

Hi,

When using SVG images that are stored inside the project’s resource file they are not working after publishing/debugging. They only show in the designer. Weird thing is that they do show up in the WiseJ image selector form under project resource files.

 

Thanks for looking in to this 🙂

  • You must to post comments
0
0

I’ve fixed the issue. For some reason my server blocked acces to the resources folder. The suggestion of using the dev tools helped me figure it out.

Thanks for helping!

 

  • You must to post comments
0
0

Im using 10. something.

 

I will have a look on how to register svg files. The server is newly setup for testing WiseJ and I do not really have much knowledge of IIS. For example, your documentation stated I should have a net 4.6 application pool but I cannot choose that version (only version 2/4). ofcourse I’ve installed .net framework 6.4.2 and everything else works just fine.

Attachment
  • Luca (ITG)
    What do you get if you type the url of the svg file in the browser? If the file is not returned then it’s just not deployed. If the file is returned then check the network tab in chrome dev tools and look at the content-type header. If it’s not svg then there is a mistake in the iis installation since it should be preregistered. In my experience it works without issues always with IIS 10. The app pool has to be 4. The NET version is separate frok the app pool.
  • You must to post comments
0
0

What version of IIS?
You may need to register the SVG mimetype.

Best regards
Frank

  • You must to post comments
0
0

Using VB.NET and changed the build action / copy to output directory to match the png files. But its not working.

 

Attachment
  • You must to post comments
0
0

Did you try changing the Build Action / Copy to Output Directory of your resource?

Best regards
Frank

  • You must to post comments
0
0

When running in local debug it works fine. When publishing (release) to a folder and then manually copying it to a remote iis server it doesn’t work.

 

  • You must to post comments
0
0

Hi Vincent,

are you using VB.NET or C#?
“Publishing/Debugging” means running on localhost from Visual Studio or deploying to an IIS?
Can you please wrap up a small test case for us?

Best regards
Frank

  • You must to post comments
Showing 7 results
Your Answer

Please first to submit.