8 Questions

Stevan
Stevan
12 Points
6 Posts
how to convert 24 hours string format to 12 hours format in c#? For examle: "20:30" to "8:30 pm" "09:30" to "9:30 am"
Total Answered: 2
Total Marked As Answer: 1
Posted On: 07-Aug-2018 04:08 
 
kikme
kikme
8 Points
4 Posts
I'm using amazon AWSSDK.SimpleEmail email service to send email. I want to set the name as well as email address in the from email address. var message = new Message(subject, body); var request = new SendEmailRequest(emailModel.From, to, message); var client = GenerateClient(); var result = awa ...
Total Answered: 1
Total Marked As Answer: 0
Posted On: 06-Aug-2018 00:18 
 
beginer
beginer
50 Points
20 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: 1
Total Marked As Answer: 0
Posted On: 11-Jul-2018 02:28 
 
Stevan
Stevan
12 Points
6 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: 1
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
Participant
346 Points
103 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
Participant
346 Points
103 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
14 Points
7 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 
 
banner

Blog

Active User (2)

 Log In to Chat