Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Beginning ASP.NET 4 : in C# and VB
| 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
 
Old October 29th, 2012, 06:49 PM
Authorized User
Points: 135, Level: 2
Points: 135, Level: 2 Points: 135, Level: 2 Points: 135, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2012
Posts: 27
Thanks: 4
Thanked 2 Times in 2 Posts
Default Access to a socket in a way forbidden by its access permissions

I cannots end an email (ch. 09), getting the following error message:

An attempt was made to access a socket in a way forbidden by its access permissions 206.46.232.100:25
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: An attempt was made to access a socket in a way forbidden by its access permissions 206.46.232.100:25

Source Error:
Code:
Line 18: 
Line 19:       SmtpClient mySmtpClient = new SmtpClient();
Line 20:       mySmtpClient.Send(myMessage);
Line 21:     }
Line 22: }
Source File: c:\BegASPNETCS\SiteCS\Demos\Email.aspx.cs Line: 20

My email account is with Verizon.net.
I tried all the options suggested in ch.09 for the web.config file.
What may cause that? Could it be because of Norton 360 settings?
 
Old October 29th, 2012, 07:14 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

It could be Norton (although I would assume it allows for port 25 to go out by default; try turning it off to make sure), but I think it's more likely that Verizon needs other setup data to work correctly. Check out their FAQs (if any) or contact their support department to find out more.

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!
The Following User Says Thank You to Imar For This Useful Post:
ASP4student (October 30th, 2012)
 
Old November 1st, 2012, 06:59 AM
Authorized User
Points: 135, Level: 2
Points: 135, Level: 2 Points: 135, Level: 2 Points: 135, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2012
Posts: 27
Thanks: 4
Thanked 2 Times in 2 Posts
Default

The resolved all the issues and the email message passed now. Here below is the full description.

I resolved the error:
"An attempt was made to access a socket in a way forbidden by its access permissions ...25"
by changing Norton 360 settings:
Norton, Settings, "Scans and Risks" tab, click "Email Antivirus Scan": uncheck "Scan outgoing email messages", select "Permanent".

Another error appeared:
"A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond ...25"
which I resolved by changing:
host="smtp.verizon.net" to host="outgoing.verizon.net".

I also mention that the user name does not contain "@verizon.net",but only what's before it. In fact, all the settings must be exaclty as in the email account properties (Tools, Accounts, select account, click Properties).
The Following User Says Thank You to ASP4student For This Useful Post:
Imar (November 2nd, 2012)




Similar Threads
Thread Thread Starter Forum Replies Last Post
Access Forbidden jfbesq BOOK: Professional Search Engine Optimization with PHP: A Dev's Guide to SEO ISBN: 978-0-470-10092-9 1 May 2nd, 2010 05:39 PM
VB. NET HTTP/1.1 403 ACCESS FORBIDDEN spaxton111757 Classic ASP Professional 0 July 8th, 2007 08:03 AM
Forbidden access chapter12 page 361 chokk BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 March 22nd, 2005 05:07 PM
Access Permissions problem Meanwhile Classic ASP Databases 8 February 15th, 2005 11:39 PM
Getting Access permissions mont2004 Access ASP 1 February 12th, 2004 02:35 PM





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