In My WebForm1.aspx.cs page, I had written a 3 parameterized constructor.
But it is not executing. It is asking to have 0 parameterized constructor exception.
But I need parameterized constructor. Please provide me solution. Thank you.
public partial class WebForm1 : System.Web.UI.Page
{
public IAuthenticationService _authenticationService;
private IMembershipService _membershipService;
private IUserService _userService;
private IOrchardServices _orchardServices;
private IUserEventHandler _userEventHandler;
public WebForm1( IAuthenticationService authenticationService, IMembershipService membershipService, IUserService userService, IOrchardServices orchardServices, IUserEventHandler userEventHandler)
{
Logger = NullLogger.Instance;
T = NullLocalizer.Instance; _
authenticationService = authenticationService;
_membershipService = membershipService;
_userService = userService;
_orchardServices = orchardServices;
_userEventHandler = userEventHandler;
}
public ILogger Logger { get; set; } public Localizer T { get; set; }
}

ali tuncerPosted May 4, 2016, 9:17 AM
{
}
Sreekanth ReddyPosted May 4, 2016, 7:01 AM
ali tuncersaid. But its not executing my 3 parameterized one. its executing only zero parameterized one.
ali tuncerPosted May 2, 2016, 9:14 PM
add a constructor with no parameters and try:
public WebForm1()
{
}
Munesh SharmaPosted May 2, 2016, 1:49 PM
Manas MohapatraPosted Apr 30, 2016, 7:36 AM