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 ==========
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..
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'));
});
});
I moved it to a private repo and added you
<a class="postlink" href="https://github.com/joedavis01/scratchPad">https://github.com/joedavis01/scratchPad</a>
No I havent installed resharper on my vs 2017 installation yet. The only extensions i am using at the moment are the ones recommended in the Pre Requisites seciton of the development guide here [https://aspnetzero.com/Documents/Development-Guide-Core#pre-requirements])
You can disregard this issue. I am really new to this architecture and I was missing some syntax. Feel really stupid for the simple mistake however love the project and have learned a lot..