Hi,
To integrate infragistics fileupload control to the DotnetCore web application
we registered the required middleware in the project statrtup.cs file as below:
app.UseUploadModuleMiddleware();
But when application deployed into the IIS sever, we are getting the below errors when the application is started:
Application startup exception: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Extensions.PlatformAbstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.
File name: 'Microsoft.Extensions.PlatformAbstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 at Infragistics.Web.Mvc.MiddleWare.UploadModuleMiddleware..ctor(RequestDelegate next, IOptions`1 appSettings)
Application server having the dotnet core version 2.1.403.
Please advice how to fix this issue.
Hello adil,
You can check the following help topics about Configuring the igUpload Middleware for file upload handling and Adding Controls to an MVC Project.
It will help if you can provide a small, isolated sample application that demonstrates the behavior you are seeing. Please specify which version of the product you are using as well.
Svetla Boykova
Thank for Response.
Here i am attaching isolated sample.
we are using Infragistics.Web.AspNetCore 6.18.1.59.
We are using VisularStudio Dotnet Core 2.1.201
Please let me know incase of any other information required.
Kindly help regarding this issue. This blocking our application deployment into server.
Since Sample application is exceeding the attachment limit here i am Copying the Application Startup.cs code
Thanks
using Infragistics.Web.Mvc;using Microsoft.AspNetCore.Builder;using Microsoft.AspNetCore.Hosting;using Microsoft.Extensions.DependencyInjection;namespace InfraSample{ public class Startup { // This method gets called by the runtime. Use this method to add services to the container. // For more information on how to configure your application, visit go.microsoft.com/.../ public void ConfigureServices(IServiceCollection services) { services.AddMvc(); }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); }
app.UseUploadModuleMiddleware(); app.UseUploadHandlerMiddleware();
app.UseMvc(routes => { routes.MapRoute( name: "default", template: "{controller=Home}/{action=Index}/{id?}"); });
//app.Run(async (context) => //{ // await context.Response.WriteAsync("Hello World!"); //}); } }}