TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Rajendra Meena
NA
10
14.8k
I want to submit enquiry form for save this information for email id, This is work on local host but show the error on line time. ple send me response
Jul 2 2011 4:22 AM
Exception Details:
System.Security.SecurityException: Request for the permission of type 'System.Net.Mail.SmtpPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Source Error:
Line 48: Line 49: System.Net.NetworkCredential mailAuthentication = new System.Net.NetworkCredential(Email, Password);
Line 50: SmtpClient mSmtpClient = new SmtpClient(Host, Port);
Line 51: mSmtpClient.EnableSsl = true; Line 52: mSmtpClient.UseDefaultCredentials = false;
Reply
Answers (
1
)
Getting error like are you missing an assembly reference in my program
Adding header and footer and aslo page number to pdf