Author: Nashua | Posted on: 9/3/2008 8:07:41 AM | Views : 584

I keep getting the following error: BC30002: Type 'NetworkCredential' is not defined.

I copied the code directly from a sample found on a System.Net.Mail site.  The sample also matches what I've seen on many other sites; so I'm sure the code is good.

I didn't put Imports System.Net.Mail at the top of my page, but placed <%@ Import Namespace="System.Net.Mail" %> the same way I import every other namespace.  Could this be causing the problem?

 
...

Go to the complete details ...