Hi, I need little help with starting the web API because I am not familiar with web development. My goal is to set up REST API for just one endpoint and some webhook or something to receive callback POST notification. I need to send every day request to subscribe for next day and receive notifications from it.
I created new project c# ASP.NET Core Web App (NET 7) and installed Swashbuckle.AspNetCore package, build it and run. It loads the page locally with no problems but when I publish it and upload to my (paid) hosting server it show me 404 error. In my output I have webroot folder and app.dll app.exe and couple .js files but no index.js or index.php to show startup page, I think it must be something to start. How can I execute or start my app on web page? I created index.php or .html whith "hello world" and after upload it in root folder shows page instantly. Can anyone help me or guide me how to solve this?
i use ajax, HtmlEditorExtender to let users writing their own description
i store in database, and in my database i can see properly data store in table like this :
'🔸🖤 DANCE SQUARE 🖤🔸\n📝 LA TRILOGIE :\n3 dates à ne surtout pas manquer\n.\n🟧◾️ 29 Octobre - LA'
but when i read data by sql, in string variable, i lose all the specials characters like hearts in my example, all specials characters are replace by ?
what should i do to keep specials characters ? (correctly store in database.)
i read like this :
Currently I'm using c#, web forms and ms sql. I'm using ms sql as my search engine for searching for jobs and candidates. I ran across two issues. Recruiters need it to be simple and be able to search with regular basic boolean functions and sometimes they paste an entire job description and wonder why it takes for ever or crashes.. timeout.
What products should be looking at to fix my issues? This needs to be an in-house hosted option.
The products you are using should be fine. The issue is likely to be your implementation. If a recruiter can post a complete job description as a search entry then there is something wrong at the front end. Change the search box(es) so they are restricted to keywords, and maybe no more than six or seven.
You have to search for it according to the website so that you can find it without any hassle. The job depends on the web search you are doing according to you get the search. Whenever you search for any job online you have to search it with multiple keywords to get the relevant one for you.
Searching for keywords on Jobs / CVs (Resumes) can never lead to anything but grief. Ask any job applicant or recruiter who has been stung by keyword search systems.
If you are, say, looking for a job application that needs SQL and C#, how would you reject some sentence like "I have never used SQL and I hate C#" or distinguish the relative merits of an applicant who says "I have 20 years experience in C#" from one who says "I have not used C# but I would like to learn it".
I am migrating the .Net Project to .Net core 3.1 and there are loads of dependencies in the project so I cannot create a new .Net core application. How can I add Program.Cs file in my existing .Net api project?
I need this code in my existing .Net api project
I have a ASP .NET MVC project, inside controller, I call a simple WebAPI using WebClient
WebClient client = new WebClient();
client.Headers.Add("accept-encoding", "gzip, deflate");
client.Headers.Add("Authorization", "Basic xxxxxx");
var respond = client.UploadString(new Uri("https://xxxxxx/"), "POST", "xxxxxx");
there is an exception when call UploadString immediately with error
"The entry '*' has already been added."in webConfig.
If remove the line "<add address="*" maxconnection="500"/>"from webConfig, the
exception is gone. Same thing is also happen whenusing HttpClient and RestClient.
<add address="*" maxconnection="500"/>
Do anyone know why it happen? Why does WebClient attempt to add the entry to configuration
during runtime and cause the error?
BTW, I have fixed the problem by remove the line from WebConfig, and put it to program StartUp
System.Net.ServicePointManager.DefaultConnectionLimit = 500;