Showing posts with label folks. Show all posts
Showing posts with label folks. Show all posts

Monday, March 26, 2012

System.Net.Mail versa System.Web.Mail

Hi,
I am hoping to find out the differences between the
System.Net.Mail and System.Web.Mail.
Can some nice folks post the differences; or some urls which show the
differences?
Great Thanks
FrankHello,
in .NET 1.1, only the System.Web.Mail was available. This implemenation had
fundamental flaws. For example, attachment could only be added from files,
not from Streams.
The .NET 2.0 implementation is System.Net.Mail and is much more flexible and
has a richer featureset.
Best regards,
Henning Krause
"Frank" <frk.won@.gmail.com> wrote in message
news:1175024784.230868.75240@.n59g2000hsh.googlegroups.com...
> Hi,
> I am hoping to find out the differences between the
> System.Net.Mail and System.Web.Mail.
> Can some nice folks post the differences; or some urls which show the
> differences?
> Great Thanks
> Frank
>
On Mar 27, 3:59 pm, "Henning Krause [MVP - Exchange]"
<newsgroups_rem...@.this.infinitec.de> wrote:
> Hello,
> in .NET 1.1, only the System.Web.Mail was available. This implemenation ha
d
> fundamental flaws. For example, attachment could only be added from files,
> not from Streams.
> The .NET 2.0 implementation is System.Net.Mail and is much more flexible a
nd
> has a richer featureset.
> Best regards,
> Henning Krause
> "Frank" <frk...@.gmail.com> wrote in message
> news:1175024784.230868.75240@.n59g2000hsh.googlegroups.com...
>
>
>
>
>
> - Show quoted text -
Hi Mr. Krause,
many thxs
http://www.systemwebmail.com/
http://www.systemnetmail.com/

> On Mar 27, 3:59 pm, "Henning Krause [MVP - Exchange]"
> <newsgroups_rem...@.this.infinitec.de> wrote:
>
> Hi Mr. Krause,
> many thxs
>
On Mar 27, 8:33 pm, Jay Parzych <jimp...@.cox.net> wrote:
> http://www.systemwebmail.com/
> http://www.systemnetmail.com/
>
>
>
>
>
>
>
>
>
>
>
>
>
> - Show quoted text -
great thxs!
Actually System.Net.Mail replaces System.Web.Mail, which is now marked
as obsolete.
Henning Krause [MVP - Exchange] wrote:
> Hello,
> in .NET 1.1, only the System.Web.Mail was available. This implemenation
> had fundamental flaws. For example, attachment could only be added from
> files, not from Streams.
> The .NET 2.0 implementation is System.Net.Mail and is much more flexible
> and has a richer featureset.
> Best regards,
> Henning Krause
>
> "Frank" <frk.won@.gmail.com> wrote in message
> news:1175024784.230868.75240@.n59g2000hsh.googlegroups.com...
>
Gran Andersson
_____
http://www.guffa.com
re:
> Actually System.Net.Mail replaces System.Web.Mail, which is now marked as obsolete

It's only "obsolete" for the .Net Framework 2.0.
It's still supported in the .Net Framework 1.0 and 1.1.
The correct term when a class works in previous
versions, but not in a later one, is "deprecated".
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"Gran Andersson" <guffa@.guffa.com> wrote in message news:%23tPjOQWcHHA.4308@.TK2MSFTNGP02.p
hx.gbl...
> Actually System.Net.Mail replaces System.Web.Mail, which is now marked as
obsolete.
> Henning Krause [MVP - Exchange] wrote:
> --
> Gran Andersson
> _____
> http://www.guffa.com
Juan T. Llibre wrote:
> re:
> It's only "obsolete" for the .Net Framework 2.0.
> It's still supported in the .Net Framework 1.0 and 1.1.
Obviously, as System.Net.Mail doesn't exist in framework 1.x.

> The correct term when a class works in previous
> versions, but not in a later one, is "deprecated".
The class is marked as obsolete using the Obsolete attribute. The
correct term for a class marked as obsolete is obsolete. You can also
call it "deprecated" as some other systems use that term for the same thing.
An obsolete class is still working, it's only recommended that it's not
used. As the framework is supposed to be able to run code compiled for
previos versions, classes can't just stop working, at least not until
they have been obsolete for some version updates.

