15,796,507 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Python questions
View PHP questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 15418280 (Top 12 by date)
Member 15418280
17-Nov-23 0:28am
View
IN background we have now only string not array how can we pass 2 common.js and eventpage.js
Member 15418280
26-Oct-23 5:18am
View
How can we upload multiple files from that folder location
Member 15418280
26-May-23 5:14am
View
this is our controller
[Route("api/[controller]")]
[ApiController]
public class TestController : ControllerBase
{
[Authorize]
[HttpPost]
public string Post() => "The action works fine only with a certificate";
}
public void ConfigureServices(IServiceCollection services)
{
services.AddControllers();
services.AddTransient<certificatevalidation>();
services.AddAuthentication(CertificateAuthenticationDefaults.AuthenticationScheme).AddCertificate(options => {
options.AllowedCertificateTypes = CertificateTypes.SelfSigned;
options.Events = new CertificateAuthenticationEvents
{
OnCertificateValidated = context => {
var validationService = context.HttpContext.RequestServices.GetService<certificatevalidation>();
if (validationService.ValidateCertificate(context.ClientCertificate))
{
context.Success();
}
else
{
context.Fail("Invalid certificate");
}
return Task.CompletedTask;
},
OnAuthenticationFailed = context => {
context.Fail("Invalid certificate");
return Task.CompletedTask;
}
};
});
services.AddSwaggerGen(c =>
{
c.SwaggerDoc("v1", new OpenApiInfo { Title = "WebApiCertificateAuth", Version = "v1" });
});
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Threading.Tasks;
namespace WebApiCertificateAuth
{
public class CertificateValidation
{
public bool ValidateCertificate(X509Certificate2 clientCertificate)
{
string[] allowedThumbprints = { "310084D83EC974AEE7FC0B0D5175E11CA5E8DE6D" };
if (allowedThumbprints.Contains(clientCertificate.Thumbprint))
{
return true;
}
return false;
}
}
}
Member 15418280
25-May-23 2:54am
View
we need only to check whether any file is password or not.
Member 15418280
14-May-23 10:33am
View
Need to use in mvc application for rdp purpose
Member 15418280
8-May-23 4:53am
View
I want to do rdp from c# application normally inbuild remote desktop we are using but i want to do rdp through c# code
Member 15418280
3-May-23 1:58am
View
Can you please provide any sample program for that
Member 15418280
17-Jan-23 5:07am
View
Now we are getting below logs when we are clicking elasticsearch.bat file.
[2023-01-17T15:22:08,404][WARN ][o.e.c.c.Coordinator ] [node-1] This node is a fully-formed single-node cluster with cluster UUID [RDQafVKZRXiwbpZQiZEiUQ], but it is configured as if to discover other nodes and form a multi-node cluster via the [discovery.seed_hosts=[CVMP6543]] setting. Fully-formed clusters do not attempt to discover other nodes, and nodes with different cluster UUIDs cannot belong to the same cluster. The cluster UUID persists across restarts and can only be changed by deleting the contents of the node's data path(s). Remove the discovery configuration to suppress this message.
[2023-01-17T15:22:38,420][WARN ][o.e.c.c.Coordinator ] [node-1] This node is a fully-formed single-node cluster with cluster UUID [RDQafVKZRXiwbpZQiZEiUQ], but it is configured as if to discover other nodes and form a multi-node cluster via the [discovery.seed_hosts=[CVMP6543]] setting. Fully-formed clusters do not attempt to discover other nodes, and nodes with different cluster UUIDs cannot belong to the same cluster. The cluster UUID persists across restarts and can only be changed by deleting the contents of the node's data path(s). Remove the discovery configuration to suppress this message.
[2023-01-17T15:23:08,435][WARN ][o.e.c.c.Coordinator ] [node-1] This node is a fully-formed single-node cluster with cluster UUID [RDQafVKZRXiwbpZQiZEiUQ], but it is configured as if to discover other nodes and form a multi-node cluster via the [discovery.seed_hosts=[CVMP6543]] setting. Fully-formed clusters do not attempt to discover other nodes, and nodes with different cluster UUIDs cannot belong to the same cluster. The cluster UUID persists across restarts and can only be changed by deleting the contents of the node's data path(s). Remove the discovery configuration to suppress this message.
[2023-01-17T15:23:38,451][WARN ][o.e.c.c.Coordinator ] [node-1] This node is a fully-formed single-node cluster with cluster UUID [RDQafVKZRXiwbpZQiZEiUQ], but it is configured as if to discover other nodes and form a multi-node cluster via the [discovery.seed_hosts=[CVMP6543]] setting. Fully-formed clusters do not attempt to discover other nodes, and nodes with different cluster UUIDs cannot belong to the same cluster. The cluster UUID persists across restarts and can only be changed by deleting the contents of the node's data path(s). Remove the discovery configuration to suppress this message.
[2023-01-17T15:24:08,453][WARN ][o.e.c.c.Coordinator ] [node-1] This node is a fully-formed single-node cluster with cluster UUID [RDQafVKZRXiwbpZQiZEiUQ], but it is configured as if to discover other nodes and form a multi-node cluster via the [discovery.seed_hosts=[CVMP6543]] setting. Fully-formed clusters do not attempt to discover other nodes, and nodes with different cluster UUIDs cannot belong to the same cluster. The cluster UUID persists across restarts and can only be changed by deleting the contents of the node's data path(s). Remove the discovery configuration to suppress this message.
Member 15418280
4-Jan-23 5:36am
View
we are trying to openurl throughb rpa bot we have openurl activity.
that working fine for chrome browser but when we are using IEWITHEDGE driver that time
Bot which runs well when screen is unlocked but failed when it locked.
Member 15418280
29-Sep-22 5:47am
View
I changed host name 127.0.0.1 but still getting same error
Member 15418280
8-Jul-22 0:18am
View
We are using task scheduler to trigger event in a specific time and it is calling one api method which host in iis at the time of creation task scheduler we are sending userid and password but every month password is going to be change due to this task scheduler is not working. How can we fix this issue without entering new password?
Member 15418280
8-Jul-22 0:18am
View
We are using task scheduler to trigger event in a specific time and it is calling one api method which host in iis at the time of creation task scheduler we are sending userid and password but every month password is going to be change due to this task scheduler is not working. How can we fix this issue without entering new password?
Show More