In my localhost it works correctly when I publish it and up to sever this error happens
path = string.Format(@"{0}{1}\{2}", Server.MapPath("~"), @"Files\Images", ShortImage.FileName.ToString());
ShortImage.InputStream.ResizeImage(150, 150, path, Utilty.ImageComperssion.Normal);
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NotSupportedException: The given path's format is not supported.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
pathyou get, also use Path.Combine to combine path, instead of string.Format. - Habib