Hi expert!
I'm pretty new in Nopcommerce, it look very cool, so exicited, but have some problem with me.
I have tried use the 2.5 framework but unlucky, i couldn't intergrate the login of MVC to webfrom,  can i use the 2.5 framework for webform, Is it possible?

Please help me on this problem, i was stucked here in lastday.
Thanks for any helps.


This is my Login.aspx.cs

private CustomerSettings _customerSettings;
        private ICustomerRegistrationService _customerRegistrationService;
        private ICustomerService _customerService;
        private IWorkContext _workContext;
        private IAuthenticationService _authenticationService;
        public LoginPage() { }
        public LoginPage(CustomerSettings customerSettings, ICustomerRegistrationService customerRegistrationService, ICustomerService customerService,
             IWorkContext workContext, IAuthenticationService authenticationService)
        {
            this._customerSettings = customerSettings;
            this._customerRegistrationService = customerRegistrationService;
            this._customerService = customerService;
            this._workContext = workContext;
            this._authenticationService = authenticationService;
        }

        public void BuildLoginPage(CustomerSettings customerSettings, ICustomerRegistrationService customerRegistrationService, ICustomerService customerService,
             IWorkContext workContext, IAuthenticationService authenticationService)
        {
            this._customerSettings = customerSettings;
            this._customerRegistrationService = customerRegistrationService;
            this._customerService = customerService;
            this._workContext = workContext;
            this._authenticationService = authenticationService;
        }

protected void btnLogin_Click(object sender, EventArgs e)
        {
            //do our own little login to prevent issue with views on failed attempts.
            _customerSettings = new CustomerSettings();
          
            if (_customerSettings.UsernamesEnabled && txtUserName.Text!="")
            {
                
            }
            Customer loginnedCustomer = _customerService.GetCustomerByEmail(txtUserName.Text);
            if (_customerRegistrationService.ValidateCustomer(_customerSettings.UsernamesEnabled ? txtUserName.Text : txtUserName.Text, txtPass.Text))
            {
                var customer = _customerSettings.UsernamesEnabled ? _customerService.GetCustomerByUsername(txtUserName.Text) : _customerService.GetCustomerByEmail(txtUserName.Text);

                //sign in new customer
                _authenticationService.SignIn(customer, true);
                Response.Redirect("/administration/");

            }
        }


An got Error

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


Line 74:                
Line 75:             }
Line 76:             Customer loginnedCustomer = _customerService.GetCustomerByEmail(txtUserName.Text);
Line 77:             if (_customerRegistrationService.ValidateCustomer(_customerSettings.UsernamesEnabled ? txtUserName.Text : txtUserName.Text, txtPass.Text))
Line 78:             {

Source File: D:\Projects\Foody\Sources\Foody.Admin\Login.aspx.cs    Line: 76