|
frack off icehole... are you like 10?
|
|
|
|
|
Richard Leighton wrote: are you like 10?
"like 10"? What are you a valley girl? In case you didn't know, I really mean it, f*** off a**hole
|
|
|
|
|
Hi Friends,
I am using IIS Server with ASP, my mail code doesn't work whenever i send a mail it will go only Queue's folder it will not deliver.., but this code work well in my friend PC.
my OS Windows XP
Here My code
<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="dmanivelan@siminfosystems.com"
myMail.To="dmanivelan@siminfosystems.com"
myMail.Bcc="dmanivelan@siminfosystems.com"
myMail.Cc="dmanivelan@siminfosystems.com"
myMail.TextBody="Testing." & Time
myMail.Send
set myMail=nothing
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
</body>
</html>
Please Reply immediately...
|
|
|
|
|
Member 4482742 wrote: Please Reply immediately
was that immediate enough for you?
|
|
|
|
|
led mike wrote: Member 4482742 wrote:
Please Reply immediately
was that immediate enough for you?
he meant "send message immediately". he was talking to his smtp server
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
I am developing an application , it has to send an email to a admin notifying the new user registration, so that admin can approve it. The email is sent when ever a new user registers into the system.
Everything is running fine , in my computer. It is sending an email , everything works fine.
but when I move the code to the testing server, its give the following error .
Server Error in '/' Application.
--------------------------------------------------------------------------------
No connection could be made because the target machine actively refused it
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it
Source Error:
Line 222: }
Line 223: catch (Exception ex)
Line 224: { throw ex; }
Line 225:
Line 226:
Source File: c:\Inetpub\wwwroot\CIVARS\CIVAR\NewUserRegistration.aspx.cs Line: 224
Stack Trace:
[SocketException (0x274d): No connection could be made because the target machine actively refused it]
System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) +1002146
System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) +33
System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) +431
[WebException: Unable to connect to the remote server]
System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6, Int32 timeout) +1447736
System.Net.PooledStream.Activate(Object owningObject, Boolean async, Int32 timeout, GeneralAsyncDelegate asyncCallback) +190
System.Net.PooledStream.Activate(Object owningObject, GeneralAsyncDelegate asyncCallback) +21
System.Net.ConnectionPool.GetConnection(Object owningObject, GeneralAsyncDelegate asyncCallback, Int32 creationTimeout) +318
System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port) +227
System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port) +316
System.Net.Mail.SmtpClient.GetConnection() +42
System.Net.Mail.SmtpClient.Send(MailMessage message) +1485
[SmtpException: Failure sending mail.]
NewUserRegistration.btnSubmit_Click(Object sender, EventArgs e) in c:\Inetpub\wwwroot\CIVARS\CIVAR\NewUserRegistration.aspx.cs:224
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
Please help me out...
Thanks
|
|
|
|
|
check your setting? How are you sending the email? Does the test machine has permission to connect to your smtp server? or does it have smtp configured locally?
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Hi,
I have a Fileupload control, from where i am uploading CSV file and reading data from it and displaying in a gridview. If data is incorrect i am editting in GrdiView and click on Finish button. On click of finish button i am writing updated value back to CSV file from Gridview. This functionality i have implemented, but after hosting this application in IIS, when i access it in same system its rewriting to CSV file and renaming the file also. But if i browse hosted application in some other system and if i upload a file which is on browser system, its not renaming a file and not updating it.
So please can any one help me what are the permissions i need to set in IIS or to file i am access, so that i can rename and update that file.
I have checked following possiblities already
1. create ASPNET account and grant full permission for read, write....
2. In IIS gave Anonymous access to user.
3. Checked with Impersonate option in web.config file.
4. Gave permissions to CSV file like read, write ....
Code
-----
writing to CSV File
-------------------
StreamWriter sw = new StreamWriter(localsavedFilePath)
foreach (DataRow row in dtCSV.Rows)
{
sw.Write("\"" + row[0].ToString() + "\"");
sw.Write(sw.NewLine);
}sw.Close();
File.Copy(localsavedFilePath, OriginalFileUploadedPath, true);
Renaming File
--------------
File.Move(OriginalFileUploadedPath, OriginalFileRenamedPath);
Rashmi.M.K
|
|
|
|
|
Check the identity that runs the application pool process. Give that account full control to the directory where you are writing the file.
Also, here is a tip.
Instead of using a StreamWriter, use a StringBuilder to build your .csv then use System.IO.File.WriteAllText.
I didn't get any requirements for the signature
|
|
|
|
|
Hi,
Thanks for the reply...
I tried what ever you have suggested, still renaming issue exist. i used string builder to build CSV file and used File.WriteAllText. It works fine only when i run application using Visual Studio and on which ever system i host the application. Except these two systems on all other system its not working.
Please help me.... We need to deliver the project but due to renaming issue stuck up...
Rashmi.M.K
|
|
|
|
|
What exception are you getting?
I didn't get any requirements for the signature
|
|
|
|
|
I wont get any exception. When i click on Finish button in my screen, i am interacting with DataBase and at last saving the CSV file and changing the name of the file. It wont throw any exception as its working fine in local system using VS2008 application and also when i host the application in my system itself. But if any one browse same application on different system, all Database activities are working fine and even all the code written for renaming CSV file will get executed but it wont rename the file.
Rashmi.M.K
|
|
|
|
|
I want to secure my web services using Soap extn. but i am unable to do that
|
|
|
|
|
Well, and what exactly is it you are unable to do? Did you followed a tutorial or sth. similar?
|
|
|
|
|
I am unable to use soap header encryption and decryption.....
The problem is to secure a web service we need authontication and we send username and password to webmethod using soap header which is passsed to the network in a plain text and any hacker who cares the network can see the user id and password and easily use the web service so we need to encrypt the username and password before sending to network and later before calling the method we decrypt it by using appropriate method...........
if you have code to do that pls help me
Thanks in advance
|
|
|
|
|
|
In may asp.net application I present a pdf file to the user who enters some data into it and on pressing an HTMLSubmit button on the pdf document posts the data back to an asp.net page where I am able to capture it as formdata using
Request.Form.Item(n) ...
However I have the follwing queries :
1. Can I capture the postback data through the names of the text fields that I have given on my pdf document.
2. Can I capture the post back data in XML format by putting a normal button whose setting are (Control Type:Submit, Submit Format:XML & Submit to URL: the name of the aspx page)?
Kindly help how this can be achieved.
Thanking you in advance
|
|
|
|
|
My asp.net application is ajax enabled. After the page is loaded completely, if there is no user activity for sometime, the screen stops responding until i close the browser and open it again.
In some of the screens, on Session timeout (i have tested it by keeping the screens idle for 20 minutes), the user is redirected to the login page.
But on few screens, the redirect does not happen. The screen stands still and no buttons links on the page respond to any mouse or keyboard event.
At this point, if i press the "Refresh" button on the browser address bar, then i get logged out of the application and redirected to the login page.
On the browser Status bar (bottom left hand corner of the browser window) a javascript error message displayed as "Error on Page" instead of "Done".
On click of it, following error messages can be seen in the javascript error message pop-up.
Unexpected ajax response was received from the Server
This may be caused by one of the following reasons:
Server.Transfer
Custom Http handler
Incorrect loading of an "Ajaxified" user control
Verify that you don't get a server side exception or any other undesired behavior, by setting the EnableAJAX property to false.
not possible to add the screen shots, else wd have done.
All the pages and user controls in my application follow the same ajax panel structure and loading.
|
|
|
|
|
Member 565451 wrote: My asp.net application is ajax enabled.
Sorry to hear that, also your message is cross posted into another forum. That is discouraged here at Code Project.
|
|
|
|
|
Hi Mike, well i was not aware of this. i am trying to find out the solution for a long time now, so posted it in Web development forum as well to get some help.
|
|
|
|
|
What is Web service? What is the use of it?
|
|
|
|
|
Try to search on google[^] like first.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
Please be so kind to use Google first.
|
|
|
|
|
Karthick_gc wrote: What is Web service? What is the use of it?
Here[^]it is
And
What is Web Service ?[^]
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
hi all,
I am using asp.net 2.0,ajax updatepannel where i place the gridview.I have a buton in parent when I click on it it opens a new modal window and there is another button in chield and on clicking this the chield window wil closed and the grid in parent page should rebind so that it will display the changes made from chield.
thanks and regards
bikash
|
|
|
|