var user = new ClientUser(); user.CompanyAddress = txtAddress.Text.Trim(); user.CompanyName = txtCompany.Text.Trim(); user.DateCreated = DateTime.Today; user.Email = txtEmail.Text.Trim(); user.Firstname = txtFirstname.Text.Trim(); user.Password = txtPassword.Text.Trim(); user.Phone = txtPhone.Text.Trim(); user.Role = UserRole.Client.ToString(); user.Surname = txtSurname.Text.Trim(); user.Username = txtUsername.Text.Trim(); bool exists = false; if (new UserFactory().RegisterClientUser(user, out exists) != null) { lblMessage.Text = "message"; lblMessage.ForeColor = System.Drawing.Color.Blue; new MailerDaemon().SendEmail_ClientUserRegistration(user); Clear(); } else { if (exists) { lblMessage.Text = "message"; lblMessage.ForeColor = System.Drawing.Color.Red; } else { lblMessage.Text = "message"; lblMessage.ForeColor = System.Drawing.Color.Red; } } } running this locally, it works perfectly. But when uploaded on website, doesn't work. and the database connection is accurate. Need urgent help please.THanks
Do you want this application to store new data to the database or sending you mail notification when a new user subscribe? If the first, look in the store procedure. If the later attach the detail for mail class also (SMTP detail) newMailerDaemon().SendEmail_ClientUserRegistration(us er)
I realised that when i use stored procs, it works, but when i use Nhibernate, it doesnt. is it that Winhost doesnt support apps running with Nhibernate tech?
You should be able to run Nhibernate in our environement. See this related thread http://forum.Winhost.com/showthread.php?t=6200