470,613 Members | 1,571 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,613 developers. It's quick & easy.

system.web.mail

Hi, I created a console applicaton and try to import system.web.mail. But I
do not see it. after system.web I can only see 3 choices for
AspNetHosting.....

But I downloaded a sample console app. from the web and I do not have any
problem.

Any idea what am I doing wrong?

Thanks!
Greg
Nov 21 '05 #1
2 1744
Console applications don't have a reference to System.Web... You will need to
add this reference yourself.

To add the System.Web DLL:

Click the PROJECT menu & navigate to ADD REFERENCES

Find 'System.Web' DLL, double-click it & click OK

Now, your 'Imports System.Web.Mail' at the top will not be showing the
underline anymore.

I hope this helps.

"Greg Chu" wrote:
Hi, I created a console applicaton and try to import system.web.mail. But I
do not see it. after system.web I can only see 3 choices for
AspNetHosting.....

But I downloaded a sample console app. from the web and I do not have any
problem.

Any idea what am I doing wrong?

Thanks!
Greg

Nov 21 '05 #2
Console applications don't have a reference to System.Web... You will need to
add this reference yourself.

To add the System.Web DLL:

Click the PROJECT menu & navigate to ADD REFERENCES

Find 'System.Web' DLL, double-click it & click OK

Now, your 'Imports System.Web.Mail' at the top will not be showing the
underline anymore.

I hope this helps.

"Greg Chu" wrote:
Hi, I created a console applicaton and try to import system.web.mail. But I
do not see it. after system.web I can only see 3 choices for
AspNetHosting.....

But I downloaded a sample console app. from the web and I do not have any
problem.

Any idea what am I doing wrong?

Thanks!
Greg

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Trond A. S. Andersen | last post: by
5 posts views Thread by martin | last post: by
1 post views Thread by theWizard1 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.