When I try to call it with different dimensions than those of the original image, it just fails with the error provided below. I have specifically checked that the size is the argument that is causing this. If I change it to the image's native resolution, it is rendered fine. But if I use any other values for width or height, or if I omit any of them, it produces this error:
[BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)]
WebSupergoo.ABCpdf7.Internal.NSettings._get_Version() +0
WebSupergoo.ABCpdf7.Internal.NSettings.get_Version() +38
WebSupergoo.ABCpdf7.XSettings.get_Version() +26
WebSupergoo.ABCpdf7.Internal.ManagedInvoke..ctor() +284
WebSupergoo.ABCpdf7.Internal.ManagedInvoke..cctor() +31
[TypeInitializationException: The type initializer for 'WebSupergoo.ABCpdf7.Internal.ManagedInvoke' threw an exception.]
System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase) +347
System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData) +661
Dynamicweb.Admin.ConvertHandler.EndInvoke(IAsyncResult DelegateAsyncResult) +0
Dynamicweb.Admin.GetImage.EndProcessImage(IAsyncResult ar) +142
System.Web.UI.PageAsyncTask.CompleteTask(Boolean timedOut, Boolean syncTimeoutCaller) +277
[HttpException (0x80004005): Exception of type 'System.Web.HttpException' was thrown.]
System.Web.UI.PageAsyncTaskManager.EndExecuteAsyncTasks(IAsyncResult ar) +2862356
System.Web.UI.PageAsyncInfo.OnAsyncHandlerCompletion(IAsyncResult ar) +110
[HttpException (0x80004005): Exception of type 'System.Web.HttpException' was thrown.]
System.Web.UI.Page.AsyncPageEndProcessRequest(IAsyncResult result) +4084980
ASP.admin_public_getimage_aspx.EndProcessRequest(IAsyncResult ar) +60
System.Web.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult ar) +133
Developer forum
getimage.aspx cannot resize images? (this one seems to work)
Replies
You must be logged in to post in the forum