Base solution for your next web application

Activities of "jdavis01"

@Ismcaqdas, I did not have the >System.Transactions line in my csproj file. I added it and still was not able to build.

I did find a solution though. I had to open the Visual Studio 2017 command prompt as administrator and run >dotnet restore on all folders in the project. Once I did that the project compiled and was build.. SUCCESS !!!!

I hope this helps some other folks out with the same issue..

Here is *.Web.Core.csproj

<PackageReference Include="Abp.AspNetCore" Version="3.0.0" />

Here is *.Web.Public.csproj

<ItemGroup>
    <ProjectReference Include="..\ScratchPad.Web.Core\ScratchPad.Web.Core.csproj" />
  </ItemGroup>

I am running VS2017 15.4 with dotnet 2.0 sdk and runtime installed. I have attached photos of the some of the reference issues..

Here is the output from the build..

Restoring NuGet packages...
To prevent NuGet from restoring packages during build, open the Visual Studio Options dialog, click on the Package Manager node and uncheck 'Allow NuGet to download missing packages during build.'
Error occurred while restoring NuGet packages: The given key was not present in the dictionary.
1>------ Build started: Project: ScratchPad.Core, Configuration: Debug Any CPU ------
1>ScratchPad.Core -> C:\Users\jdavis\Documents\_Dev\ScratchPadCore\4.5.1.0\src\ScratchPad.Core\bin\Debug\net461\ScratchPad.Core.dll
2>------ Build started: Project: ScratchPad.Application, Configuration: Debug Any CPU ------
3>------ Build started: Project: ScratchPad.EntityFrameworkCore, Configuration: Debug Any CPU ------
2>Localization\LanguageAppService.cs(127,31,127,76): warning CS0618: 'CultureInfoHelper.Get(string)' is obsolete: 'Use CultureInfo.GetCultureInfo instead!'
2>Localization\LanguageAppService.cs(128,33,128,80): warning CS0618: 'CultureInfoHelper.Get(string)' is obsolete: 'Use CultureInfo.GetCultureInfo instead!'
2>ScratchPad.Application -> C:\Users\jdavis\Documents\_Dev\ScratchPadCore\4.5.1.0\src\ScratchPad.Application\bin\Debug\net461\ScratchPad.Application.dll
2>Done building project "ScratchPad.Application.csproj".
4>------ Build started: Project: ScratchPad.ConsoleApiClient, Configuration: Debug Any CPU ------
4>ScratchPad.ConsoleApiClient -> C:\Users\jdavis\Documents\_Dev\ScratchPadCore\4.5.1.0\test\ScratchPad.ConsoleApiClient\bin\Debug\net461\ScratchPad.ConsoleApiClient.exe
3>ScratchPad.EntityFrameworkCore -> C:\Users\jdavis\Documents\_Dev\ScratchPadCore\4.5.1.0\src\ScratchPad.EntityFrameworkCore\bin\Debug\net461\ScratchPad.EntityFrameworkCore.dll
5>------ Build started: Project: ScratchPad.Web.Core, Configuration: Debug Any CPU ------
6>------ Build started: Project: ScratchPad.Tests, Configuration: Debug Any CPU ------
7>------ Build started: Project: ScratchPad.Migrator, Configuration: Debug Any CPU ------
5>C:\Users\jdavis\Documents\_Dev\ScratchPadCore\4.5.1.0\src\ScratchPad.Web.Core\ScratchPad.Web.Core.csproj : warning NU1603: Hangfire.Core 1.6.16 depends on Newtonsoft.Json (>= 5.0.0) but Newtonsoft.Json 5.0.0 was not found. An approximate best match of Newtonsoft.Json 5.0.1 was resolved.
6>Localization\LanguageAppService_Tests.cs(28,17,28,42): warning CS0162: Unreachable code detected
6>MultiTenantFactAttribute.cs(11,17,11,21): warning CS0162: Unreachable code detected
6>MultiTenantTheoryAttribute.cs(11,17,11,21): warning CS0162: Unreachable code detected
5>ScratchPad.Web.Core -> C:\Users\jdavis\Documents\_Dev\ScratchPadCore\4.5.1.0\src\ScratchPad.Web.Core\bin\Debug\net461\ScratchPad.Web.Core.dll
5>Done building project "ScratchPad.Web.Core.csproj".
8>------ Build started: Project: ScratchPad.Web.Mvc, Configuration: Debug Any CPU ------
9>------ Build started: Project: ScratchPad.Web.Host, Configuration: Debug Any CPU ------
10>------ Build started: Project: ScratchPad.Web.Public, Configuration: Debug Any CPU ------
7>ScratchPad.Migrator -> C:\Users\jdavis\Documents\_Dev\ScratchPadCore\4.5.1.0\src\ScratchPad.Migrator\bin\Debug\net461\ScratchPad.Migrator.exe
6>ScratchPad.Tests -> C:\Users\jdavis\Documents\_Dev\ScratchPadCore\4.5.1.0\test\ScratchPad.Tests\bin\Debug\net461\ScratchPad.Tests.dll
6>Done building project "ScratchPad.Tests.csproj".
9>C:\Users\jdavis\Documents\_Dev\ScratchPadCore\4.5.1.0\src\ScratchPad.Web.Host\ScratchPad.Web.Host.csproj : warning NU1603: Hangfire.Core 1.6.16 depends on Newtonsoft.Json (>= 5.0.0) but Newtonsoft.Json 5.0.0 was not found. An approximate best match of Newtonsoft.Json 5.0.1 was resolved.
8>C:\Users\jdavis\Documents\_Dev\ScratchPadCore\4.5.1.0\src\ScratchPad.Web.Mvc\ScratchPad.Web.Mvc.csproj : warning NU1603: Hangfire.Core 1.6.16 depends on Newtonsoft.Json (>= 5.0.0) but Newtonsoft.Json 5.0.0 was not found. An approximate best match of Newtonsoft.Json 5.0.1 was resolved.
8>Areas\App\Controllers\LanguagesController.cs(123,17,123,56): warning CS0618: 'CultureInfoHelper.Get(string)' is obsolete: 'Use CultureInfo.GetCultureInfo instead!'
8>Areas\App\Controllers\LanguagesController.cs(130,17,130,52): warning CS0618: 'CultureInfoHelper.Get(string)' is obsolete: 'Use CultureInfo.GetCultureInfo instead!'
8>ScratchPad.Web.Mvc -> C:\Users\jdavis\Documents\_Dev\ScratchPadCore\4.5.1.0\src\ScratchPad.Web.Mvc\bin\Debug\net461\ScratchPad.Web.Mvc.exe
8>Done building project "ScratchPad.Web.Mvc.csproj".
10>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1988,5): warning MSB3277: Found conflicts between different versions of the same dependent assembly that could not be resolved.  These reference conflicts are listed in the build log when log verbosity is set to detailed.
10>Controllers\AccountController.cs(6,11,6,21): error CS0234: The type or namespace name 'Extensions' does not exist in the namespace 'Abp' (are you missing an assembly reference?)
10>Controllers\AccountController.cs(7,11,7,18): error CS0234: The type or namespace name 'Runtime' does not exist in the namespace 'Abp' (are you missing an assembly reference?)
10>Controllers\AccountController.cs(8,11,8,17): error CS0234: The type or namespace name 'Timing' does not exist in the namespace 'Abp' (are you missing an assembly reference?)
10>Startup\FrontEndNavigationProvider.cs(1,11,1,22): error CS0234: The type or namespace name 'Application' does not exist in the namespace 'Abp' (are you missing an assembly reference?)
10>Startup\FrontEndNavigationProvider.cs(2,11,2,23): error CS0234: The type or namespace name 'Localization' does not exist in the namespace 'Abp' (are you missing an assembly reference?)
10>Startup\ScratchPadWebFrontEndModule.cs(1,11,1,24): error CS0234: The type or namespace name 'Configuration' does not exist in the namespace 'Abp' (are you missing an assembly reference?)
10>Startup\ScratchPadWebFrontEndModule.cs(2,11,2,18): error CS0234: The type or namespace name 'Modules' does not exist in the namespace 'Abp' (are you missing an assembly reference?)
10>Startup\ScratchPadWebFrontEndModule.cs(3,11,3,21): error CS0234: The type or namespace name 'Reflection' does not exist in the namespace 'Abp' (are you missing an assembly reference?)
10>Startup\Startup.cs(2,11,2,21): error CS0234: The type or namespace name 'AspNetCore' does not exist in the namespace 'Abp' (are you missing an assembly reference?)
10>Startup\Startup.cs(3,11,3,17): error CS0234: The type or namespace name 'Castle' does not exist in the namespace 'Abp' (are you missing an assembly reference?)
10>Startup\Startup.cs(4,7,4,13): error CS0246: The type or namespace name 'Castle' could not be found (are you missing a using directive or an assembly reference?)
10>Url\WebUrlService.cs(1,11,1,21): error CS0234: The type or namespace name 'Dependency' does not exist in the namespace 'Abp' (are you missing an assembly reference?)
10>Url\WebUrlService.cs(2,11,2,23): error CS0234: The type or namespace name 'MultiTenancy' does not exist in the namespace 'Abp' (are you missing an assembly reference?)
10>Views\ScratchPadRazorPage.cs(1,11,1,21): error CS0234: The type or namespace name 'AspNetCore' does not exist in the namespace 'Abp' (are you missing an assembly reference?)
10>Views\ScratchPadRazorPage.cs(2,11,2,18): error CS0234: The type or namespace name 'Runtime' does not exist in the namespace 'Abp' (are you missing an assembly reference?)
10>Views\ScratchPadRazorPage.cs(3,32,3,37): error CS0234: The type or namespace name 'Razor' does not exist in the namespace 'Microsoft.AspNetCore.Mvc' (are you missing an assembly reference?)
10>Views\ScratchPadViewComponent.cs(1,11,1,21): error CS0234: The type or namespace name 'AspNetCore' does not exist in the namespace 'Abp' (are you missing an assembly reference?)
10>Views\Shared\Components\Header\HeaderMenuItemViewModel.cs(1,11,1,22): error CS0234: The type or namespace name 'Application' does not exist in the namespace 'Abp' (are you missing an assembly reference?)
10>Views\Shared\Components\Header\HeaderViewComponent.cs(3,11,3,22): error CS0234: The type or namespace name 'Application' does not exist in the namespace 'Abp' (are you missing an assembly reference?)
10>Views\Shared\Components\Header\HeaderViewComponent.cs(4,11,4,24): error CS0234: The type or namespace name 'Configuration' does not exist in the namespace 'Abp' (are you missing an assembly reference?)
10>Views\Shared\Components\Header\HeaderViewComponent.cs(5,11,5,24): error CS0234: The type or namespace name 'Configuration' does not exist in the namespace 'Abp' (are you missing an assembly reference?)
10>Views\Shared\Components\Header\HeaderViewComponent.cs(6,11,6,21): error CS0234: The type or namespace name 'Extensions' does not exist in the namespace 'Abp' (are you missing an assembly reference?)
10>Views\Shared\Components\Header\HeaderViewComponent.cs(7,11,7,23): error CS0234: The type or namespace name 'Localization' does not exist in the namespace 'Abp' (are you missing an assembly reference?)
10>Views\Shared\Components\Header\HeaderViewComponent.cs(8,11,8,18): error CS0234: The type or namespace name 'Runtime' does not exist in the namespace 'Abp' (are you missing an assembly reference?)
10>Views\Shared\Components\Header\HeaderViewModel.cs(2,11,2,22): error CS0234: The type or namespace name 'Application' does not exist in the namespace 'Abp' (are you missing an assembly reference?)
10>Views\Shared\Components\Header\HeaderViewModel.cs(3,11,3,21): error CS0234: The type or namespace name 'Extensions' does not exist in the namespace 'Abp' (are you missing an assembly reference?)
10>Views\Shared\Components\Header\HeaderViewModel.cs(4,11,4,23): error CS0234: The type or namespace name 'Localization' does not exist in the namespace 'Abp' (are you missing an assembly reference?)
10>Url\WebUrlService.cs(9,69,9,89): error CS0246: The type or namespace name 'ITransientDependency' could not be found (are you missing a using directive or an assembly reference?)
10>Startup\FrontEndNavigationProvider.cs(11,47,11,65): error CS0246: The type or namespace name 'NavigationProvider' could not be found (are you missing a using directive or an assembly reference?)
10>Url\WebUrlService.cs(13,13,13,25): error CS0246: The type or namespace name 'ITenantCache' could not be found (are you missing a using directive or an assembly reference?)
10>Startup\ScratchPadWebFrontEndModule.cs(14,48,14,57): error CS0246: The type or namespace name 'AbpModule' could not be found (are you missing a using directive or an assembly reference?)
10>Startup\FrontEndNavigationProvider.cs(15,44,15,70): error CS0246: The type or namespace name 'INavigationProviderContext' could not be found (are you missing a using directive or an assembly reference?)
10>Startup\FrontEndNavigationProvider.cs(74,24,74,42): error CS0246: The type or namespace name 'ILocalizableString' could not be found (are you missing a using directive or an assembly reference?)
10>Startup\FrontEndNavigationProvider.cs(15,30,15,43): error CS0115: 'FrontEndNavigationProvider.SetNavigation(INavigationProviderContext)': no suitable method found to override
10>Controllers\AboutController.cs(6,36,6,60): error CS0012: The type 'AbpController' is defined in an assembly that is not referenced. You must add a reference to assembly 'Abp.AspNetCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null'.
10>Controllers\AccountController.cs(18,38,18,62): error CS0012: The type 'AbpController' is defined in an assembly that is not referenced. You must add a reference to assembly 'Abp.AspNetCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null'.
10>Controllers\AboutController.cs(8,16,8,28): error CS0012: The type 'AbpController' is defined in an assembly that is not referenced. You must add a reference to assembly 'Abp.AspNetCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null'.
10>Controllers\HomeController.cs(6,35,6,59): error CS0012: The type 'AbpController' is defined in an assembly that is not referenced. You must add a reference to assembly 'Abp.AspNetCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null'.
10>Controllers\HomeController.cs(8,16,8,28): error CS0012: The type 'AbpController' is defined in an assembly that is not referenced. You must add a reference to assembly 'Abp.AspNetCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null'.
10>Views\ScratchPadRazorPage.cs(7,57,7,77): error CS0246: The type or namespace name 'AbpRazorPage<>' could not be found (are you missing a using directive or an assembly reference?)
10>Startup\ScratchPadWebFrontEndModule.cs(11,6,11,15): error CS0246: The type or namespace name 'DependsOnAttribute' could not be found (are you missing a using directive or an assembly reference?)
10>Startup\ScratchPadWebFrontEndModule.cs(11,6,11,15): error CS0246: The type or namespace name 'DependsOn' could not be found (are you missing a using directive or an assembly reference?)
10>Views\ScratchPadViewComponent.cs(5,53,5,69): error CS0246: The type or namespace name 'AbpViewComponent' could not be found (are you missing a using directive or an assembly reference?)
10>Controllers\AccountController.cs(37,22,37,40): error CS0012: The type 'AbpController' is defined in an assembly that is not referenced. You must add a reference to assembly 'Abp.AspNetCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null'.
10>Controllers\AccountController.cs(37,27,37,39): error CS0012: The type 'AbpController' is defined in an assembly that is not referenced. You must add a reference to assembly 'Abp.AspNetCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null'.
10>Startup\ScratchPadWebFrontEndModule.cs(24,30,24,43): error CS0115: 'ScratchPadWebFrontEndModule.PreInitialize()': no suitable method found to override
10>Startup\ScratchPadWebFrontEndModule.cs(37,30,37,40): error CS0115: 'ScratchPadWebFrontEndModule.Initialize()': no suitable method found to override
10>Controllers\AccountController.cs(71,22,71,40): error CS0012: The type 'AbpController' is defined in an assembly that is not referenced. You must add a reference to assembly 'Abp.AspNetCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null'.
10>Controllers\AccountController.cs(71,27,71,39): error CS0012: The type 'AbpController' is defined in an assembly that is not referenced. You must add a reference to assembly 'Abp.AspNetCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null'.
10>Controllers\AccountController.cs(81,23,81,41): error CS0012: The type 'AbpController' is defined in an assembly that is not referenced. You must add a reference to assembly 'Abp.AspNetCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null'.
10>Controllers\AccountController.cs(81,28,81,40): error CS0012: The type 'AbpController' is defined in an assembly that is not referenced. You must add a reference to assembly 'Abp.AspNetCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null'.
10>Controllers\AccountController.cs(92,23,92,35): error CS0012: The type 'AbpController' is defined in an assembly that is not referenced. You must add a reference to assembly 'Abp.AspNetCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null'.
10>Views\Shared\Components\Header\HeaderMenuItemViewModel.cs(7,16,7,28): error CS0246: The type or namespace name 'UserMenuItem' could not be found (are you missing a using directive or an assembly reference?)
10>Views\ScratchPadRazorPage.cs(10,16,10,27): error CS0246: The type or namespace name 'IAbpSession' could not be found (are you missing a using directive or an assembly reference?)
10>Views\Shared\Components\Header\HeaderViewComponent.cs(20,26,20,48): error CS0246: The type or namespace name 'IUserNavigationManager' could not be found (are you missing a using directive or an assembly reference?)
10>Views\Shared\Components\Header\HeaderViewComponent.cs(21,26,21,45): error CS0246: The type or namespace name 'IMultiTenancyConfig' could not be found (are you missing a using directive or an assembly reference?)
10>Views\Shared\Components\Header\HeaderMenuItemViewModel.cs(13,40,13,52): error CS0246: The type or namespace name 'UserMenuItem' could not be found (are you missing a using directive or an assembly reference?)
10>Views\Shared\Components\Header\HeaderViewComponent.cs(22,26,22,37): error CS0246: The type or namespace name 'IAbpSession' could not be found (are you missing a using directive or an assembly reference?)
10>Views\Shared\Components\Header\HeaderViewComponent.cs(23,26,23,42): error CS0246: The type or namespace name 'ILanguageManager' could not be found (are you missing a using directive or an assembly reference?)
10>Views\Shared\Components\Header\HeaderViewModel.cs(13,30,13,42): error CS0246: The type or namespace name 'LanguageInfo' could not be found (are you missing a using directive or an assembly reference?)
10>Views\Shared\Components\Header\HeaderViewModel.cs(15,16,15,28): error CS0246: The type or namespace name 'LanguageInfo' could not be found (are you missing a using directive or an assembly reference?)
10>Views\Shared\Components\Header\HeaderViewComponent.cs(24,26,24,41): error CS0246: The type or namespace name 'ISettingManager' could not be found (are you missing a using directive or an assembly reference?)
10>Views\ScratchPadRazorPage.cs(9,10,9,21): error CS0246: The type or namespace name 'RazorInjectAttribute' could not be found (are you missing a using directive or an assembly reference?)
10>Views\ScratchPadRazorPage.cs(9,10,9,21): error CS0246: The type or namespace name 'RazorInject' could not be found (are you missing a using directive or an assembly reference?)
10>Views\Shared\Components\Header\HeaderViewModel.cs(17,16,17,24): error CS0246: The type or namespace name 'UserMenu' could not be found (are you missing a using directive or an assembly reference?)
10>Controllers\AccountController.cs(20,26,20,37): error CS0012: The type 'AbpController' is defined in an assembly that is not referenced. You must add a reference to assembly 'Abp.AspNetCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null'.
10>Controllers\AccountController.cs(21,26,21,39): error CS0012: The type 'AbpController' is defined in an assembly that is not referenced. You must add a reference to assembly 'Abp.AspNetCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null'.
10>Controllers\AccountController.cs(22,26,22,40): error CS0012: The type 'AbpController' is defined in an assembly that is not referenced. You must add a reference to assembly 'Abp.AspNetCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null'.
10>Controllers\AccountController.cs(23,26,23,39): error CS0012: The type 'AbpController' is defined in an assembly that is not referenced. You must add a reference to assembly 'Abp.AspNetCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null'.
10>Controllers\AccountController.cs(26,13,26,24): error CS0012: The type 'AbpController' is defined in an assembly that is not referenced. You must add a reference to assembly 'Abp.AspNetCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null'.
10>Controllers\AccountController.cs(27,13,27,26): error CS0012: The type 'AbpController' is defined in an assembly that is not referenced. You must add a reference to assembly 'Abp.AspNetCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null'.
10>Controllers\AccountController.cs(28,13,28,27): error CS0012: The type 'AbpController' is defined in an assembly that is not referenced. You must add a reference to assembly 'Abp.AspNetCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null'.
10>Controllers\AccountController.cs(29,13,29,26): error CS0012: The type 'AbpController' is defined in an assembly that is not referenced. You must add a reference to assembly 'Abp.AspNetCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null'.
10>Views\Shared\Components\Header\HeaderViewComponent.cs(30,13,30,35): error CS0246: The type or namespace name 'IUserNavigationManager' could not be found (are you missing a using directive or an assembly reference?)
10>Views\Shared\Components\Header\HeaderViewComponent.cs(31,13,31,32): error CS0246: The type or namespace name 'IMultiTenancyConfig' could not be found (are you missing a using directive or an assembly reference?)
10>Views\Shared\Components\Header\HeaderViewComponent.cs(32,13,32,24): error CS0246: The type or namespace name 'IAbpSession' could not be found (are you missing a using directive or an assembly reference?)
10>Views\Shared\Components\Header\HeaderViewComponent.cs(33,13,33,29): error CS0246: The type or namespace name 'ILanguageManager' could not be found (are you missing a using directive or an assembly reference?)
10>Views\Shared\Components\Header\HeaderViewComponent.cs(34,13,34,28): error CS0246: The type or namespace name 'ISettingManager' could not be found (are you missing a using directive or an assembly reference?)
10>Done building project "ScratchPad.Web.Public.csproj" -- FAILED.
9>ScratchPad.Web.Host -> C:\Users\jdavis\Documents\_Dev\ScratchPadCore\4.5.1.0\src\ScratchPad.Web.Host\bin\Debug\net461\ScratchPad.Web.Host.exe
9>Done building project "ScratchPad.Web.Host.csproj".
========== Build: 9 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Just downloaded the 4.5.1 version of aspnetzero ( Aspnet Core & Jquery 4.61 framework) and it will not build.

