|
-
February 16th, 2010, 04:54 PM
#1
Security.dll
Hello everyone,
I am having an issue with Windows/System32/Security.dll
I have a PC in which this dll was removed by a virus / spyware removal tool. I am very currious to kno why my cSharp app is trying to use this. The only Security call I am making is using System.Security.dll (System.Security.Cryptography) and this doesn't even seem to be where my unhandled exception is coming from. It appears the Windows.Security is being called for during an email attempt:
------------------------------------------------------------------------------------------------------------
MailMessage UploadEmailMessage = new MailMessage();
MailAddress SupportEmailAddr = new MailAddress(AppSetting.SupportEmail);
MailAddress toEmailAddress;
char[] EmailDelims = { ';', ',' };
string[] toAddressesArray =
AppSetting.UserEmail.Replace(Environment.NewLine, "").Split(EmailDelims);
foreach (string toAddr in toAddressesArray)
{
if (toAddr != "")
{
toEmailAddress = new MailAddress(toAddr.Trim());
UploadEmailMessage.To.Add(toEmailAddress);
}
}
toEmailAddress = null;
UploadEmailMessage.From = SupportEmailAddr;
UploadEmailMessage.CC.Add(SupportEmailAddr);
UploadEmailMessage.IsBodyHtml = true;
UploadEmailMessage.Body = "Test Message.";
SmtpClient IronkeepSMTP = new SmtpClient("iron.keep.net");
NetworkCredential IronkeepSMTPLogin = new NetworkCredential("[email protected]", "pass");
IronkeepSMTP.Credentials = IronkeepSMTPLogin;
IronkeepSMTP.Port = 587;
IronkeepSMTP.EnableSsl = true;
IronkeepSMTP.Send(UploadEmailMessage);
------------------------------------------------------------------------------------------------------------
Since the Security.dll can obviously be accidentily removed and not noticed by end-users, I would like to find another method using only the dll's installed with .net . Any ideas?
Why would any .net app try to use this Security.dll? Ever?
Should I add the Security.dll to Windows/System32 if it doesn't exist? Am I even allowed to by Microsoft?
If I do add it, can I just use my WinXP version for all Windows versions since the file size doesn't change from xp to vista.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|