Click here to Skip to main content
15,563,053 members
Home / Discussions / ASP.NET
   

ASP.NET

 
PinnedHOW TO ANSWER A QUESTION PinPopular
Chris Maunder12-Jul-09 23:39
cofounderChris Maunder12-Jul-09 23:39 
Question(SOLVED) Having problem showing just a section of a page. Pin
samflex16-Jan-23 11:40
samflex16-Jan-23 11:40 
SuggestionRe: Having problem showing just a section of a page. Pin
Richard Deeming16-Jan-23 23:11
mveRichard Deeming16-Jan-23 23:11 
GeneralRe: Having problem showing just a section of a page. Pin
samflex17-Jan-23 7:21
samflex17-Jan-23 7:21 
QuestionASP.NET core web api Pin
tixzre28-Dec-22 8:15
tixzre28-Dec-22 8:15 
AnswerRe: ASP.NET core web api Pin
tixzre29-Dec-22 6:41
tixzre29-Dec-22 6:41 
GeneralRe: ASP.NET core web api Pin
Richard Deeming5-Jan-23 1:28
mveRichard Deeming5-Jan-23 1:28 
QuestionStore Rich Text in DATA Base Pin
CARBER25-Nov-22 23:05
CARBER25-Nov-22 23:05 
AnswerRe: Store Rich Text in DATA Base Pin
RedDk26-Nov-22 10:08
RedDk26-Nov-22 10:08 
GeneralRe: Store Rich Text in DATA Base Pin
CARBER26-Nov-22 12:03
CARBER26-Nov-22 12:03 
AnswerRe: Store Rich Text in DATA Base Pin
Sam Hobbs26-Nov-22 13:22
Sam Hobbs26-Nov-22 13:22 
QuestionSuggestion on searching thru jobs and resumes Pin
Michael Clinton21-Oct-22 10:44
Michael Clinton21-Oct-22 10:44 
AnswerRe: Suggestion on searching thru jobs and resumes Pin
Richard MacCutchan21-Oct-22 22:43
mveRichard MacCutchan21-Oct-22 22:43 
AnswerRe: Suggestion on searching thru jobs and resumes Pin
rareprob solutions31-Oct-22 23:54
rareprob solutions31-Oct-22 23:54 
AnswerRe: Suggestion on searching thru jobs and resumes Pin
jsc4226-Nov-22 5:59
professionaljsc4226-Nov-22 5: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 9:11
samflex19-Oct-22 9: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 13:26
mveDave Kreskowiak19-Oct-22 13: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 8:03
samflex20-Oct-22 8: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 22:56
professionalEddy Vluggen20-Oct-22 22:56 
QuestionHow to Add Add Microsoft Extensions Hosting Manually in .Net Project Pin
Member 1279932118-Oct-22 9:43
Member 1279932118-Oct-22 9:43 
SuggestionRe: How to Add Add Microsoft Extensions Hosting Manually in .Net Project Pin
Richard Deeming19-Oct-22 1:15
mveRichard Deeming19-Oct-22 1:15 
Question"The entry '*' has already been added." error in WebClient UploadString call Pin
Edwin Hon13-Oct-22 17:15
Edwin Hon13-Oct-22 17: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 3:55
mveRichard Deeming14-Oct-22 3:55 
QuestionBlazor, styling dynamic data Pin
Wiep Corbier7-Oct-22 18:39
Wiep Corbier7-Oct-22 18:39 
AnswerRe: Blazor, styling dynamic data Pin
Richard Deeming10-Oct-22 22:47
mveRichard Deeming10-Oct-22 22:47 

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.