I am getting like 800 namespace issues and conflicting libs errors. I tried to update the packages and no good.

Suggestions?

Answer

Sorry it took me so long to get back..

I simply changed all IEmailSender to ISmtpEmailSender and changed the namespace from Abp.Net.Mail to Abp.Net.Mail.Smtp and all is well .

Thank you so much for the support. Its always in the details..

Question

I have updated my AspNetZero Template to the latest 4.3.1 MVC Core, Jquery, .Net 4.6.1

I am once again not able to send emails on this newer version. Previously I had this issue and I was able to resolve it by changing the UserEmailer.cs file in the Core project to implement ISMTPEmailSender instead of IEmaileSender.

Here is the link to my post on how I fixed it. #3353@c298aafa-2468-4ece-a07a-5bdd53d021f6

Here is the error:

ERROR 2017-08-18 11:21:07,043 [11   ] Mvc.ExceptionHandling.AbpExceptionFilter - The SMTP server does not support authentication.
System.NotSupportedException: The SMTP server does not support authentication.
   at MailKit.Net.Smtp.SmtpClient.Authenticate(Encoding encoding, ICredentials credentials, CancellationToken cancellationToken)
   at MailKit.MailService.Authenticate(String userName, String password, CancellationToken cancellationToken)
   at Abp.MailKit.DefaultMailKitSmtpBuilder.ConfigureClient(SmtpClient client)
   at Abp.MailKit.DefaultMailKitSmtpBuilder.Build()
   at Abp.MailKit.MailKitEmailSender.BuildSmtpClient()

