Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Beginning ASP.NET 4 : in C# and VB
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #11 (permalink)  
Old September 21st, 2011, 02:57 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
do you know why my profile indicator has not activity and level bar?
Maybe this is because of the "profile infraction" you received some time ago for your "spammy posts"? You could try asking in the P2P feedback forum.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
  #12 (permalink)  
Old September 21st, 2011, 03:12 PM
Authorized User
Points: 144, Level: 2
Points: 144, Level: 2 Points: 144, Level: 2 Points: 144, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2011
Location: Meridian, Idaho
Posts: 37
Thanks: 13
Thanked 0 Times in 0 Posts
Send a message via MSN to SamuelMSr
Default

Quote:
Originally Posted by Imar View Post
I really don't understand why this doesn't work. Your code and configuration looks fine. To be absolutely sure I just copied and pasted in a new web site, ran it, and it sent the e-mail just fine. Are you really sure the correct web.config (the one in the root, not another one) contains the correct config info?

So, checking this in a mail client such as Outlook may help figuring out what's going on. Additionally, you may want to try to use Telnet and see if you can open a connection to the Gmail server: http://support.microsoft.com/kb/323350 This may work differently on your version of Windows so you may need to Google a bit to find out what to do and how.

When you say "sent to friend", what do you mean? Did you send them the code to test or a link to the site? In the latter case, it won't work for them either as this is a server side issue.

Cheers,

Imar
Hi Imar,

When I say "sent" to friends, I zipped the entire project (c:\BegASPNET\Site) and sent it to them, they opened it and tried it on their machines.

I only have one web.comfig file and it is in my root folder of my site.

I am trying to work with this telnet thing, I have never used it before and have Win7 Ultimate and I have not done anything from a command prompt in so long I almost forgot what they looked like :P
Reply With Quote
  #13 (permalink)  
Old September 21st, 2011, 03:36 PM
Authorized User
Points: 144, Level: 2
Points: 144, Level: 2 Points: 144, Level: 2 Points: 144, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2011
Location: Meridian, Idaho
Posts: 37
Thanks: 13
Thanked 0 Times in 0 Posts
Send a message via MSN to SamuelMSr
Default

No matter what I do it is telling me my problem is with line 48:

Line 48: mySmtpClient.Send(myMessage);
Reply With Quote
  #14 (permalink)  
Old September 21st, 2011, 03:38 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Yes, that makes sense, as that line sets things in motion. This is where the connection with the SMTP server is set up which apparently fails.

Can you debug and look at mySmtpClient? Does it has the values you set in web.config?

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
The Following User Says Thank You to Imar For This Useful Post:
SamuelMSr (September 21st, 2011)
  #15 (permalink)  
Old September 21st, 2011, 03:46 PM
Authorized User
Points: 144, Level: 2
Points: 144, Level: 2 Points: 144, Level: 2 Points: 144, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2011
Location: Meridian, Idaho
Posts: 37
Thanks: 13
Thanked 0 Times in 0 Posts
Send a message via MSN to SamuelMSr
Default

I am still new to the VWD and the debugging feature but I will try and do that for you.

Do you possibly have MSN Messenger, you can always contact me smlmrnsr@cableone.net or on facebook /samuelmsr
Reply With Quote
  #16 (permalink)  
Old September 21st, 2011, 04:10 PM
Authorized User
Points: 144, Level: 2
Points: 144, Level: 2 Points: 144, Level: 2 Points: 144, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2011
Location: Meridian, Idaho
Posts: 37
Thanks: 13
Thanked 0 Times in 0 Posts
Send a message via MSN to SamuelMSr
Default

Ok I am not sure what I am looking for when I run the debugger. I already posted a picture on one of my last posts of the only exception it shows me.

Other then that what am I looking for?

Thanks for your time, Imar!
__________________
Noob, whole noob, nothing but a noob, so help me God. I will learn if it kills me.....
Reply With Quote
  #17 (permalink)  
Old September 21st, 2011, 04:24 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
Ok I am not sure what I am looking for when I run the debugger.
Put a Watch on the mySmtpClient and see what values are set on its properties.

Quote:
Do you possibly have MSN Messenger
Yes, but I prefer a forum so I can choose when I answer.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
The Following User Says Thank You to Imar For This Useful Post:
SamuelMSr (September 21st, 2011)
  #18 (permalink)  
Old September 21st, 2011, 04:34 PM
Authorized User
Points: 144, Level: 2
Points: 144, Level: 2 Points: 144, Level: 2 Points: 144, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2011
Location: Meridian, Idaho
Posts: 37
Thanks: 13
Thanked 0 Times in 0 Posts
Send a message via MSN to SamuelMSr
Default

Ok I have the "Watch" information. How would you like me to post it so you can see it?
__________________
Noob, whole noob, nothing but a noob, so help me God. I will learn if it kills me.....
Reply With Quote
  #19 (permalink)  
Old September 21st, 2011, 04:38 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

I don't have to see it. You can check for yourself to see if the settings you set in web.config show up here (such as host, port, and credentials).

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
  #20 (permalink)  
Old September 21st, 2011, 04:40 PM
Authorized User
Points: 144, Level: 2
Points: 144, Level: 2 Points: 144, Level: 2 Points: 144, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2011
Location: Meridian, Idaho
Posts: 37
Thanks: 13
Thanked 0 Times in 0 Posts
Send a message via MSN to SamuelMSr
Default

This is what it is showing me if I am reading it right (big time noob here):

Code:
DeliveryMethod: Network
EnableSsl: true
Host: "smtp.gmail.com"
PickupDeliveryLocation: Null
Port: 587
ServicePoint: {Service.Net.ServicePoint}
TargetName: "SMTPSVC/smtp.gmail.com"
Timeout: 100000
UseDefaultCredentials: false
That seems to be all of the pertinent data listed.
__________________
Noob, whole noob, nothing but a noob, so help me God. I will learn if it kills me.....
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Try it out Ch9 pgs 311-312 tjsully BOOK: Beginning ASP.NET 4 : in C# and VB 2 July 16th, 2011 04:46 PM
Ch9 Page 303 - Build error ken evans BOOK: Beginning ASP.NET 4 : in C# and VB 2 October 17th, 2010 10:12 AM
VB Ch9 Try It Out Looping ... p325 Rich57 BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 2 March 7th, 2008 04:57 AM
Multidimensional array in ch9 willburke BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 November 2nd, 2004 04:44 PM



All times are GMT -4. The time now is 06:53 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.