Base solution for your next web application

Activities of "maddey234"

Question

Hello,

I keep getting an error when I try to send mails with an application I built from v 1.12.2.0. I have tried different email accounts to test this functionality and get different errors. I am currently trying to use my gmail account to test the email functionality of the application and this is the error I am getting below. I have pasted the first part of the log here:

ERROR 2017-01-01 23:25:06,111 [5 ] nHandling.AbpApiExceptionFilterAttribute - Syntax error, command unrecognized. The server response was: System.Net.Mail.SmtpException: Syntax error, command unrecognized. The server response was: at System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.End(IAsyncResult result) at System.Net.Mail.SmtpTransport.EndGetConnection(IAsyncResult result) at System.Net.Mail.SmtpClient.ConnectCallback(IAsyncResult result) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Abp.Net.Mail.Smtp.SmtpEmailSender.<SendEmailAsync>d__3.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Net\Mail\Smtp\SmtpEmailSender.cs:line 71

When I try to use my own domain in the email settings, I keep getting an error that the "Sending Address not accepted due to SPAM filter". What should I do?

Hello, I downloaded the ASP.Net Core and JQuery template and tried to follow the Getting Started document but I keep getting the following error. I have attached the error message I keep getting. Please help me.

Hello,

I built an application with ABP v 1.12 and never had any issues when I was hosting/testing on my system. Immediately I hosted the application on Azure websites, I started getting these errors that just pop up and magically disappear as they please. The error messages are the same:

"An error has occurred. Error details not sent by the server"

Inspecting the error in the console log, the errors that are shot are:

  • Bad request:
  • Empty or invalid anti forgery header token

The funny thing is I don't need to do anything for the error to go away. I could try the action again and the error message could pop up again or the action goes without the error.

So what is wrong? Please help me?

Question

Hi,

I have been getting some funny errors ever since I downloaded the ASPNetZero v 1.12. I always get looking for source file error. One of them I have posted below:

Locating source for 'D:\Halil\GitHub\aspnetboilerplate\src\Abp\Runtime\Validation\Interception\ValidationInterceptor.cs'. Checksum: SHA1 {6f 4f 48 6d b3 72 1a 42 fe b6 ce 5b 12 71 1e 18 92 ef cc 9} The file 'D:\Halil\GitHub\aspnetboilerplate\src\Abp\Runtime\Validation\Interception\ValidationInterceptor.cs' does not exist. Looking in script documents for 'D:\Halil\GitHub\aspnetboilerplate\src\Abp\Runtime\Validation\Interception\ValidationInterceptor.cs'...

Do I need to download the package again?

I also get the same error with Castle Interceptor

Please help me

Hello,

I keep getting this error when I try to upload a document when I upgraded to version 1.12.

(Empty or invalid anti forgery header token.)

What do I need to add to my code to stop getting this error.

Thanks

I added a mapping to the CustomDtoMapper class and started getting the error below: Failed to Emit module:'xxxx.Application'

A sample of the mapping I added to the CustomDtoMapping class was:

Mapper.CreateMap<CreateLoanRequestInput, LoanRequest>()
         .ForMember(dest => dest.RepaymentCycle, opts => opts.MapFrom(src => (RepaymentCycle)src.RepaymentCycle))
         .ForMember(dest => dest.LoanApplicationStatus, opts => opts.UseValue(LoanApplicationStatus.Pending ))
         .ForMember(dest => dest.DisbursementType, opts => opts.MapFrom(src => (DisbursementType)src.DisbursementType));

Please help me.

Question

Hello,

I am trying to fetch a list of accounts from an accounts table and I keep getting the error that "The operation cannot be completed because the DbContext has been disposed."

I have followed exactly the example in this article"http://aspnetzero.com/Documents/Developing-Step-By-Step-MPA"

This is where I get the error:

public class PersonAppService : PhoneBookAppServiceBase, IPersonAppService
{
    private readonly IRepository<Person> _personRepository;

    public PersonAppService(IRepository<Person> personRepository)
    {
        _personRepository = personRepository;
    }

    public ListResultOutput<PersonListDto> GetPeople(GetPeopleInput input)
    {
        var persons = _personRepository
            .GetAll()
            .WhereIf(
                !input.Filter.IsNullOrEmpty(),
                p => p.Name.Contains(input.Filter) ||
                        p.Surname.Contains(input.Filter) ||
                        p.EmailAddress.Contains(input.Filter)
            )
            .OrderBy(p => p.Name)
            .ThenBy(p => p.Surname)
            .ToList();

        return new ListResultOutput<PersonListDto>(persons.MapTo<List<PersonListDto>>());
    }
}

while mine is like this:

public class AccountAppService : MyCooperatifAppServiceBase, IAccountAppService
    {

        private readonly IRepository<Account> _accountRepository;

        public AccountAppService(IRepository<Account> accountRepository)
        {
            _accountRepository = accountRepository ;
        }


        public ListResultOutput<AccountListDto> GetAccounts(GetAccountsInput input)
        {
                    
            var accounts =  _accountRepository
                .GetAll()
                .WhereIf(
               !string.IsNullOrWhiteSpace(input.Filter),
                    a => a.Name.Contains(input.Filter) 
                )
                .OrderBy(a => a.Id)
                .ThenBy(a => a.Name)
                .ToList();

            return new ListResultOutput<AccountListDto>(accounts.MapTo<List<AccountListDto>>());
        }
    }
}

My AccountListDto does not contain any foregin keys whatsoever, so I don't know why I keep getting that error. Please help

Hello All,

I just downloaded a template (i.e. Multi-page web application + entity framework + module zero) from the website but when I perform the initial build, I get 110 errors and one of them includes that "The type or namespace name 'Abp' not found (are you missing a directive or a an assembly reference?)".

What do I do to clear the exceptions, I have downloaded all the references and missing assembly?

Hello team.

I just downloaded the asp net plus module zero start up application for my own project. I have added my additional properties into the user class which inherited from abpuser but my primary key is a string not a long. Please how do I override the primary key?

Showing 1 to 9 of 9 entries