Post Question
beginer
beginer
48 Points
19 Posts
I'm using nlog for logging but I'm getting following error: Warn Missing IHttpContextAccessor. Has it been registered before loading NLog Configuration? Consider reloading NLog Configuration after having registered the IHttpContextAccessor. public Startup(IHostingEnvironment env) { env.Con ...
Total Answered: 0
Total Marked As Answer: 0
Posted On: 11-Jul-2018 02:28 
 
Stevan
Stevan
2 Points
1 Posts
I'm getting following error: "there is already an open datareader associated with this command which must be closed first" at System.Data.SqlClient.SqlInternalConnectionTds.ValidateConnectionForExecute(SqlCommand command) at System.Data.SqlClient.SqlConnection.ValidateConnectionForExecute ...
Total Answered: 2
Total Marked As Answer: 0
Posted On: 22-Jun-2018 03:21 
 
sam
sam
134 Points
62 Posts
I'm using hangfire in .netcore api project. Everything  working fine but dashboard not appearing on staging environment. In the local machine it's working fine.  On staging is showing "HTTP ERROR 401".
Total Answered: 2
Total Marked As Answer: 0
Posted On: 01-Jun-2018 00:40 
 
Smith
Smith
306 Points
98 Posts
I'm getting error on logout in the following line: var subjectId = HttpContext.User.Identity. GetSubjectId(); InvalidOperationException: sub claim is missing IdentityServer4.Extensions .PrincipalExtensions. GetSubjectId(IIdentity identity) IdentityServer.Controllers. Account.AccountController ...
Total Answered: 1
Total Marked As Answer: 0
Posted On: 21-May-2018 06:06 
 
Smith
Smith
306 Points
98 Posts
I'm using .NetCore 2.0 In the nlog.config <targets> <!-- write logs to file --> <target xsi:type="File" name="allfile" fileName= "${basedir}\temp\nlog-all-${shortdate}.log" layout="${longdate}| ${event-properties:item= EventId.Id}|${logger} |${uppercase:${level}} |${messag ...
Total Answered: 1
Total Marked As Answer: 1
Posted On: 10-Apr-2018 02:41 
 
andro
andro
10 Points
5 Posts
I'm using json.net ' JsonConvert' to deserialize a DateTimeOffset, but it is ignoring the specified timezone and converting the datetime to the local offset. For example, as var content = @"{""startDateTime"":""2018-07-19T14:30:00+09:30""}"; When deserialised using: var obj = JsonConvert.Deser ...
Total Answered: 1
Total Marked As Answer: 0
Posted On: 08-Apr-2018 00:35 
 

Blog

Active User (0)

No Active User!
 Log In to Chat