Click here to Skip to main content
15,882,329 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Suggestion on searching thru jobs and resumes Pin
Richard MacCutchan21-Oct-22 21:43
mveRichard MacCutchan21-Oct-22 21:43 
AnswerRe: Suggestion on searching thru jobs and resumes Pin
rareprob solutions31-Oct-22 22:54
rareprob solutions31-Oct-22 22:54 
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 
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


C#
<pre>public class Program
    {
        public static void Main(string[] args)
        {
            CreateHostBuilder(args).Build().Run();
        }

        public static IHostBuilder CreateHostBuilder(string[] args) =>
            Host.CreateDefaultBuilder(args)
                .ConfigureWebHostDefaults(webBuilder =>
                {
                    webBuilder.UseStartup<Startup>();
                })
                .UseSerilog((hostingContext, loggerConfiguration) =>
                {
                    var connectionString = hostingContext.Configuration.GetSection("Serilog:WriteTo:0:Args:connectionString");
                    connectionString.Value = connectionString.Value;
                    loggerConfiguration.ReadFrom.Configuration(hostingContext.Configuration);
                });
    }

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 
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 

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.