> Juan T. Llibre, asp.net MVP
> asp.net faq : http://asp.net.do/faq/
> foros de asp.net, en espaol : http://asp.net.do/foros/
> ===================================
> "Gran Andersson" <guffa@.guffa.com> wrote in message news:%23tPjOQWcHHA.43
08@.TK2MSFTNGP02.phx.gbl...
>
Gran Andersson
_____
http://www.guffa.com
re:
> The class is marked as obsolete using the Obsolete attribute.
There's conflicting info on that.
See :
http://msdn2.microsoft.com/en-us/li...system.web.mail(VS.80).aspx
That page says that the classes in the System.Web.Mail namespace have been d
eprecated,
but all its classes have been marked as obsolete.
The namespace is not obsolete. It's deprecated.
That's because it doesn't work in the current version but works in the previ
ous ones.
See:
http://en.wikipedia.org/wiki/Deprecated
"The deprecated feature still works in the current version of the software,
but it may raise error messages or warnings recommending an alternative prac
tice."
and
http://www.w3.org/TR/WD-html40-970917/convent.html
"A deprecated element or attribute is one that has been outdated by newer co
nstructs."
System.Web.Mail can be thought of as "obsolescent", but not "obsolete", sinc
e it still works.
Ymmv, of course.
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"Gran Andersson" <guffa@.guffa.com> wrote in message news:eUecQUYcHHA.4820@.TK2MSFTNGP06.phx
.gbl...
> Juan T. Llibre wrote:
> Obviously, as System.Net.Mail doesn't exist in framework 1.x.
>
> The class is marked as obsolete using the Obsolete attribute. The correct
term for a class marked
> as obsolete is obsolete. You can also call it "deprecated" as some other s
ystems use that term for
> the same thing.
> An obsolete class is still working, it's only recommended that it's not us
ed. As the framework is
> supposed to be able to run code compiled for previos versions, classes can
't just stop working, at
> least not until they have been obsolete for some version updates.
>
>
> --
> Gran Andersson
> _____
> http://www.guffa.com
Juan T. Llibre wrote:
> re:
> There's conflicting info on that.
Not at all. It's very simple. There is an Obsolete attribute. There is
no Deprecated attribute. You can mark a class as obsolete, but you can't
mark it as deprecated.

> See :
> http://msdn2.microsoft.com/en-us/li...system.web.mail(VS.80).aspx
> That page says that the classes in the System.Web.Mail namespace have been
deprecated,
> but all its classes have been marked as obsolete.
> The namespace is not obsolete. It's deprecated.
> That's because it doesn't work in the current version but works in the previous on
es.
That is not correct. The classes still work in the current version.

> See:
> http://en.wikipedia.org/wiki/Deprecated
> "The deprecated feature still works in the current version of the software
,
> but it may raise error messages or warnings recommending an alternative pr
actice."
> and
> http://www.w3.org/TR/WD-html40-970917/convent.html
> "A deprecated element or attribute is one that has been outdated by newer
constructs."
> System.Web.Mail can be thought of as "obsolescent", but not "obsolete", since it s
till works.
I think that you are confusing this with something else. Just because
something is obsolete doesn't in any way imply that it would not work
any more.

> Ymmv, of course.
>
>
> Juan T. Llibre, asp.net MVP
> asp.net faq : http://asp.net.do/faq/
> foros de asp.net, en espaol : http://asp.net.do/foros/
> ===================================
> "Gran Andersson" <guffa@.guffa.com> wrote in message news:eUecQUYcHHA.4820
@.TK2MSFTNGP06.phx.gbl...
>
Gran Andersson
_____
http://www.guffa.com

Saturday, March 24, 2012

System.Net.Sockets.SocketException when trying to use xml feed

Hi folks, strange error I'm getting here, I'm trying to connect to the ECB s currency exchange feed which is located at

http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml - it looks nice and simple to use.

However my code is throwing a socket exception when I run it from the server and a system.net.webexception - {"The remote server returned an error: (407) Proxy Authentication Required."} when I run it from within visual studio. I had a sample script which took feeds from the BBC site on my home computer which worked fine but it does not work from my office computer so seems like something is up with the server, no?

I've never come across this type of error before myself so is there anyone that can point in the right direction on this one?

Thanks in advance.

Hi,

It seems that the proxy server of your office requires authentication. If you're using a WebClient class to connect to that xml file, make sure you have set the Proxy property. Also, set the Credential property for the Proxy and it will be working fine.

Thursday, March 22, 2012

System.NullReferenceException raised on site

Hi folks. Just a client-side question to ask. Don't know if this is the
right place to ask for specific help. If not, sorry for the noise ;-)

Well, a friend of mine tries to access weightwatchers.fr and since a few
days, the site is unreachable at her home. She gets asp.net error
messages on her navigator telling her that there was on "object
reference not set to an instance of an object". The funny thing is that
she was able to connect last week. She is on Win2k. I made connection
tests on my side (Xp Pro SP1) and I cannot see any problem.

I'm a C++ developer and I work a bit with C# and .NET platform so I can
understand what the error message means. Although the error message is
server-side related, I can guess that there is something jerky on her
system, client side. I'm not very good at MS system managing and I need
a bit of advice about what's causing so much trouble.

If anybody could help, we would be very grateful.

Regards

--
SebEmail weightwatchers...the problem is with their site, not your friends
computer. However, had I to guess, I'd imagine she has a tool (norton) or
setting which blocks the UrlReferrer...and the folks at WW are doing
something like Request.UrlReferrer.ToString() when UrlReferrer is
nothing...that's ilke a 1 in a million guess though :)

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)

