Base solution for your next web application

Activities of "ismcagdas"

Hi,

We are planning to do this in version 1.0.0, please follow <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/issues/1021">https://github.com/aspnetboilerplate/as ... ssues/1021</a>

Hi,

I didn't make it work either, byt you can try to do another approach,

Define a custom data protector,

public class MachineKeyProtector : IDataProtector
{
    private readonly string[] _purpose =
    {
        typeof(OAuthAuthorizationServerMiddleware).Namespace,
        "Access_Token",
        "v1"
    };

    public byte[] Protect(byte[] userData)
    {
        return System.Web.Security.MachineKey.Protect(userData, _purpose);
    }

    public byte[] Unprotect(byte[] protectedData)
    {
        return System.Web.Security.MachineKey.Unprotect(protectedData, _purpose);
    }
}

Then use it like this,

TicketDataFormat = new TicketDataFormat(new MachineKeyProtector()),

Can you also share your CookieAuthenticationOptions definition ?

Thanks,

Hi,

You need to depend on WebApi module because your AppServices called via dynamic web api controllers. If you have a different situtation, can you explain that ?

And, do you still have the problem.

Hi,

Can you share your code which causes this exception ? And where do you use that code ? In test project or your web/windows project ?

Hi,

You can change it like this at OnModelCreating of your DbContext.

modelBuilder.Entity<Setting>().Property(p => p.Value).HasMaxLength(4000);

Duplicate of #1346

Hi,

I coludn't understand the situation very well but you can try custom repositories <a class="postlink" href="http://www.aspnetboilerplate.com/Pages/Documents/EntityFramework-Integration#DocCustomRepositoryMethods">http://www.aspnetboilerplate.com/Pages/ ... oryMethods</a>.

If you can explain with real entities, I can think about it again.

Hi,

It seems like you are trying to use an existing database for your new tenant ? Is that correct ?

Thank you for sharing your solution.

All the errors should be logged to Logs.txt under Logs folder of your solution normally. But, I couldn't understand why it didn't write logs. Can you explain your case a little bit more, so we can try the same case.

Showing 12571 to 12580 of 12775 entries