Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8063359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T11:00:19+00:00 2026-06-05T11:00:19+00:00

I have been working on an asp.net webapp that draws a blue line on

  • 0

I have been working on an asp.net webapp that draws a blue line on an image of a time-schedule depending on what activity you are doing during the day . Everything works fine when I’m debugging the program on my local machine, however when I moved it to the webserver earlier today, and tried it for real, the blue lines do not appear.

For example, you jog from 9 to 10am, then eat from 10 to 11am, the blue line would draw from 9 to 10 horizontally across the jog section, then draw vertically to the eating section and then draw horizontally to 11:00. I do this on an jpg image of a time-schedule grid, then save and load the new drawn-on image to the image-control on the screen.

Any ideas why this doesn’t work on the webserver?

Bitmap image = new Bitmap(Server.MapPath("~") + "/Assets/img/grid.jpg");
Graphics graphics = Graphics.FromImage(image);
Pen p = new Pen(Color.Blue, 5);
//graphics.drawline(pen, X1, Y1, X2, Y2)
image.Save(Server.MapPath("~") + "/Assets/img/grids/" + id + "newgrid.jpg");
imgGrid.ImageUrl = "~/Assets/img/grids/" + id + "newgrid.jpg";
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T11:00:21+00:00Added an answer on June 5, 2026 at 11:00 am

    Drawing API are not supported/guaranteed to work in server environment (this is more theoretical issue, normally work ok) – check out System.Drawing in Windows or ASP.NET services.

    Likely you have issues reading or writing files. Add tracing to your code and see if you have any exceptions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been working on an ASP.NET/C# web app for some time and its
I have been working on a JQuery script that posts JSON to my asp.net
Hi I have been working on asp.net for a while. I am wondering if
For the last 4 years I have been working as an ASP.NET developer in
I'm working on a asp.net mvc2 app. I have been using jquery to do
I am a brand new Java developer (I have been working in asp.net) and
i have been working with devexpress AspxTextbox, in asp.net and c#.net? initially i was
I've been working on a C# ASP.Net application that requires images to be customized
I have been working with ASP.NET for a few years and am now working
I have been working on an ASP.Net web site and have been publishing to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.