"metalseb" <metalseb_nofuckinspamhere_@.free.fr> wrote in message
news:423e9eef$0$32564$636a15ce@.news.free.fr...
> Hi folks. Just a client-side question to ask. Don't know if this is the
> right place to ask for specific help. If not, sorry for the noise ;-)
> Well, a friend of mine tries to access weightwatchers.fr and since a few
> days, the site is unreachable at her home. She gets asp.net error
> messages on her navigator telling her that there was on "object
> reference not set to an instance of an object". The funny thing is that
> she was able to connect last week. She is on Win2k. I made connection
> tests on my side (Xp Pro SP1) and I cannot see any problem.
> I'm a C++ developer and I work a bit with C# and .NET platform so I can
> understand what the error message means. Although the error message is
> server-side related, I can guess that there is something jerky on her
> system, client side. I'm not very good at MS system managing and I need
> a bit of advice about what's causing so much trouble.
> If anybody could help, we would be very grateful.
> Regards
> --
> Seb
Seb,
the error type "object
reference not set to an instance of an object"
Try posting the line of the error it would be easier to help
Elaborate
Patrick

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Karl Seguin a crit :
> Email weightwatchers...the problem is with their site, not your friends
> computer. However, had I to guess, I'd imagine she has a tool (norton)or
> setting which blocks the UrlReferrer...and the folks at WW are doing
> something like Request.UrlReferrer.ToString() when UrlReferrer is
> nothing...that's ilke a 1 in a million guess though :)

Thanks Karl

Well, I think that there is some kind of firewall issue with her
machine. I will investigate this way. She phoned WW several times about
this bug and got (guess what) any answers. You know, all is running fine
on their side, so why should they investigate ?

--
Seb

System.NullReferenceException raised on site

Hi folks. Just a client-side question to ask. Don't know if this is the
right place to ask for specific help. If not, sorry for the noise ;-)
Well, a friend of mine tries to access weightwatchers.fr and since a few
days, the site is unreachable at her home. She gets asp.net error
messages on her navigator telling her that there was on "object
reference not set to an instance of an object". The funny thing is that
she was able to connect last w. She is on Win2k. I made connection
tests on my side (Xp Pro SP1) and I cannot see any problem.
I'm a C++ developer and I work a bit with C# and .NET platform so I can
understand what the error message means. Although the error message is
server-side related, I can guess that there is something jerky on her
system, client side. I'm not very good at MS system managing and I need
a bit of advice about what's causing so much trouble.
If anybody could help, we would be very grateful.
Regards
SebEmail weightwatchers...the problem is with their site, not your friends
computer. However, had I to guess, I'd imagine she has a tool (norton) or
setting which blocks the UrlReferrer...and the folks at WW are doing
something like Request.UrlReferrer.ToString() when UrlReferrer is
nothing...that's ilke a 1 in a million guess though :)
Karl
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"metalseb" <metalseb_noXXXXinspamhere_@.free.fr> wrote in message
news:423e9eef$0$32564$636a15ce@.news.free.fr...
> Hi folks. Just a client-side question to ask. Don't know if this is the
> right place to ask for specific help. If not, sorry for the noise ;-)
> Well, a friend of mine tries to access weightwatchers.fr and since a few
> days, the site is unreachable at her home. She gets asp.net error
> messages on her navigator telling her that there was on "object
> reference not set to an instance of an object". The funny thing is that
> she was able to connect last w. She is on Win2k. I made connection
> tests on my side (Xp Pro SP1) and I cannot see any problem.
> I'm a C++ developer and I work a bit with C# and .NET platform so I can
> understand what the error message means. Although the error message is
> server-side related, I can guess that there is something jerky on her
> system, client side. I'm not very good at MS system managing and I need
> a bit of advice about what's causing so much trouble.
> If anybody could help, we would be very grateful.
> Regards
> --
> Seb
Seb,
the error type "object
reference not set to an instance of an object"
Try posting the line of the error it would be easier to help
Elaborate
Patrick
*** Sent via Developersdex http://www.examnotes.net ***
Don't just participate in USENET...get rewarded for it!
Karl Seguin a =E9crit :
> Email weightwatchers...the problem is with their site, not your friends=

> computer. However, had I to guess, I'd imagine she has a tool (norton)=
or
> setting which blocks the UrlReferrer...and the folks at WW are doing
> something like Request.UrlReferrer.ToString() when UrlReferrer is
> nothing...that's ilke a 1 in a million guess though :)
Thanks Karl
Well, I think that there is some kind of firewall issue with her=20
machine. I will investigate this way. She phoned WW several times about=20
this bug and got (guess what) any answers. You know, all is running fine =
on their side, so why should they investigate ?
--=20
Seb