I need some help on figuring out what are the reasons why? or what I've been missing on this because I could hardly figure out why this works in my local machine and is not working on the server. I have a code in C# to print a watermark on the image and it works perfectly on my local machine but when I applied it into my web host server where I'm updating my site. It won't print any markings. Any thoughts about this? Here's my code below to help you more track what might be the reason why it won't work from the server.
string watermarkText = "© mywebsite.com"; //Read the File into a Bitmap. using (Bitmap bmp = new Bitmap(file.InputStream, false)) { using (Graphics grp = Graphics.FromImage(bmp)) { //Set the Color of the Watermark text. Brush brush = new SolidBrush(Color.White); //Set the Font and its size. Font font = new System.Drawing.Font("san-serif", 20, FontStyle.Italic, GraphicsUnit.Pixel); //Determine the size of the Watermark text. SizeF textSize = new SizeF(); textSize = grp.MeasureString(watermarkText, font); //Position the text and draw it on the image. Point position = new Point((bmp.Width - ((int)textSize.Width + 10)), (bmp.Height - ((int)textSize.Height + 10))); grp.DrawString(watermarkText, font, brush, position); firstfname = Path.GetFileName(file.FileName).ToString(); newfname = ProdId + firstfname; bmp.Save(Path.Combine(Server.MapPath("~/ProductImages/"), newfname)); con.Open(); string sqlProductImagesTab = "INSERT INTO [ProdImagesTab]([ProductIdforImages],[ProductImages],[SellerEmail]) Values('" + ProdId + "','" + newfname.Replace("'", "''") + "','" + SellerEmail + "')"; SqlCommand cmd3 = new SqlCommand(sqlProductImagesTab, con); cmd3.CommandType = CommandType.Text; cmd3.ExecuteNonQuery(); cmd3.Dispose(); con.Close(); } }