{"id":365,"date":"2014-07-08T16:04:27","date_gmt":"2014-07-08T20:04:27","guid":{"rendered":"http:\/\/www.amixa.com\/blog\/?p=365"},"modified":"2014-08-19T15:59:51","modified_gmt":"2014-08-19T19:59:51","slug":"aspmaker-v11-image-resizer-not-working-under-iis","status":"publish","type":"post","link":"https:\/\/www.amixa.com\/blog\/2014\/07\/08\/aspmaker-v11-image-resizer-not-working-under-iis\/","title":{"rendered":"ASPMAKER v11 Image Resizer not working under IIS"},"content":{"rendered":"<p>If you are using ASPMAKER by HKVSTORE to build web admin interfaces, and you&#8217;ve arrived at this page, it&#8217;s likely because the Image Resizer ASP.NET add-on is not working for you.<\/p>\n<p>Does this look familiar to you?<\/p>\n<p><strong>Warning: ASP.NET 2.0 or later is required but ASP.NET script is not executed properly on this server:<\/strong><\/p>\n<p>see this screenshot:<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-366 size-full\" src=\"http:\/\/www.amixa.com\/blog\/wp-content\/uploads\/2014\/07\/2014-07-08_15-47-49.jpg\" alt=\"2014-07-08_15-47-49\" width=\"871\" height=\"214\" srcset=\"https:\/\/www.amixa.com\/blog\/wp-content\/uploads\/2014\/07\/2014-07-08_15-47-49.jpg 871w, https:\/\/www.amixa.com\/blog\/wp-content\/uploads\/2014\/07\/2014-07-08_15-47-49-300x73.jpg 300w\" sizes=\"auto, (max-width: 871px) 100vw, 871px\" \/>Here is the solution to the issue.<\/p>\n<ol>\n<li>You need to have a HOSTS file entry on the server that will allow the server to resolve the domain name for the website you are using ASPMAKER and the Image Resizer on.\u00a0 This is because the ASP.NET resizer uses MSXML2.ServerXMLHTTP\u00a0to locally fetch and resize the image.\u00a0 If there is no HOSTS file entry on the local server, there is no way for the resizer to work.<\/li>\n<li>Open the HOSTS file and add an entry like this<\/li>\n<li>\u00a0X.X.X.X\u00a0\u00a0 your.domain.name<\/li>\n<li>\u00a0Make sure the upload folder\u00a0is set properly\u00a0in ASPMAKER here:<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-367 size-full\" src=\"http:\/\/www.amixa.com\/blog\/wp-content\/uploads\/2014\/07\/file-temp.jpg\" alt=\"file temp\" width=\"537\" height=\"504\" srcset=\"https:\/\/www.amixa.com\/blog\/wp-content\/uploads\/2014\/07\/file-temp.jpg 537w, https:\/\/www.amixa.com\/blog\/wp-content\/uploads\/2014\/07\/file-temp-300x281.jpg 300w\" sizes=\"auto, (max-width: 537px) 100vw, 537px\" \/><\/li>\n<li>\u00a0This path will be relative to the folder you have deployed the ASPMAKER files to on the server.\u00a0 For example, if the ASPMAKER files are in the directory \/123\/ then the upload folder (pictured above) will be \/123\/upload-temp\/<\/li>\n<li>set the permissions properly on the \/upload-temp\/ folder.\u00a0 this means adding machinename\\IUSR and granting full control.<\/li>\n<li>Inside ASPMAKER, make sure the destination folder is correct.\u00a0Note I had to use &#8220;..\/&#8221; to get ASPMAKER to upload to the correct path off the root.\u00a0 <em><strong>It is NOT necessary to grant this folder any special permissions.<\/strong><\/em><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-374\" src=\"http:\/\/www.amixa.com\/blog\/wp-content\/uploads\/2014\/07\/correct-path.jpg\" alt=\"correct-path\" width=\"513\" height=\"373\" srcset=\"https:\/\/www.amixa.com\/blog\/wp-content\/uploads\/2014\/07\/correct-path.jpg 513w, https:\/\/www.amixa.com\/blog\/wp-content\/uploads\/2014\/07\/correct-path-300x218.jpg 300w\" sizes=\"auto, (max-width: 513px) 100vw, 513px\" \/><\/li>\n<li>Make sure the base site itself has a valid application pool assigned.\u00a0 Here&#8217;s what mine looks like (It is not necessary to have an application for the subdirectory where the ASPMAKER app). <img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-368\" src=\"http:\/\/www.amixa.com\/blog\/wp-content\/uploads\/2014\/07\/app.jpg\" alt=\"app\" width=\"315\" height=\"284\" srcset=\"https:\/\/www.amixa.com\/blog\/wp-content\/uploads\/2014\/07\/app.jpg 315w, https:\/\/www.amixa.com\/blog\/wp-content\/uploads\/2014\/07\/app-300x270.jpg 300w\" sizes=\"auto, (max-width: 315px) 100vw, 315px\" \/><\/li>\n<li><em><strong>NOTE: depending on your setup, it may be necessary to set the .NET CLR version to v.2.X above.\u00a0 (I HAD TO USE v.2.X for my setup&#8230;)<\/strong><\/em><\/li>\n<li>Adjust the maximum file upload size in ASP.\u00a0 ASP-&gt;Limits Properties -&gt;Maximum Requesting Entity Body Limit.\u00a0 The default value is 200,000 (200000) which is 200,000 bytes.\u00a0 I upped mine to 20,000,000 (leave out the commas here).<\/li>\n<li>Launch the ASPMAKER web admin and try uploading an image.\u00a0 The above should take care of all the issues.<\/li>\n<\/ol>\n<p>Let me know if this saves you a headache!<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are using ASPMAKER by HKVSTORE to build web admin interfaces, and you&#8217;ve arrived at this page, it&#8217;s likely because the Image Resizer ASP.NET add-on is not working for you. Does this look familiar to you? Warning: ASP.NET 2.0 or later is required but ASP.NET script is not executed properly on this server: see this screenshot:Here is the solution<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33,4],"tags":[98,97,103,5],"class_list":["post-365","post","type-post","status-publish","format-standard","hentry","category-classic-asp","category-iis-tips-n-tricks","tag-asp-net","tag-aspmaker","tag-classic-asp","tag-iis"],"_links":{"self":[{"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/posts\/365","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/comments?post=365"}],"version-history":[{"count":4,"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/posts\/365\/revisions"}],"predecessor-version":[{"id":376,"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/posts\/365\/revisions\/376"}],"wp:attachment":[{"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/media?parent=365"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/categories?post=365"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/tags?post=365"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}