We are migrating an existing application to run under ASP.NET Core MVC. We want to use the Upload feature, but the assembly we currently use, Infragistics45.Web.jQuery.v16.2, only works when the IIS App Pool using .NET CLR Version v4.0. .NET Core requires that the App Pool be set to "No Managed Code". We've tried using the new Upload Middleware we've found described on various Infragistics websites but can't seem to get any of them to work. We are running the .NET Core with the full 4.6.2 Framework due to functionality we need that is not available in the .NET Core Standard.
Can anyone provide a detailed example of both configuration, server-side and client-side code examples, to help us achieve what we need to do. We want to continue using the client-side igniteUI JQuery to perform the Uploads, but we need the server-side to run under .Net Core using the full 4.6.2 Framework.
Do you have a solution that you can provide where you have it working?
The change did not correct the problem. The same errors continue to occur.
Hello,
Can I get you to exclude the IGUploadStatusHandler from your project and setup your upload like the following:
$("#ATigUpload1").igUpload({ mode: 'multiple', labelUploadButton: "UPLOAD", multipleFiles: true, autostartupload: true, progressUrl: "~/IGUploadStatusHandler.ashx", maxSimultaneousFilesUploads: 2, controlId: "serverID1" });
The igUpload should setup the status handler and other handlers by itself. Do you get the 504 error after that is setup?
My error is not the same as listed in the forum ("can't find the resource"), but the file does appear to be uploaded and placed in the correct folder.
However, I also get the 504 error described in a previous post from the request, so the client never knows that the uploads were successful.
http://localhost:8082/IGUploadStatusHandler.ashx?key=870gKJxB8MGSpV94sIZdFyrVm1uMW2&command=status&_=1497021959851
The content of the IGUploadStatusHandler.ashx is below. The Infragististics.Web.UI.EditorControls is the reference we used to use. I'm tried changing this to several different values, like Infragistics.Web.MVC, but I always gets the error and the client never indicates that the file was successfully uploaded.
<%@ WebHandler Language="C#" class="IGUploadStatusHandler" %>
using System;using System.Collections.Generic;using System.Linq;using System.Web;using Infragistics.Web.UI.EditorControls;
/// <summary>/// Summary description for IGUploadStatusHandler/// </summary>public class IGUploadStatusHandler : UploadStatusHandler{
}
Running your sample the only error I see is: Request URL:http://localhost:52259/ig_fua34sf345sdf13sdf3454erdsf2345asd3425df5235d54df345.aspx?key=wps3nvdUrhTN54pT3uZu5TEccsObIM&cid=serverID1&multiple=true
However as you can see from the following forum thread this is expected:https://ko.infragistics.com/community/forums/p/62025/314488.aspx#314488
When you run your sample and upload a file does it get put in your Uploads folder?
If you need to increase the maxFileSizeLimit you can do so as follows in the ConfigureServcies:services.Configure<UploadAppSettings>(options => { options.maxFileSizeLimit = "220000000"; options.FileUploadPath = "~/Uploads"; });
When you test this open your browser’s dev tool (F12) and switch to the network tab before uploading the file and see what the network logs provide.