473,507 Members | 4,494 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using GMail with ASP.Net: error: The remote certificate is invalid according to the validation procedure.

Hi,
I'm trying to use gmail smtp server for an asp.net application, but when I
try to send an email I get this error:

"The remote certificate is invalid according to the validation procedure."

Of course, I have enabled ssl (enableSSL = true) and inserted the network
credentials for my account... but it still doesn't work.

How come does it happen?
How can I solve it?

I am using ASP.Net 2.0 and Google Apps.

Thanks in advance,

--
Carmine
Webmaster di www.thetotalsite.it
Blog http://blog.thetotalsite.it

Mar 5 '08 #1
3 5176

Go here;
http://sholliday.spaces.live.com/Blog/cns!A68482B9628A842A!138.entry

get the downloadable code.
(You can download the code HERE. (Right-Click and "Save As" works best)
(<<key phrase to search for)

I have gmail specific code and setup there.

...

There is a 1.1 and 2.0 version.

"Carmine [www.thetotalsite.it]" <pi*******@gmail.comwrote in message
news:8F**********************************@microsof t.com...
Hi,
I'm trying to use gmail smtp server for an asp.net application, but when I
try to send an email I get this error:

"The remote certificate is invalid according to the validation procedure."

Of course, I have enabled ssl (enableSSL = true) and inserted the network
credentials for my account... but it still doesn't work.

How come does it happen?
How can I solve it?

I am using ASP.Net 2.0 and Google Apps.

Thanks in advance,

--
Carmine
Webmaster di www.thetotalsite.it
Blog http://blog.thetotalsite.it

Mar 5 '08 #2
I tried, but it still doesn't work :-(
As the article explains, I have set the port to 587 or 465, but now I get
this error:

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

....Why?

Bye,

--
Carmine
Webmaster di www.thetotalsite.it
Blog http://blog.thetotalsite.it

Mar 5 '08 #3
Firewall or port block?

Something is stopping you.

Can you setup outlook/express to just test it?

"Carmine [www.thetotalsite.it]" <pi*******@gmail.comwrote in message
news:9A**********************************@microsof t.com...
>I tried, but it still doesn't work :-(
As the article explains, I have set the port to 587 or 465, but now I get
this error:

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

...Why?

Bye,

--
Carmine
Webmaster di www.thetotalsite.it
Blog http://blog.thetotalsite.it

Mar 5 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
8728
by: Ashutosh Bhalerao | last post by:
Hi all, I am trying to write a VB.Net application which communicates over SSL with an IIS server. I have got a temporary certificate from Verisign and installed it on IIS. I am using...
11
6551
by: Grasshopper | last post by:
Hi, I am automating Access reports to PDF using PDF Writer 6.0. I've created a DTS package to run the reports and schedule a job to run this DTS package. If I PC Anywhere into the server on...
1
1167
by: Nelson R. | last post by:
Hi, i need to get some info from a website page that requires an certificate. Ive got the provided certificate installed in IE, and when accessing the website page, it shows a window to...
1
2428
by: Kenny Ho | last post by:
Hi, I have written the following schema that contains the XML signature: ----------------------------------------------------------------------- <?xml version="1.0" encoding="utf-8" ?>...
0
23445
by: HKSHK | last post by:
This list compares the error codes used in VB.NET 2003 with those used in VB6. Error Codes: ============ 3: This Error number is obsolete and no longer used. (Formerly: Return without GoSub)...
0
2677
by: Mark Parter | last post by:
I'm trying convert an XML Schema (http://www.elframework.org/projects/xcri/efc_r1.0.xsd/view) to a VB.Net class using the XSD tool provided with the .NET 2 SDK. However, it's failing to generate...
0
1380
by: BillE | last post by:
VS2005 VB.net I'm using the HTTPWebRequest class to connect to a web site with SSL. I first manually connected to the site and installed the certificate on my computer, and then use the...
5
1781
by: Pedro Vera | last post by:
I am helping somebody setup one of the asp.net starter kits. I converted it from sql express to sql server with no real issues, and I got it running local perfectly. On my first attempt to run...
5
23830
by: =?Utf-8?B?RG9taW5v?= | last post by:
Greetings all, I'm trying to send an e-mail from a Windows application thru MS Exchange Server 2007 that is in my LAN. The setup for Exchange server is very basic, it's running on Server 2003...
0
7220
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7105
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7371
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7479
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5617
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3188
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3178
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1534
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.