Last post Dec 17, 2018 08:03 AM by PrashantPk2
Dec 13, 2018 09:40 AM|PrashantPk2|LINK
I am facing the below error in asp.net core . can anybody provide me a solution. Thanks in advance :
Message=Could not load type 'System.Web.UI.WebControls.CompositeControl' from assembly 'System.Web, Version=188.8.131.52, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
at Microsoft.Extensions.Internal.ObjectMethodExecutor.<>c__DisplayClass33_0.<WrapVoidMethod>b__0(Object target, Object parameters)
at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.VoidResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object arguments)
Dec 13, 2018 11:33 AM|Mikesdotnetting|LINK
Are you trying to use a Login Control or some other form of Web Forms server control? They are not compatible with ASP.NET Core.
Dec 13, 2018 11:37 AM|PrashantPk2|LINK
no,this is my download function which is getting into the catch with the above posted error. Pls suggest .
public void DownloadPDF(int EngagementId = 0)
int UserId = HttpContext.Session.GetInt32("USER_ID") == null ? 0 : Convert.ToInt32(HttpContext.Session.GetInt32("USER_ID"));
int ApplicationId = _commonFunction.GetApplicationID(EnumValues.Projects.CE);
GenerateReport("pdf", EngagementId, UserId, ApplicationId);
catch (Exception ex)
Logger.Error("[CD] Error while Download to pdf engagement", ex);
Dec 13, 2018 12:11 PM|yogyogi|LINK
I think you are trying to Generate some Pdf file from an external assembly. But this assembly is incompatible with your current version of ASP.NET Core and so it is giving error.
Which assembly are you using if any?
Dec 13, 2018 12:16 PM|PrashantPk2|LINK
I am using Microsoft.Reporting.WebForms for report download in core . how do i use the same in locally instead externally ?
Dec 14, 2018 02:23 AM|Xing Zou|LINK
"Microsoft.Reporting.WebForm" no longer works in asp.net core. Besiides, AspNetCore.Reporting is not finished yet.
System.Web is for Asp.Net and Microsoft.AspNetCore is for Asp.Net Core. When you use .Net Core MVC against the full framework it's true that the System.Web namespace exists and could technically be called but it won't work like you want. The reason
is that the request pipeline for Asp.Net Core and System.Web are totally different.
As far as I know, asp.net core has not supported SSRS in local, refer to this
github issue to get more details.
To find a workaround, you could refer to 3rd party paid control:
Dec 17, 2018 08:03 AM|PrashantPk2|LINK
Thanks Xing. I have followed up your inputs and references its working now in asp.net core. Great support appreciate it . Thanks