Click here to Skip to main content
15,891,529 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow to access cookies in a domain Pin
Reena.E27-Dec-07 17:32
Reena.E27-Dec-07 17:32 
AnswerRe: How to access cookies in a domain Pin
Michael Sync27-Dec-07 18:43
Michael Sync27-Dec-07 18:43 
General<b>encrypt webconfig value of appsetting in asp.net and Administrator also change the value Manualy</b> Pin
Piyush Vardhan Singh27-Dec-07 17:29
Piyush Vardhan Singh27-Dec-07 17:29 
QuestionDataGrid Pin
senthilsstil27-Dec-07 17:23
senthilsstil27-Dec-07 17:23 
GeneralRe: DataGrid Pin
Sun Rays27-Dec-07 19:41
Sun Rays27-Dec-07 19:41 
QuestionSending Email exception Pin
hurrem27-Dec-07 10:56
hurrem27-Dec-07 10:56 
GeneralRe: Sending Email exception Pin
Paul Conrad27-Dec-07 15:03
professionalPaul Conrad27-Dec-07 15:03 
GeneralRe: Sending Email exception Pin
hurrem27-Dec-07 15:07
hurrem27-Dec-07 15:07 
here is the exception:

Send failure: System.Web.HttpException: The "SendUsing" configuration value is invalid. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException (0x80040220): The "SendUsing" configuration value is invalid. --- End of inner exception stack trace --- at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters) at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams) at System.Web.Mail.SmtpMail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args) --- End of inner exception stack trace --- at System.Web.Mail.SmtpMail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args) at System.Web.Mail.SmtpMail.CdoSysHelper.Send(MailMessage message) at System.Web.Mail.SmtpMail.Send(MailMessage message) at Register1.CreateUserWizard1_SendingMail(Object sender, MailMessageEventArgs e) in e:\web\myeconpaper\htdocs\Register.aspx.cs:line 64


and here is my code:
protected void CreateUserWizard1_SendingMail(object sender, MailMessageEventArgs e)<br />
    {<br />
               <br />
        CreateUserWizard wizard = (CreateUserWizard)sender;<br />
        MembershipUser user = Membership.GetUser(wizard.UserName);<br />
       <br />
        e.Message.Body = e.Message.Body.Replace("<%PasswordQuestion%>", CreateUserWizard1.Question);<br />
        e.Message.Body = e.Message.Body.Replace("<%PasswordAnswer%>", CreateUserWizard1.Answer);<br />
        e.Message.Body = e.Message.Body.Replace("<%DomainName%>", Request.ServerVariables["SERVER_NAME"]);<br />
        e.Message.Body = e.Message.Body.Replace("<%VirtualDirectory%>", Request.ApplicationPath);<br />
        e.Message.Body = e.Message.Body.Replace("<%UserLogsOnAs%>", user.ProviderUserKey.ToString());<br />
<br />
        string mail = e.Message.Body.ToString();<br />
        System.Web.Mail.MailMessage objEmail=new System.Web.Mail.MailMessage();<br />
            objEmail.Body=mail;<br />
            objEmail.To = CreateUserWizard1.Email;<br />
          <br />
        <br />
<br />
        try<br />
            {<br />
            SmtpMail.Send(objEmail); //line 64<br />
            ResultLabel.Text="Your Email has been sent sucessfully! Thank You!";<br />
            }<br />
        catch (Exception exc)<br />
        {<br />
        ResultLabel.Text="Send failure: " + exc.ToString();<br />
         }

GeneralRe: Sending Email exception Pin
Paul Conrad27-Dec-07 18:04
professionalPaul Conrad27-Dec-07 18:04 
GeneralRe: Sending Email exception Pin
hurrem27-Dec-07 18:06
hurrem27-Dec-07 18:06 
QuestionReporting Services Multi-Valued Report Parameters Pin
gates0927-Dec-07 4:28
gates0927-Dec-07 4:28 
QuestionCan I use VB Methods I created in Reporting Services? Pin
gates0927-Dec-07 4:27
gates0927-Dec-07 4:27 
GeneralRe: Can I use VB Methods I created in Reporting Services? Pin
Michael Sync27-Dec-07 18:46
Michael Sync27-Dec-07 18:46 
GeneralRe: Can I use VB Methods I created in Reporting Services? Pin
gates0928-Dec-07 1:44
gates0928-Dec-07 1:44 
GeneralHttp Handler Pin
ss.mmm27-Dec-07 4:01
ss.mmm27-Dec-07 4:01 
GeneralRe: Http Handler Pin
Not Active27-Dec-07 4:42
mentorNot Active27-Dec-07 4:42 
GeneralRe: Http Handler Pin
ss.mmm27-Dec-07 6:28
ss.mmm27-Dec-07 6:28 
GeneralRe: Http Handler Pin
ss.mmm27-Dec-07 6:30
ss.mmm27-Dec-07 6:30 
GeneralRe: Http Handler Pin
Venkatesh Mookkan27-Dec-07 15:15
Venkatesh Mookkan27-Dec-07 15:15 
Generalindent for line Pin
niki_nilu27-Dec-07 2:37
niki_nilu27-Dec-07 2:37 
GeneralRe: indent for line Pin
Paul Conrad27-Dec-07 15:04
professionalPaul Conrad27-Dec-07 15:04 
GeneralRe: indent for line Pin
niki_nilu27-Dec-07 17:46
niki_nilu27-Dec-07 17:46 
GeneralRe: indent for line Pin
Paul Conrad27-Dec-07 17:50
professionalPaul Conrad27-Dec-07 17:50 
GeneralRe: indent for line Pin
niki_nilu27-Dec-07 17:57
niki_nilu27-Dec-07 17:57 
GeneralRe: indent for line Pin
Paul Conrad27-Dec-07 18:01
professionalPaul Conrad27-Dec-07 18:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.