I am trying to create a simple new contact in IMIS via IBO
Imis version 15.1.2.5454
I get this error.
It does create the IMIS entry but seem to fail in creating the security. This is a simple signup process test.
Any Help is appreciated.
This the error.
System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at Asi.Web.Services.Membership.MembershipWebService.CreateImisUser(Boolean staffUser, Boolean webUser, String contactID, String username, String password, String email, String passwordQuestion, String passwordAnswer, Boolean isApproved)
at Asi.Web.Services.Membership.MembershipWebService.RegisterWebUser(String contactID, String username, String password, String email, String passwordQuestion, String passwordAnswer, Boolean isApproved)
--- End of inner exception stack trace ---
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.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at Asi.Web.Services.Membership.MembershipWebService.CreateImisUser(Boolean staffUser, Boolean webUser, String contactID, String username, String password, String email, String passwordQuestion, String passwordAnswer, Boolean isApproved)
at Asi.Web.Services.Membership.MembershipWebService.RegisterWebUser(String contactID, String username, String password, String email, String passwordQuestion, String passwordAnswer, Boolean isApproved)
--- End of inner exception stack trace ---
This is the code
CContact contact = new CContact(user);
contact.FirstName = FirstName.Text.Trim();
contact.LastName = LastName.Text.Trim();
contact.EmailAddress = EmailAddress.Text.Trim();
contact.CustomerTypeCode = "NM";
contact.Validate();
contact.Save();
//Works to here
string password = Password.Value.Trim();
if (password.Length > 0 && password == ConfirmPassword.Value.Trim())
{
contact.CreateUserSecurity(WebLogin.Text.Trim(), password);
}
contact.Validate();
contact.Save(); // Fails here
Looks like your App not able
Looks like your App not able to obtain ASI membership web services using IBO.Net DLL.
Please check the following “ImisWebServerUrl” application settings is configured correctly from your web.config / app.config files.
Make sure you can able to browse the following URLS from your computer
iMIS Server URL: http://IMIS_SERVER/imis15
iMIS Webservices URL : http://IMIS_SERVER/imis15/AsiCommon/Services/Membership/MembershipWebSer...
Hope this helps.
Thanks
Balaji