When i debug in the event reciever(item adding) as soon as it reached the if condition i get the following error
unable to automatically step into the server.The remote procedure could not be debugged. This usually indicates that the debugging has not been enabled on the server.
SPServiceContext serviceContext = SPServiceContext.GetContext(Osite);
UserProfileManager upm = new UserProfileManager(serviceContext);
UserProfile u = upm.GetUserProfile(accNames);
if (u[PropertyConstants.WorkEmail].ToString() != null || u[PropertyConstants.WorkEmail].ToString() != string.Empty)
{
I am working on a remote machine in the dev environment..i also turn the the debug = false to true in webconfig file..but no luck..any suggestions?