|
KIDYA wrote: .but for localhost it gives error!!!
You mean you are using localhost as SMTP Server ? Did you read CG's Last Answer ? Does you SMTP Configured Properly ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
KIDYA wrote: Now my mail is successfully send but it not recieved at to address.
1. Make Sure SMTP Configured Properly
2. Make Sure SMTP Port is not blocked by Network FireWall
3. Check SMTP Queue is Empty or Mails are staying over there.
Thanks !
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Sir can u please tell me how to check smtp queue?
i almost done all smtp settings that i googled.
|
|
|
|
|
Don't ask a new question when you're just asking the same thing. localhost is NOT automatically set up as a mail server, nor is that even possible.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hello Experts,
I sending mail using smtp server...I am using smtpclient.Host="localhost" and smtpclient.port=25 , But gives authentication error ....Tel me how will i know my smtp server name or any common host and port also...
and also give error -"Property 'To' is ReadOnly." for this line
msg.to = txtTo.Text
Help me!!
|
|
|
|
|
Have you worked through some of the many mail samples on the web ? Do you not have an email account ? Do you have an ISP ? Your SMTP details are the same as the details you put into outlook.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi,
We have developed a web application in ASP.NET C#/ MYSQL(5). Everything is working fine but when i browse the certain web page in the two browsers at the same time i get the following type of exceptions:
ObjectDisposedException, cannot open the closed stream, connection closed unexpectedly or some sort of socket exceptions.
Thanks
Sonia Shahid
|
|
|
|
|
sounds like your database connectivity is not handled properly. did you try debugging it?
|
|
|
|
|
If I test it in one browser at a time then I didn't get this problem. If there is database connectivity problem it should also occur when i test it in one browser.
Our project is running smoothly we face this problem only when we browse the same link, at the same time, in two browsers on one computer.
Thanks
Sonia Shahid
|
|
|
|
|
Sonia Shahid wrote: . If there is database connectivity problem it should also occur when i test it in one browser.
No, your problem is that your database code is crap, and therefore when you have two connections at once, it blows up.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
there must be some code that tries to open a stream or file, you can debug even with two different browsers. Try hitting the same link with two different browsers(Mozilla and IE would work greatly) and then try to figure out whats wrong.
Happy debugging!
|
|
|
|
|
Hard to say why your code is broken without seeing it, but it's obviously poorly written.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
if it is poorly written then why it works fine in one browser
|
|
|
|
|
you've your answer in your question
|
|
|
|
|
I'm sorry, but we're trying to help you and you're just showing signs of being dense. It's called a race condition, only in this case, your multiple threads are actually different users. For objects to exist and be the same for many users, I assume they are declared as static. Hard to say anything else, you asked us to fix your broken project, but didn't post any code ( showing us the block that blew up would stop us from having to guess what is going on ). Now you're all defensive because we tried to help you. The person who wrote this code plainly did not understand ASP.NET because your multiple users are sharing an object which gets disposed of in your code.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Below is my code which is throwing Exception:
Public Function populateDataset(ByVal strQuery As String, ByRef ds As DataSet, Optional ByVal strTableName As String = "") As Int16
Try
If Not IsNothing(ds.Tables(strTableName)) Then
ds.Tables(strTableName).Clear()
End If
Catch ex As Exception
End Try
populateDataset = -1
checkConnection()
Try
oledbDA = New MySqlDataAdapter(strQuery, cnDB)
If strTableName = "" Then
oledbDA.Fill(dataSet:=ds)
Else
oledbDA.Fill(dataSet:=ds, srcTable:=strTableName)
End If
populateDataset = 0
oledbDA.Dispose()
Catch ex As MySqlException
Throw ex
Return -1
Catch ex As Exception
populateDataset = -1
Throw ex
End Try
End Function
Here i am calling it:
public void getItemCategory(ref DataSet ds,string qry,string tableName)
{
dlib.CloseConnection();
dlib.populateDataset(qry, ref ds, tableName);
}
|
|
|
|
|
hi all
i need a code this software :(viual studaio,web asp .net ,languae c#)
i have desing a web page , containing a file uploade component,image component, and a button component.
now i want, when select a image wihte file uploade component and press button component ,the image load in the image component.
plaes help me.
modified on Saturday, November 7, 2009 5:28 AM
|
|
|
|
|
Wow! great job sounds really cool stuff you did today anyway just kidding, guess 2008 got some new cool stuff 
|
|
|
|
|
You've asked this several times now, and I see you've deleted all the other times you asked it. what have you done in the time you've been asking this ? How did you benefit from the answers you got before ? What have you tried ? Please tell me you don't have a client who is deluded into thinking that you have the remotest idea about programming, waiting for delivery while you post this absolutely trivial question over and over, and just ignore the answers. If you're not smart enough to understand our answers, asking again won't change the fact that you're plainly not capable of doing this task. If you're trying to learn, then buy a damn book and work through it, until you can ask real questions here ( which typically include phrases like 'here is my code' and 'this is the line that doesn't work as I expected' ).
I've reproduced your question so when you deleted it again, people can see what I was talking about, and why I was frustrated with how utterly clueless you are.
bahar.ghara wrote: hi all
i need a code this software :(viual studaio 2008,web asp .net ,languae c#)
i have desing a web page , containing a file uploade component,image component, and a button component.
now i want, when select a image wihte file uploade component and press button component ,the image load in the image component.
plaes help me.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
You may be interested in this[^], but then again ...
|
|
|
|
|
bahar.ghara wrote: i need a code this software :(viual studaio,web asp .net ,languae c#)
See here[^] for many articles and samples.
|
|
|
|
|
hi. all
I m working on a project in which i want to extract the information of the SMS send by someone. My first question is How i'll save that SMS in my database. And second is i want to extract the information from that . For example someone send me a SMS writing his name,address,Zip code. Now i want to store this information in the database in different fields.
Can anyone please help me in this.
Thanks
|
|
|
|
|
An SMS is just text, your only real issue is how to get an SMS into a computer.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Thanks a lot for the reply.
Actually i have two problem first how to save SMS in the database and solution of second i got. that how i'll extract the information from the database.
Can you tell me some solution. i found a SMS gateway Ozeki NG SMS Gateway . But can we use this in my application .
Thanks
|
|
|
|
|
Hi,
how to Get Database Schema/Structure in DataSet with complete Constrain,
and Relationship.
I have parent,Child table in Database.These table have relationship
how to get these tables schema with relationship ?
ali
|
|
|
|