|
Pinpoint the exact exception.
Any how try this.
Give rights to the account under which u r accessing the application on the folder in which u uploaded the file.
Regards
S.K.Ali
|
|
|
|
|
Hi all
i need to automatically change the direction and language upon pressing tab between 2 textboxes. I need to change the direction from LTR to TRL and language from English to Arabic without using the keyboard shortcuts. thanks
|
|
|
|
|
Handle the TabIndex changed event and then set the TextBox1.RightToLeft = true, also set the arabic font to the textbox
.....
|
|
|
|
|
I am using password recovery control.
the code for protected void PasswordRecovery1_SendingMail(object sender, MailMessageEventArgs e)
{
MailAddress MaTo=new MailAddress (e.Message .To .ToString ());
MailAddress MaFrom=new MailAddress (e.Message .From .ToString ());
MailMessage mm = new MailMessage(MaFrom, MaTo);
mm.Subject = e.Message.Subject;
mm.Body = e.Message.Body;
SmtpClient smtp = new SmtpClient();
try
{
smtp.EnableSsl = true;
smtp.Send(mm);
}
catch
{
e.Cancel = true;
}
}
my web.config smtp configuration is
<system.net>
<mailSettings>
<smtp deliveryMethod="Network">
<network
host="localhost" />
</smtp>
</mailSettings>
</system.net>
i am getting the message
your password has been send to you
but I am not recieving any mail
Please help?
modified on Tuesday, May 20, 2008 1:38 AM
|
|
|
|
|
what do you want actually??
|
|
|
|
|
anpm wrote: try
{
smtp.EnableSsl = true;
smtp.Send(mm);
}
catch
{
e.Cancel = true;
}
You might be getting some error when sending. You are not catching any of the exception, so it will be silently ignored here. Try removing try/catch or catch specific exceptions and try again.
|
|
|
|
|
when I removed try catch
i am getting exception
failure sending mail
I have changed my code like this
MailAddress MaTo=new MailAddress (e.Message .To .ToString ());
MailAddress MaFrom=new MailAddress (e.Message .From .ToString ());
MailMessage mm = new MailMessage(MaFrom, MaTo);
mm.Subject = e.Message.Subject;
mm.Body = e.Message.Body;
SmtpClient smtp = new SmtpClient("smtp.google.com", 465);
smtp.DeliveryMethod = SmtpDeliveryMethod.Network;
smtp.UseDefaultCredentials = false;
smtp.Credentials = new System.Net.NetworkCredential("daedalus.mail@gmail.com", "Daedalus1");
smtp.EnableSsl = true;
smtp.Send(mm);
|
|
|
|
|
So, your local machine is actually a mail server ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I have changed my code to this
MailAddress MaTo=new MailAddress (e.Message .To .ToString ());
MailAddress MaFrom=new MailAddress (e.Message .From .ToString ());
MailMessage mm = new MailMessage(MaFrom, MaTo);
mm.Subject = e.Message.Subject;
mm.Body = e.Message.Body;
SmtpClient smtp = new SmtpClient("smtp.gmail.com", 465);
smtp.DeliveryMethod = SmtpDeliveryMethod.Network;
smtp.UseDefaultCredentials = false;
smtp.Credentials = new System.Net.NetworkCredential("daedalus.mail@gmail.com", "Daedalus1");
smtp.EnableSsl = true;
smtp.Send(mm);
I am really new to asp..net
|
|
|
|
|
how to get current index of cursor
|
|
|
|
|
|
let me clarify i have used fckeditor n adding some text on clickevent i want to add that text on cursor position
|
|
|
|
|
hello
when i delete folder then session is getting null.
please help
Rajeev Kr. Sharma
VRI Software Pvt.Ltd.
New Delhi India
HumOnline.com
Stay Connected
|
|
|
|
|
When you delete what folder?
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
i think this is mac OS or SYSTEM based reply
but i am using windows .
Rajeev Kr. Sharma
VRI Software Pvt.Ltd.
New Delhi India
HumOnline.com
Stay Connected
|
|
|
|
|
You are confusing the message with the signature. You have a personal presentation as a signature, the person replying to your question has a quote as signature.
Try to read the message again, and concentrate on what's above the line.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
after login i can add folder in my account.
and also i have a option to delete that folder.
but when i delete any folder my session is set as null and redirect to login page.
Rajeev Kr. Sharma
VRI Software Pvt.Ltd.
New Delhi India
HumOnline.com
Stay Connected
|
|
|
|
|
Can you be a bit clearer about what you want, it doesnt make any sense as to what context you are in
|
|
|
|
|
Hello I have a grid view for a shopping cart. I want to validate the quantity box for greater them zero. If a user place the 0 then he should be presented with a message. I do not want to use javaascript.
If I use the control validator next to the control, the layout gets distorted.
Can I put a common row at the top of grid some where to display the error?
Regards,
Pavas
|
|
|
|
|
mpavas wrote: I do not want to use javaascript.
OK, then you don't want to be using control validators, because how do you think they work ?
mpavas wrote: Can I put a common row at the top of grid some where to display the error?
Yes, you can use a validation summary or just put the validators up the top, they can be anywhere on your page.
I'd put the validators in a row at the bottom but not have them show anything, and have a validation summary where you want to see the messages.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Does grid view do not provide the place holder for common messages..
If not how do you suggest to do this..
Regards,
Pavas
|
|
|
|
|
you could always pre-define your column sizes to allow for short error messages.
i believe you can set column width in a properties panel.
-----------------------------------------------------------
Completion Deadline: two days before the day after tomorrow
|
|
|
|
|
Ok got it. Thanks a lot
Regards,
Pavas
|
|
|
|
|
Ok,
So I'm taking an open source ASP.NET application and modifying it (I need it to run in partial trust, plus I want to extend it). I also had to tweak it so that it wasn't using the Subsonic build provider. No big deal, I can make my changes and compile. However, the trust issue is causing problems.
I added the following line to my configuration file under System.Web:
<trust level="Medium">Now the application is going belly up with the following exception (the exception does not occur with the trust level left at default):
Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Configuration.ConfigurationPermission, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' failed.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SecurityException: Request for the permission of type 'System.Configuration.ConfigurationPermission, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' failed.]
System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
System.Security.CodeAccessPermission.Demand() +59
System.Configuration.BaseConfigurationRecord.CheckPermissionAllowed(String configKey, Boolean requirePermission, Boolean isTrustedWithoutAptca) +65
Anyway, I can't figure out how to get a stack trace. Any ideas?
|
|
|
|
|
If someone else runs across this with a web search, the following sheds some light on the problem. I'll post back here if it fixes it.
|
|
|
|