So I removed all Credentials and now I am back to the UserName is Null..

ERROR 2017-08-18 11:25:16,012 [32   ] Mvc.ExceptionHandling.AbpExceptionFilter - Setting value for 'Abp.Net.Mail.Smtp.UserName' is null or empty!
Abp.AbpException: Setting value for 'Abp.Net.Mail.Smtp.UserName' is null or empty!
   at Abp.Net.Mail.EmailSenderConfiguration.GetNotEmptySettingValue(String name)
   at Abp.Net.Mail.Smtp.SmtpEmailSenderConfiguration.get_UserName()
   at Abp.MailKit.DefaultMailKitSmtpBuilder.ConfigureClient(SmtpClient client)
   at Abp.MailKit.DefaultMailKitSmtpBuilder.Build()

Is smtp server authentication required ??
Is there another implementation ?

this application is an internal app and will run on private servers with a notification server inside the firewall. there is no authentication configured and uses port 25.

I am pulling my hair out on this one.. Seems simple but has me held up badly..

Can you advise?

Welcome.. Love the project more and more each day..

To clean things up, and to help anyone else having this issue, I had to implement the ISmtpEmailSender in the UserMailer.cs class inside the Core project. Now the email system is working very nicely..

Here is the change....

/// <summary>
    /// Used to send email to users.
    /// </summary>
    public class UserEmailer : ScratchPadServiceBase, IUserEmailer, ITransientDependency
    {
        private readonly IEmailTemplateProvider _emailTemplateProvider;
        private readonly ISmtpEmailSender _emailSender;
        private readonly IRepository<Tenant> _tenantRepository;
        private readonly ICurrentUnitOfWorkProvider _unitOfWorkProvider;

        public UserEmailer(IEmailTemplateProvider emailTemplateProvider,
            ISmtpEmailSender emailSender,
            IRepository<Tenant> tenantRepository,
            ICurrentUnitOfWorkProvider unitOfWorkProvider)
        {
            _emailTemplateProvider = emailTemplateProvider;
            _emailSender = emailSender;
            _tenantRepository = tenantRepository;
            _unitOfWorkProvider = unitOfWorkProvider;
        }

Sorry it took so long again for me to get back to this.

I tried the sample code you recommended, and it returned null

var value = SettingsManager.GetSettingValue(EmailSettingNames.Smtp.UserName)

I finally got the email system to work however and here is how I did it..

I had to implement ISmtpEmailSender instead of IEmailSender in the SettingsAppServiceBase.

using System.Threading.Tasks;
using Abp.Net.Mail;
using wcb.ScratchPad.Configuration.Host.Dto;
using Abp.Net.Mail.Smtp;

namespace wcb.ScratchPad.Configuration
{
    public abstract class SettingsAppServiceBase : ScratchPadAppServiceBase
    {
       // private readonly IEmailSender _emailSender;
        private readonly ISmtpEmailSender _emailSender;

        protected SettingsAppServiceBase(           
            ISmtpEmailSender emailSender)
        {
            _emailSender = emailSender;
        }

        #region Send Test Email   
        public async Task SendTestEmail(SendTestEmailInput input)
        {
            await _emailSender.SendAsync(               
                input.EmailAddress,
                L("TestEmail_Subject"),
                L("TestEmail_Body")
            );
        }

        #endregion
    }
}

It seems that IEmailSender throws this exception no matter how many ways you populate the value.

AbpException: Setting value for 'Abp.Net.Mail.Smtp.UserName' is null or empty!
Abp.Net.Mail.EmailSenderConfiguration.GetNotEmptySettingValue(string name)

Not sure if this is considered and acceptable solution,but it has me moving forward for now. If it is not i will raise an issue on the git repo to start tracking it.

thanks for the support and general direction to get started debugging..

Sorry for the late response.. The values are getting populated correctly because the following code retrieves all the settings...

var output = await _tenantSettingsAppService.GetAllSettings();

Here is where I get stuck. Not sure where the value is getting dropped using the original Send Test Email Button..

$('#SendTestEmailButton').click(function () {
           _tenantSettingsService.sendTestEmail({
                emailAddress: $('#TestEmailAddressInput').val()
            }).done(function () {
                abp.notify.info(app.localize('TestEmailSentSuccessfully'));
            });
        });
Showing 51 to 60 of 69 entries