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; }
}