I got it to work, thanks for your help!
back trying to get logging to work. This is what I have:
//Log4Net configuration
AbpBootstrapper.IocManager.IocContainer
.AddFacility<LoggingFacility>(f => f.UseLog4Net()
.WithConfig("log4net.config")
);
and log4net.config is:
<?xml version="1.0" encoding="utf-8" ?>
<log4net>
<appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender" >
<file value="App_Data/Logs/Logs.txt" />
<encoding value="utf-8" />
<appendToFile value="true" />
<rollingStyle value="Size" />
<maxSizeRollBackups value="10" />
<maximumFileSize value="10000KB" />
<staticLogFileName value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%-5level %date [%-5.5thread] %-40.40logger - %message%newline" />
</layout>
</appender>
<root>
<appender-ref ref="RollingFileAppender" />
<level value="DEBUG" />
</root>
</log4net>
I can add logging in the code like this:
Logger.Info("test ");
without it throwing errors, but no Log.txt is generated.
if it wouldnt have rights to write the file, should it throw errors?
now the error again after trying to reload main url
can anybody point me to the mechanism behind this? Can this be handled? because the end user will be using F5
nevermind, now it loads again... havent changed a thing though...
perfect, that worked.
just another stupid question, what Url do I need to use for the end user UI? is it <a class="postlink" href="http:///app/main">http:///app/main</a> if I try that, I get an error:
/AbpUserConfiguration/GetAll net::ERR_CONNECTION_TIMED_OUT
update: now I get this error on every link/page...
I would like to implement this solution, but can you please elaborate how to do this?
Am I correct to add this: var onlineClients = _onlineClientManager.GetAllByUserId(new UserIdentifier(TenantId, UserId));
into the AccountController method: public virtual async Task<JsonResult> Login(LoginViewModel loginModel, string returnUrl = "", string returnUrlHash = "")
and how do you "send a signalr message to other clients to log them out and keep last tried user as logged in"?
this link doesnt work
using MVC & jQuery, downloaded in august 2016, so a lot has been changed. abp.js was changed, so to be sure, I copied & overwrite the whole ABP folder on production.
I have found some suggestions about clearing the cookies, but this shouldnt be needed, because its still the same domain, and I dont want my visitors to do that before they can login. <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/issues/2049">https://github.com/aspnetboilerplate/as ... ssues/2049</a>
ok, I updated the complete folder "Abp", so the right updated .js files are used.
but when I try to login now, I get this error:
Request URL:.../Account/Login?returnUrl=
Request Method:POST
Status Code:400 Empty or invalid anti forgery header token.
what else am I missing?
Request header has this at the end:
X-Requested-With:XMLHttpRequest
X-XSRF-TOKEN:null
should it be Null or does it need to contain a value?
never mind, found it here <a class="postlink" href="https://github.com/aspnetboilerplate/module-zero/releases/tag/v0.11.2.0">https://github.com/aspnetboilerplate/mo ... /v0.11.2.0</a>