Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Caution against using System.Drawing namespace in ASP.NET

Caution against using System.Drawing namespace in ASP.NET

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netgraphicssysadminjson
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    The Nightcoder
    wrote on last edited by
    #1

    Hi all, I've noticed that almost all of you who do some kind of dynamic imaging in web applications use the System.Drawing namespace and it's descendants. Is it only me, or are the rest of you also closing your eyes real hard (while remembering to be extra careful about when and what to Dispise()... um... Dispose() in your app) when you come across the following text in the reference? Caution: Classes within the System.Drawing namespace are not supported for use within a Windows or ASP.NET service. Attempting to use these classes from within one of these application types may produce unexpected problems, such as diminished service performance and run-time exceptions. Are they serious, or is this just to avoid having to support people who don't realize that they run in a server environment and don't program defensively enough? Does anyone have any real world experience of high-volume sites getting away with using System.Drawing? I have a couple of low-volume sites going, and as I normally only invoke System.Drawing each time I need a size or format I've never seen before (all old renderings from original images are cached to disk), it really never gets stressed, so it sort of doesn't count... Peter, after midnight

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups