Customer view previous order, CS0246, 'Smtpclient' not found

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
ksolito
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 42
Joined: Tue Nov 25, 2008 3:16 pm

Customer view previous order, CS0246, 'Smtpclient' not found

Post by ksolito » Thu Aug 06, 2009 4:16 pm

If a customer logs in and tries to view previous orders from their account, the following error is displayed.
[[ConLib:MyOrderPage]] h:\hshome\shooters\shootersconnectionstore.com\ConLib\MyOrderPage.ascx.cs(393): error CS0246: The type or namespace name 'SmtpClient' could not be found (are you missing a using directive or an assembly reference?)
This store was just updated from 7.0.2 to 7.0.3 with all hotfixes. Other store email functions work fine.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Customer view previous order, CS0246, 'Smtpclient' not found

Post by mazhar » Fri Aug 07, 2009 4:38 am

Eidit your ConLib\MyOrderPage.ascx.cs file and add following statement at the end of other using statements at top

Code: Select all

using System.Net.Mail;

Post Reply