Click here to Skip to main content
15,867,453 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Suggestion on searching thru jobs and resumes Pin
jsc4226-Nov-22 4:59
professionaljsc4226-Nov-22 4:59 
Question(SOLVED) Error: The string was not recognized as a valid DateTime. There is an unknown word starting at index 0. Pin
samflex19-Oct-22 8:11
samflex19-Oct-22 8:11 
AnswerRe: Error: The string was not recognized as a valid DateTime. There is an unknown word starting at index 0. Pin
Dave Kreskowiak19-Oct-22 12:26
mveDave Kreskowiak19-Oct-22 12:26 
GeneralRe: Error: The string was not recognized as a valid DateTime. There is an unknown word starting at index 0. Pin
samflex20-Oct-22 7:03
samflex20-Oct-22 7:03 
AnswerRe: (SOLVED) Error: The string was not recognized as a valid DateTime. There is an unknown word starting at index 0. Pin
Eddy Vluggen20-Oct-22 21:56
professionalEddy Vluggen20-Oct-22 21:56 
QuestionHow to Add Add Microsoft Extensions Hosting Manually in .Net Project Pin
Member 1279932118-Oct-22 8:43
Member 1279932118-Oct-22 8:43 
SuggestionRe: How to Add Add Microsoft Extensions Hosting Manually in .Net Project Pin
Richard Deeming19-Oct-22 0:15
mveRichard Deeming19-Oct-22 0:15 
Question"The entry '*' has already been added." error in WebClient UploadString call Pin
Edwin Hon13-Oct-22 16:15
Edwin Hon13-Oct-22 16:15 
I have a ASP .NET MVC project, inside controller, I call a simple WebAPI using WebClient

e.g.

WebClient client = new WebClient();
client.Headers.Add("cache-control", "no-cache");
client.Headers.Add("accept-encoding", "gzip, deflate");
client.Headers.Add("Content-Type", "application/x-www-form-urlencoded");
client.Headers.Add("Accept", "application/json");
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 when using HttpClient and RestClient.

WebConfig
"...
<connectionManagement>
	<add address="*" maxconnection="500"/>
</connectionManagement>
..."

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

e.g.
System.Net.ServicePointManager.DefaultConnectionLimit = 500;

AnswerRe: "The entry '*' has already been added." error in WebClient UploadString call Pin
Richard Deeming14-Oct-22 2:55
mveRichard Deeming14-Oct-22 2:55 
QuestionBlazor, styling dynamic data Pin
Wiep Corbier7-Oct-22 17:39
Wiep Corbier7-Oct-22 17:39 
AnswerRe: Blazor, styling dynamic data Pin
Richard Deeming10-Oct-22 21:47
mveRichard Deeming10-Oct-22 21:47 
GeneralRe: Blazor, styling dynamic data Pin
Wiep Corbier10-Oct-22 22:40
Wiep Corbier10-Oct-22 22:40 
SuggestionSort 2 Sheets and update on another Sheet with ole DB Pin
binumon kb4-Oct-22 11:30
binumon kb4-Oct-22 11:30 
GeneralRe: Sort 2 Sheets and update on another Sheet with ole DB Pin
Richard Deeming4-Oct-22 21:23
mveRichard Deeming4-Oct-22 21:23 
Questionwebforms, modal, updatepanel, repeater and linkbutton and opens another modal Pin
Michael Clinton28-Sep-22 15:48
Michael Clinton28-Sep-22 15:48 
AnswerRe: webforms, modal, updatepanel, repeater and linkbutton and opens another modal Pin
Richard Deeming28-Sep-22 22:09
mveRichard Deeming28-Sep-22 22:09 
QuestionChart1.Series Pin
ESTHETIQUE TUNISIE21-Sep-22 3:59
ESTHETIQUE TUNISIE21-Sep-22 3:59 
Questiondocument.activeElement.id not working in safari Pin
Member 1576922815-Sep-22 20:39
Member 1576922815-Sep-22 20:39 
GeneralRe: document.activeElement.id not working in safari Pin
Richard MacCutchan15-Sep-22 21:01
mveRichard MacCutchan15-Sep-22 21:01 
AnswerRe: document.activeElement.id not working in safari Pin
Raj Kumar7918-Oct-22 5:09
Raj Kumar7918-Oct-22 5:09 
QuestionAuto reply chatbot? Pin
Nitin S13-Sep-22 21:18
professionalNitin S13-Sep-22 21:18 
AnswerRe: Auto reply chatbot? Pin
Richard Deeming13-Sep-22 21:42
mveRichard Deeming13-Sep-22 21:42 
Questionvideo conference feature Pin
Member 117359128-Sep-22 19:45
Member 117359128-Sep-22 19:45 
AnswerRe: video conference feature Pin
Richard Deeming8-Sep-22 21:52
mveRichard Deeming8-Sep-22 21:52 
AnswerRe: video conference feature Pin
Nitin S13-Sep-22 22:16
professionalNitin S13-Sep-22 22:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.