Saturday, March 31, 2012
strange 404 error
Thanks in advance,
Sean Nolan
----------------
Message:
C:\Inetpub\wwwroot\ExpenseWatchApp\TE\ExpenseWatch _files\TEPrintFrame.aspx
Source:
System.Web
Stack Trace:
at System.Web.UI.TemplateParser.GetParserCacheItem()
at System.Web.UI.TemplateControlParser.CompileAndGetP arserCacheItem(String virtualPath, String inputFile, HttpContext context)
at System.Web.UI.TemplateControlParser.GetCompiledIns tance(String virtualPath, String inputFile, HttpContext context)
at System.Web.UI.PageParser.GetCompiledPageInstanceIn ternal(String virtualPath, String inputFile, HttpContext context)
at System.Web.UI.PageHandlerFactory.GetHandler(HttpCo ntext context, String requestType, String url, String path)
at System.Web.HttpApplication.MapHttpHandler(HttpCont ext context, String requestType, String path, String pathTranslated, Boolean useAppConfig)Probably a hacker, probing for a specific vulnerability in some commercial
product called "ExpenseWatch".
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
"Sean Nolan" <snolan@.harriton.com> wrote in message
news:#bm2B0##DHA.2520@.TK2MSFTNGP11.phx.gbl...
I'm wondering if anyone has encountered something similar to the error I've
pasted below. We get similar errors when someone hits a bad link etc., but
the part I can't figure out here is where the string "ExpenseWatch_files"
come from. The page TEPrintFrame.aspx resides in the TE folder. There is no
intermediate directory and the string "ExpenseWatch_files" does not exist
anywhere in our code. Also, I'm pretty sure that the user never knows that
an error occurred even though it is trapped and reported.
Thanks in advance,
Sean Nolan
----------------
Message:
C:\Inetpub\wwwroot\ExpenseWatchApp\TE\ExpenseWatch _files\TEPrintFrame.aspx
Source:
System.Web
Stack Trace:
at System.Web.UI.TemplateParser.GetParserCacheItem()
at System.Web.UI.TemplateControlParser.CompileAndGetP arserCacheItem(String
virtualPath, String inputFile, HttpContext context)
at System.Web.UI.TemplateControlParser.GetCompiledIns tance(String
virtualPath, String inputFile, HttpContext context)
at System.Web.UI.PageParser.GetCompiledPageInstanceIn ternal(String
virtualPath, String inputFile, HttpContext context)
at System.Web.UI.PageHandlerFactory.GetHandler(HttpCo ntext context, String
requestType, String url, String path)
at System.Web.HttpApplication.MapHttpHandler(HttpCont ext context, String
requestType, String path, String pathTranslated, Boolean useAppConfig)
Tuesday, March 13, 2012
Strange problem
method as shown below i get this error message: Specified cast is not valid
<td><%# bs.getPriority((int)DataBinder.Eval(Container.DataItem,
"Priority"))%></td>
When i print the DataItem "Priority" it shows an integer value, but for some
reason the method does not like value.. if i call this method like ->
bs.getPriortiy(3); it works fine.
In the database i have a field called "Priority" int type...
The method works fine when i call it in DataItemBound method..
any idea?Hi,
Try using
int.Parse(DataBinder.Eval(Container.DataItem, "Priority"))
DataBinder.Eval returns a string value type. (int) is used to
implicitly cast values to integers. Strings must be explicitly cast
using the Parse method.
Hope this helps.
Tod Birdsall, MCP
http://tod1d.blogspot.com
Tod thank you so much :) it worked..
still
<TD><%# bs.getCampusName((int)DataBinder.Eval(Container.DataItem,
"CampusID"))%></TD>
<td><%# bs.getCampusName((int.Parse(DataBinder.Eval(Container.DataItem,
"Priority")))%></td>
both CampusID and Priority is same type of value..
Many Thanks again.
"Tod Birdsall" wrote:
> Hi,
> Try using
> int.Parse(DataBinder.Eval(Container.DataItem, "Priority"))
> DataBinder.Eval returns a string value type. (int) is used to
> implicitly cast values to integers. Strings must be explicitly cast
> using the Parse method.
> Hope this helps.
> Tod Birdsall, MCP
> http://tod1d.blogspot.com
>
Sorry that did not solve the problem... :( i am getting this error message
now:
The best overloaded method match for 'int.Parse(string)' has some invalid
arguments
"Tod Birdsall" wrote:
> Hi,
> Try using
> int.Parse(DataBinder.Eval(Container.DataItem, "Priority"))
> DataBinder.Eval returns a string value type. (int) is used to
> implicitly cast values to integers. Strings must be explicitly cast
> using the Parse method.
> Hope this helps.
> Tod Birdsall, MCP
> http://tod1d.blogspot.com
>
Acutally, DataBinder.Eval returns an object unless you pass a third
parameter, a format specifier, i.e.
DataBinder.Eval(Container.DataItem, "Priority", "{0:d}")
Otherwise you get an object reference back, in which case you could
use Convert.ToInt32
Scott
http://www.OdeToCode.com/blogs/scott/
On Tue, 9 Nov 2004 07:38:03 -0800, "huzz"
<huzz@.discussions.microsoft.com> wrote:
>Sorry that did not solve the problem... :( i am getting this error message
>now:
>The best overloaded method match for 'int.Parse(string)' has some invalid
>arguments
>"Tod Birdsall" wrote:
>
Hi,
Scott is correct. Sorry for the mis-information.
I tried to reproduce your error message. I created a function in the
code behind like so:
protected string GetRemainderInEscrow(decimal approvedAmount, object
paidAmount)
I then called the method from the aspx page using the following code :
<%# GetRemainderInEscrow( (decimal)DataBinder.Eval(Container,
"DataItem.ApprovedAmount"), DataBinder.Eval(Container, "DataItem.Paid")
) %>
The code worked as it should. If you have control over the
'bs.getPriority' method, try allowing an object to be passed instead of
an integer value type. If that doesn't work. If that still does not
work, copy and paste the exact error message and Stack Trace.
Tod Birdsall, MCP
http://tod1d.blogspot.com
Strange problem
method as shown below i get this error message: Specified cast is not valid
<td><%# bs.getPriority((int)DataBinder.Eval(Container.Data Item,
"Priority"))%></td
When i print the DataItem "Priority" it shows an integer value, but for some
reason the method does not like value.. if i call this method like ->
bs.getPriortiy(3); it works fine.
In the database i have a field called "Priority" int type...
The method works fine when i call it in DataItemBound method..
any idea?Hi,
Try using
int.Parse(DataBinder.Eval(Container.DataItem, "Priority"))
DataBinder.Eval returns a string value type. (int) is used to
implicitly cast values to integers. Strings must be explicitly cast
using the Parse method.
Hope this helps.
Tod Birdsall, MCP
http://tod1d.blogspot.com
Tod thank you so much :) it worked..
still confused why one of them works not the other as shown below:
<TD><%# bs.getCampusName((int)DataBinder.Eval(Container.Da taItem,
"CampusID"))%></TD
<td><%# bs.getCampusName((int.Parse(DataBinder.Eval(Contai ner.DataItem,
"Priority")))%></td
both CampusID and Priority is same type of value..
Many Thanks again.
"Tod Birdsall" wrote:
> Hi,
> Try using
> int.Parse(DataBinder.Eval(Container.DataItem, "Priority"))
> DataBinder.Eval returns a string value type. (int) is used to
> implicitly cast values to integers. Strings must be explicitly cast
> using the Parse method.
> Hope this helps.
> Tod Birdsall, MCP
> http://tod1d.blogspot.com
>
Sorry that did not solve the problem... :( i am getting this error message
now:
The best overloaded method match for 'int.Parse(string)' has some invalid
arguments
"Tod Birdsall" wrote:
> Hi,
> Try using
> int.Parse(DataBinder.Eval(Container.DataItem, "Priority"))
> DataBinder.Eval returns a string value type. (int) is used to
> implicitly cast values to integers. Strings must be explicitly cast
> using the Parse method.
> Hope this helps.
> Tod Birdsall, MCP
> http://tod1d.blogspot.com
>
Acutally, DataBinder.Eval returns an object unless you pass a third
parameter, a format specifier, i.e.
DataBinder.Eval(Container.DataItem, "Priority", "{0:d}")
Otherwise you get an object reference back, in which case you could
use Convert.ToInt32
--
Scott
http://www.OdeToCode.com/blogs/scott/
On Tue, 9 Nov 2004 07:38:03 -0800, "huzz"
<huzz@.discussions.microsoft.com> wrote:
>Sorry that did not solve the problem... :( i am getting this error message
>now:
>The best overloaded method match for 'int.Parse(string)' has some invalid
>arguments
>"Tod Birdsall" wrote:
>> Hi,
>>
>> Try using
>>
>> int.Parse(DataBinder.Eval(Container.DataItem, "Priority"))
>>
>> DataBinder.Eval returns a string value type. (int) is used to
>> implicitly cast values to integers. Strings must be explicitly cast
>> using the Parse method.
>> Hope this helps.
>>
>> Tod Birdsall, MCP
>> http://tod1d.blogspot.com
>>
>
Hi,
Scott is correct. Sorry for the mis-information.
I tried to reproduce your error message. I created a function in the
code behind like so:
protected string GetRemainderInEscrow(decimal approvedAmount, object
paidAmount)
I then called the method from the aspx page using the following code :
<%# GetRemainderInEscrow( (decimal)DataBinder.Eval(Container,
"DataItem.ApprovedAmount"), DataBinder.Eval(Container, "DataItem.Paid")
) %
The code worked as it should. If you have control over the
'bs.getPriority' method, try allowing an object to be passed instead of
an integer value type. If that doesn't work. If that still does not
work, copy and paste the exact error message and Stack Trace.
Tod Birdsall, MCP
http://tod1d.blogspot.com
Strange problem using Gmail as mail server in ASP.NET
code below). Everything works quite well, actually, EXCEPT for one
particular email account. I've created an "admin" account that I'd like
to use to send emails from since GMail automatically replaces the
"from" field with whoever you're using to send emails from. When I use
this account, I get the following exception(s) (inner ones are
unraveled):
Could not access 'CDO.Message' object.
Exception has been thrown by the target of an invocation.
The message could not be sent to the SMTP server. The transport error
code was 0x80040217. The server response was not available
When i use my own personal gmail account, all is well. I have indeed
confirmed that my username and password are correct. :) Any ideas?
Thanks!
-MMAS
//code example
MailMessage mmAlert = new MailMessage();
mmAlert.From = strSenderEmail;
mmAlert.To = strRecipientEmail;
mmAlert.Priority = MailPriority.Normal;
SmtpMail.SmtpServer = "smtp.gmail.com";
// - smtp.gmail.com use smtp authentication
mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate";,
"1");
mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername";,
"[email address]");
mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword";,
"some_pass");
// - smtp.gmail.com use port 465 or 587
mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserverport";,
"465");
// - smtp.gmail.com use STARTTLS (some call this SSL)
mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpusessl";,
"true");
SmtpMail.Send(mmAlert);Google does not have a service for that, you will never accomplish this
cause Google Mail block external access from the Mail Servers
--
Bruno Alexandre
Kbenhavn, Danmark
"a Portuguese in Denmark"
Blog. http://balexandre.blogspot.com/
Photos. http://www.flickr.com/photos/balexandre/
"MMAS" <mustafashabib@.gmail.comwrote in message
news:1160783166.865336.327380@.h48g2000cwc.googlegr oups.com...
Quote:
Originally Posted by
I've got my .net application set up to use gmail as a mail server (see
code below). Everything works quite well, actually, EXCEPT for one
particular email account. I've created an "admin" account that I'd like
to use to send emails from since GMail automatically replaces the
"from" field with whoever you're using to send emails from. When I use
this account, I get the following exception(s) (inner ones are
unraveled):
>
Could not access 'CDO.Message' object.
Exception has been thrown by the target of an invocation.
The message could not be sent to the SMTP server. The transport error
code was 0x80040217. The server response was not available
>
When i use my own personal gmail account, all is well. I have indeed
confirmed that my username and password are correct. :) Any ideas?
>
Thanks!
-MMAS
>
//code example
MailMessage mmAlert = new MailMessage();
mmAlert.From = strSenderEmail;
mmAlert.To = strRecipientEmail;
mmAlert.Priority = MailPriority.Normal;
>
SmtpMail.SmtpServer = "smtp.gmail.com";
// - smtp.gmail.com use smtp authentication
mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate";,
"1");
mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername";,
"[email address]");
mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword";,
"some_pass");
// - smtp.gmail.com use port 465 or 587
mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserverport";,
"465");
// - smtp.gmail.com use STARTTLS (some call this SSL)
mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpusessl";,
"true");
>
SmtpMail.Send(mmAlert);
>
sorry, but as i said in the message, that code works 100% if I use one
particular gmail account I have. I created a new account and tried
using that instead, but it does NOT work. besides the
username/password, the code doesn't change between those accounts.
On Oct 14, 5:01 am, "Bruno Alexandre" <bruno.in...@.gmail.comwrote:
Quote:
Originally Posted by
Google does not have a service for that, you will never accomplish this
cause Google Mail block external access from the Mail Servers
>
--
>
Bruno Alexandre
Kbenhavn, Danmark
>
"a Portuguese in Denmark"
>
Blog.http://balexandre.blogspot.com/
Photos.http://www.flickr.com/photos/balexandre/
>
"MMAS" <mustafasha...@.gmail.comwrote in messagenews:1160783166.865336.327380@.h48g2000cwc.g ooglegroups.com...
>
Quote:
Originally Posted by
I've got my .net application set up to use gmail as a mail server (see
code below). Everything works quite well, actually, EXCEPT for one
particular email account. I've created an "admin" account that I'd like
to use to send emails from since GMail automatically replaces the
"from" field with whoever you're using to send emails from. When I use
this account, I get the following exception(s) (inner ones are
unraveled):
>
Quote:
Originally Posted by
Could not access 'CDO.Message' object.
Exception has been thrown by the target of an invocation.
The message could not be sent to the SMTP server. The transport error
code was 0x80040217. The server response was not available
>
Quote:
Originally Posted by
When i use my own personal gmail account, all is well. I have indeed
confirmed that my username and password are correct. :) Any ideas?
>
Quote:
Originally Posted by
Thanks!
-MMAS
>
Quote:
Originally Posted by
//code example
MailMessage mmAlert = new MailMessage();
mmAlert.From = strSenderEmail;
mmAlert.To = strRecipientEmail;
mmAlert.Priority = MailPriority.Normal;
>
Quote:
Originally Posted by
SmtpMail.SmtpServer = "smtp.gmail.com";
// - smtp.gmail.com use smtp authentication
mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate";,
"1");
mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername";,
"[email address]");
mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword";,
"some_pass");
// - smtp.gmail.com use port 465 or 587
mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserverport";,
"465");
// - smtp.gmail.com use STARTTLS (some call this SSL)
mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpusessl";,
"true");
Quote:
Originally Posted by
SmtpMail.Send(mmAlert);
See my
http://sholliday.spaces.live.com/blog/ 2/8/2006 ENTRY
I have 1.1 and 2.0 gmail/google mail smtp setup.
"MMAS" <mustafashabib@.gmail.comwrote in message
news:1160783166.865336.327380@.h48g2000cwc.googlegr oups.com...
Quote:
Originally Posted by
I've got my .net application set up to use gmail as a mail server (see
code below). Everything works quite well, actually, EXCEPT for one
particular email account. I've created an "admin" account that I'd like
to use to send emails from since GMail automatically replaces the
"from" field with whoever you're using to send emails from. When I use
this account, I get the following exception(s) (inner ones are
unraveled):
>
Could not access 'CDO.Message' object.
Exception has been thrown by the target of an invocation.
The message could not be sent to the SMTP server. The transport error
code was 0x80040217. The server response was not available
>
When i use my own personal gmail account, all is well. I have indeed
confirmed that my username and password are correct. :) Any ideas?
>
Thanks!
-MMAS
>
//code example
MailMessage mmAlert = new MailMessage();
mmAlert.From = strSenderEmail;
mmAlert.To = strRecipientEmail;
mmAlert.Priority = MailPriority.Normal;
>
SmtpMail.SmtpServer = "smtp.gmail.com";
// - smtp.gmail.com use smtp authentication
>
mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthe
nticate";,
Quote:
Originally Posted by
"1");
>
mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusern
ame";,
Quote:
Originally Posted by
"[email address]");
>
mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassw
ord";,
Quote:
Originally Posted by
"some_pass");
// - smtp.gmail.com use port 465 or 587
>
mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserve
rport";,
Quote:
Originally Posted by
"465");
// - smtp.gmail.com use STARTTLS (some call this SSL)
>
mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpusess
l";,
Quote:
Originally Posted by
"true");
>
SmtpMail.Send(mmAlert);
>
sorry, I can't see
your page crash Firefox completly!
I get an error and have to restart firefox.
good page :)
i'm using firefox 1.5.0.7
--
Bruno Alexandre
Kbenhavn, Danmark
"a Portuguese in Denmark"
Blog. http://balexandre.blogspot.com/
Photos. http://www.flickr.com/photos/balexandre/
"sloan" <sloan@.ipass.netwrote in message
news:%23wGQQWg8GHA.2128@.TK2MSFTNGP05.phx.gbl...
Quote:
Originally Posted by
See my
http://sholliday.spaces.live.com/blog/ 2/8/2006 ENTRY
>
I have 1.1 and 2.0 gmail/google mail smtp setup.
>
>
>
>
"MMAS" <mustafashabib@.gmail.comwrote in message
news:1160783166.865336.327380@.h48g2000cwc.googlegr oups.com...
Quote:
Originally Posted by
>I've got my .net application set up to use gmail as a mail server (see
>code below). Everything works quite well, actually, EXCEPT for one
>particular email account. I've created an "admin" account that I'd like
>to use to send emails from since GMail automatically replaces the
>"from" field with whoever you're using to send emails from. When I use
>this account, I get the following exception(s) (inner ones are
>unraveled):
>>
>Could not access 'CDO.Message' object.
>Exception has been thrown by the target of an invocation.
>The message could not be sent to the SMTP server. The transport error
>code was 0x80040217. The server response was not available
>>
>When i use my own personal gmail account, all is well. I have indeed
>confirmed that my username and password are correct. :) Any ideas?
>>
>Thanks!
>-MMAS
>>
>//code example
>MailMessage mmAlert = new MailMessage();
>mmAlert.From = strSenderEmail;
>mmAlert.To = strRecipientEmail;
>mmAlert.Priority = MailPriority.Normal;
>>
>SmtpMail.SmtpServer = "smtp.gmail.com";
>// - smtp.gmail.com use smtp authentication
>>
mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthe
nticate";,
Quote:
Originally Posted by
>"1");
>>
mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusern
ame";,
Quote:
Originally Posted by
>"[email address]");
>>
mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassw
ord";,
Quote:
Originally Posted by
>"some_pass");
>// - smtp.gmail.com use port 465 or 587
>>
mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserve
rport";,
Quote:
Originally Posted by
>"465");
>// - smtp.gmail.com use STARTTLS (some call this SSL)
>>
mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpusess
l";,
Quote:
Originally Posted by
>"true");
>>
>SmtpMail.Send(mmAlert);
>>
>
>
Strange problem using Gmail as mail server in ASP.NET
code below). Everything works quite well, actually, EXCEPT for one
particular email account. I've created an "admin" account that I'd like
to use to send emails from since GMail automatically replaces the
"from" field with whoever you're using to send emails from. When I use
this account, I get the following exception(s) (inner ones are
unraveled):
Could not access 'CDO.Message' object.
Exception has been thrown by the target of an invocation.
The message could not be sent to the SMTP server. The transport error
code was 0x80040217. The server response was not available
When i use my own personal gmail account, all is well. I have indeed
confirmed that my username and password are correct. :) Any ideas?
Thanks!
-MMAS
//code example
MailMessage mmAlert = new MailMessage();
mmAlert.From = strSenderEmail;
mmAlert.To = strRecipientEmail;
mmAlert.Priority = MailPriority.Normal;
SmtpMail.SmtpServer = "smtp.gmail.com";
// - smtp.gmail.com use smtp authentication
mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthe
nticate";,
"1");
mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusern
ame";,
"[email address]");
mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassw
ord";,
"some_pass");
// - smtp.gmail.com use port 465 or 587
mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserve
rport";,
"465");
// - smtp.gmail.com use STARTTLS (some call this SSL)
mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpusess
l";,
"true");
SmtpMail.Send(mmAlert);Google does not have a service for that, you will never accomplish this
cause Google Mail block external access from the Mail Servers
Bruno Alexandre
Kbenhavn, Danmark
"a Portuguese in Denmark"
Blog. http://balexandre.blogspot.com/
Photos. http://www.flickr.com/photos/balexandre/
"MMAS" <mustafashabib@.gmail.com> wrote in message
news:1160783166.865336.327380@.h48g2000cwc.googlegroups.com...
> I've got my .net application set up to use gmail as a mail server (see
> code below). Everything works quite well, actually, EXCEPT for one
> particular email account. I've created an "admin" account that I'd like
> to use to send emails from since GMail automatically replaces the
> "from" field with whoever you're using to send emails from. When I use
> this account, I get the following exception(s) (inner ones are
> unraveled):
> Could not access 'CDO.Message' object.
> Exception has been thrown by the target of an invocation.
> The message could not be sent to the SMTP server. The transport error
> code was 0x80040217. The server response was not available
> When i use my own personal gmail account, all is well. I have indeed
> confirmed that my username and password are correct. :) Any ideas?
> Thanks!
> -MMAS
> //code example
> MailMessage mmAlert = new MailMessage();
> mmAlert.From = strSenderEmail;
> mmAlert.To = strRecipientEmail;
> mmAlert.Priority = MailPriority.Normal;
> SmtpMail.SmtpServer = "smtp.gmail.com";
> // - smtp.gmail.com use smtp authentication
> mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpaut
henticate";,
> "1");
> mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/senduse
rname";,
> "[email address]");
> mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpas
sword";,
> "some_pass");
> // - smtp.gmail.com use port 465 or 587
> mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpser
verport";,
> "465");
> // - smtp.gmail.com use STARTTLS (some call this SSL)
> mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpuse
ssl";,
> "true");
> SmtpMail.Send(mmAlert);
>
sorry, but as i said in the message, that code works 100% if I use one
particular gmail account I have. I created a new account and tried
using that instead, but it does NOT work. besides the
username/password, the code doesn't change between those accounts.
On Oct 14, 5:01 am, "Bruno Alexandre" <bruno.in...@.gmail.com> wrote:
> Google does not have a service for that, you will never accomplish this
> cause Google Mail block external access from the Mail Servers
> --
> Bruno Alexandre
> K=F8benhavn, Danmark
> "a Portuguese in Denmark"
> Blog.http://balexandre.blogspot.com/
> Photos.http://www.flickr.com/photos/balexandre/
> "MMAS" <mustafasha...@.gmail.com> wrote in messagenews:1160783166.865336.3=
27380@.h48g2000cwc.googlegroups.com...
>
>
>
>
>
>
authenticate";,
username";,
password";,
serverport";,
usessl";,
>=20
See my
http://sholliday.spaces.live.com/blog/ 2/8/2006 ENTRY
I have 1.1 and 2.0 gmail/google mail smtp setup.
"MMAS" <mustafashabib@.gmail.com> wrote in message
news:1160783166.865336.327380@.h48g2000cwc.googlegroups.com...
> I've got my .net application set up to use gmail as a mail server (see
> code below). Everything works quite well, actually, EXCEPT for one
> particular email account. I've created an "admin" account that I'd like
> to use to send emails from since GMail automatically replaces the
> "from" field with whoever you're using to send emails from. When I use
> this account, I get the following exception(s) (inner ones are
> unraveled):
> Could not access 'CDO.Message' object.
> Exception has been thrown by the target of an invocation.
> The message could not be sent to the SMTP server. The transport error
> code was 0x80040217. The server response was not available
> When i use my own personal gmail account, all is well. I have indeed
> confirmed that my username and password are correct. :) Any ideas?
> Thanks!
> -MMAS
> //code example
> MailMessage mmAlert = new MailMessage();
> mmAlert.From = strSenderEmail;
> mmAlert.To = strRecipientEmail;
> mmAlert.Priority = MailPriority.Normal;
> SmtpMail.SmtpServer = "smtp.gmail.com";
> // - smtp.gmail.com use smtp authentication
>
mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthe
nticate";,
> "1");
>
mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusern
ame";,
> "[email address]");
>
mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassw
ord";,
> "some_pass");
> // - smtp.gmail.com use port 465 or 587
>
mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserve
rport";,
> "465");
> // - smtp.gmail.com use STARTTLS (some call this SSL)
>
mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpusess
l";,
> "true");
> SmtpMail.Send(mmAlert);
>
sorry, I can't see
your page crash Firefox completly!
I get an error and have to restart firefox.
good page :)
i'm using firefox 1.5.0.7
Bruno Alexandre
Kbenhavn, Danmark
"a Portuguese in Denmark"
Blog. http://balexandre.blogspot.com/
Photos. http://www.flickr.com/photos/balexandre/
"sloan" <sloan@.ipass.net> wrote in message
news:%23wGQQWg8GHA.2128@.TK2MSFTNGP05.phx.gbl...
> See my
> http://sholliday.spaces.live.com/blog/ 2/8/2006 ENTRY
> I have 1.1 and 2.0 gmail/google mail smtp setup.
>
>
> "MMAS" <mustafashabib@.gmail.com> wrote in message
> news:1160783166.865336.327380@.h48g2000cwc.googlegroups.com...
> mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpaut
he
> nticate";,
> mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/senduse
rn
> ame";,
> mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpas
sw
> ord";,
> mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpser
ve
> rport";,
> mmAlert.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpuse
ss
> l";,
>