Invalid URI: The format of the URI could not be determined in asp.net core












1














I am using serilog and Seq in my Asp.net core program but I keep getting the above error. My Seq server is running though. Find below the configuration in the appsetting.json and startup.cs respectively.



Appsetting.json



"Serilog": {
"Destructure": [
{
"Name": "With",
"Args": { "policy": "Sample.CustomPolicy, Sample" }
},
{
"Name": "ToMaximumDepth",
"Args": { "maximumDestructuringDepth": 4 }
},
{
"Name": "ToMaximumStringLength",
"Args": { "maximumStringLength": 100 }
},
{
"Name": "ToMaximumCollectionCount",
"Args": { "maximumCollectionCount": 10 }
}
],
"Enrich": [ "FromLogContext", "WithMachineName", "WithThreadId" ],
"MinimumLevel": "Debug",
"Properties": {
"Application": "Sample"
},
"Using": [ "Serilog.Sinks.File", "Serilog.Sinks.Async", "Serilog.Sinks.Console", "Serilog.Sinks.Seq", "Serilog.Sinks.Graylog" ],
"WriteTo": [
{
"Name": "Console"

},
{
"Name": "File",
"Args": { "path": "Loggers/logs.txt" }
},
{
"Args": {
"serverUrl": "http://localhost:5341"

},
"Name": "Seq"
}
]
}


StartUp.cs



 services.AddLogging(loggingBuilder =>
{
loggingBuilder.AddSeq("Seq");
});









share|improve this question




















  • 1




    docs.getseq.net/docs/using-aspnet-core shows what you perhaps should have done rather than pass "Seq" as a parameter.
    – mjwills
    Nov 9 at 12:48












  • What do you want to achieve by passing Seq to loggingBuilder.AddSeq("Seq");?
    – Tao Zhou
    Nov 12 at 6:41
















1














I am using serilog and Seq in my Asp.net core program but I keep getting the above error. My Seq server is running though. Find below the configuration in the appsetting.json and startup.cs respectively.



Appsetting.json



"Serilog": {
"Destructure": [
{
"Name": "With",
"Args": { "policy": "Sample.CustomPolicy, Sample" }
},
{
"Name": "ToMaximumDepth",
"Args": { "maximumDestructuringDepth": 4 }
},
{
"Name": "ToMaximumStringLength",
"Args": { "maximumStringLength": 100 }
},
{
"Name": "ToMaximumCollectionCount",
"Args": { "maximumCollectionCount": 10 }
}
],
"Enrich": [ "FromLogContext", "WithMachineName", "WithThreadId" ],
"MinimumLevel": "Debug",
"Properties": {
"Application": "Sample"
},
"Using": [ "Serilog.Sinks.File", "Serilog.Sinks.Async", "Serilog.Sinks.Console", "Serilog.Sinks.Seq", "Serilog.Sinks.Graylog" ],
"WriteTo": [
{
"Name": "Console"

},
{
"Name": "File",
"Args": { "path": "Loggers/logs.txt" }
},
{
"Args": {
"serverUrl": "http://localhost:5341"

},
"Name": "Seq"
}
]
}


StartUp.cs



 services.AddLogging(loggingBuilder =>
{
loggingBuilder.AddSeq("Seq");
});









share|improve this question




















  • 1




    docs.getseq.net/docs/using-aspnet-core shows what you perhaps should have done rather than pass "Seq" as a parameter.
    – mjwills
    Nov 9 at 12:48












  • What do you want to achieve by passing Seq to loggingBuilder.AddSeq("Seq");?
    – Tao Zhou
    Nov 12 at 6:41














1












1








1







I am using serilog and Seq in my Asp.net core program but I keep getting the above error. My Seq server is running though. Find below the configuration in the appsetting.json and startup.cs respectively.



Appsetting.json



"Serilog": {
"Destructure": [
{
"Name": "With",
"Args": { "policy": "Sample.CustomPolicy, Sample" }
},
{
"Name": "ToMaximumDepth",
"Args": { "maximumDestructuringDepth": 4 }
},
{
"Name": "ToMaximumStringLength",
"Args": { "maximumStringLength": 100 }
},
{
"Name": "ToMaximumCollectionCount",
"Args": { "maximumCollectionCount": 10 }
}
],
"Enrich": [ "FromLogContext", "WithMachineName", "WithThreadId" ],
"MinimumLevel": "Debug",
"Properties": {
"Application": "Sample"
},
"Using": [ "Serilog.Sinks.File", "Serilog.Sinks.Async", "Serilog.Sinks.Console", "Serilog.Sinks.Seq", "Serilog.Sinks.Graylog" ],
"WriteTo": [
{
"Name": "Console"

},
{
"Name": "File",
"Args": { "path": "Loggers/logs.txt" }
},
{
"Args": {
"serverUrl": "http://localhost:5341"

},
"Name": "Seq"
}
]
}


StartUp.cs



 services.AddLogging(loggingBuilder =>
{
loggingBuilder.AddSeq("Seq");
});









share|improve this question















I am using serilog and Seq in my Asp.net core program but I keep getting the above error. My Seq server is running though. Find below the configuration in the appsetting.json and startup.cs respectively.



Appsetting.json



"Serilog": {
"Destructure": [
{
"Name": "With",
"Args": { "policy": "Sample.CustomPolicy, Sample" }
},
{
"Name": "ToMaximumDepth",
"Args": { "maximumDestructuringDepth": 4 }
},
{
"Name": "ToMaximumStringLength",
"Args": { "maximumStringLength": 100 }
},
{
"Name": "ToMaximumCollectionCount",
"Args": { "maximumCollectionCount": 10 }
}
],
"Enrich": [ "FromLogContext", "WithMachineName", "WithThreadId" ],
"MinimumLevel": "Debug",
"Properties": {
"Application": "Sample"
},
"Using": [ "Serilog.Sinks.File", "Serilog.Sinks.Async", "Serilog.Sinks.Console", "Serilog.Sinks.Seq", "Serilog.Sinks.Graylog" ],
"WriteTo": [
{
"Name": "Console"

},
{
"Name": "File",
"Args": { "path": "Loggers/logs.txt" }
},
{
"Args": {
"serverUrl": "http://localhost:5341"

},
"Name": "Seq"
}
]
}


StartUp.cs



 services.AddLogging(loggingBuilder =>
{
loggingBuilder.AddSeq("Seq");
});






c# asp.net-core






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 9 at 12:49









Foo

1




1










asked Nov 9 at 12:45









DMT

103




103








  • 1




    docs.getseq.net/docs/using-aspnet-core shows what you perhaps should have done rather than pass "Seq" as a parameter.
    – mjwills
    Nov 9 at 12:48












  • What do you want to achieve by passing Seq to loggingBuilder.AddSeq("Seq");?
    – Tao Zhou
    Nov 12 at 6:41














  • 1




    docs.getseq.net/docs/using-aspnet-core shows what you perhaps should have done rather than pass "Seq" as a parameter.
    – mjwills
    Nov 9 at 12:48












  • What do you want to achieve by passing Seq to loggingBuilder.AddSeq("Seq");?
    – Tao Zhou
    Nov 12 at 6:41








1




1




docs.getseq.net/docs/using-aspnet-core shows what you perhaps should have done rather than pass "Seq" as a parameter.
– mjwills
Nov 9 at 12:48






docs.getseq.net/docs/using-aspnet-core shows what you perhaps should have done rather than pass "Seq" as a parameter.
– mjwills
Nov 9 at 12:48














What do you want to achieve by passing Seq to loggingBuilder.AddSeq("Seq");?
– Tao Zhou
Nov 12 at 6:41




What do you want to achieve by passing Seq to loggingBuilder.AddSeq("Seq");?
– Tao Zhou
Nov 12 at 6:41












1 Answer
1






active

oldest

votes


















2














For loggingBuilder.AddSeq("Seq");, you need to pass url instead of Seq.



    //
// Summary:
// Extends Microsoft.Extensions.Logging.ILoggerFactory with methods for configuring
// Seq logging.
public static class SeqLoggerExtensions
{
//
// Summary:
// Adds a Seq logger configured from the supplied configuration section.
//
// Parameters:
// loggerFactory:
// The logger factory.
//
// configuration:
// A configuration section with details of the Seq server connection.
//
// Returns:
// A logger factory to allow further configuration.
public static ILoggerFactory AddSeq(this ILoggerFactory loggerFactory, IConfigurationSection configuration);
//
// Summary:
// Adds a Seq logger.
//
// Parameters:
// loggerFactory:
// The logger factory.
//
// serverUrl:
// The Seq server URL; the default is http://localhost:5341.
//
// apiKey:
// A Seq API key to authenticate or tag messages from the logger.
//
// minimumLevel:
// The level below which events will be suppressed (the default is Microsoft.Extensions.Logging.LogLevel.Information).
//
// levelOverrides:
// A dictionary mapping logger name prefixes to minimum logging levels.
//
// Returns:
// A logger factory to allow further configuration.
public static ILoggerFactory AddSeq(this ILoggerFactory loggerFactory, string serverUrl = "http://localhost:5341", string apiKey = null, LogLevel minimumLevel = LogLevel.Information, IDictionary<string, LogLevel> levelOverrides = null);
//
// Summary:
// Adds a Seq logger.
//
// Parameters:
// loggingBuilder:
// The logging builder.
//
// serverUrl:
// The Seq server URL; the default is http://localhost:5341.
//
// apiKey:
// A Seq API key to authenticate or tag messages from the logger.
//
// Returns:
// A logging builder to allow further configuration.
public static ILoggingBuilder AddSeq(this ILoggingBuilder loggingBuilder, string serverUrl = "http://localhost:5341", string apiKey = null);
//
// Summary:
// Adds a Seq logger configured from the supplied configuration section.
//
// Parameters:
// loggingBuilder:
// The logging builder.
//
// configuration:
// A configuration section with details of the Seq server connection.
//
// Returns:
// A logging builder to allow further configuration.
public static ILoggingBuilder AddSeq(this ILoggingBuilder loggingBuilder, IConfigurationSection configuration);
}


If you want to passing the configuration from appsettings.json, define the appsettings.json like



    "Seq": {
"ServerUrl": "http://localhost:5341",
"ApiKey": "1234567890",
"MinimumLevel": "Trace",
"LevelOverride": {
"Microsoft": "Warning"
}
}


And using like loggingBuilder.AddSeq(Configuration.GetSection("Seq"));.



If you need to combine serilog and Seq, refer Using Serilog.



Log.Logger = new LoggerConfiguration()
.WriteTo.Console()
.WriteTo.Seq("http://localhost:5341")
.CreateLogger();





share|improve this answer





















    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53225966%2finvalid-uri-the-format-of-the-uri-could-not-be-determined-in-asp-net-core%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    For loggingBuilder.AddSeq("Seq");, you need to pass url instead of Seq.



        //
    // Summary:
    // Extends Microsoft.Extensions.Logging.ILoggerFactory with methods for configuring
    // Seq logging.
    public static class SeqLoggerExtensions
    {
    //
    // Summary:
    // Adds a Seq logger configured from the supplied configuration section.
    //
    // Parameters:
    // loggerFactory:
    // The logger factory.
    //
    // configuration:
    // A configuration section with details of the Seq server connection.
    //
    // Returns:
    // A logger factory to allow further configuration.
    public static ILoggerFactory AddSeq(this ILoggerFactory loggerFactory, IConfigurationSection configuration);
    //
    // Summary:
    // Adds a Seq logger.
    //
    // Parameters:
    // loggerFactory:
    // The logger factory.
    //
    // serverUrl:
    // The Seq server URL; the default is http://localhost:5341.
    //
    // apiKey:
    // A Seq API key to authenticate or tag messages from the logger.
    //
    // minimumLevel:
    // The level below which events will be suppressed (the default is Microsoft.Extensions.Logging.LogLevel.Information).
    //
    // levelOverrides:
    // A dictionary mapping logger name prefixes to minimum logging levels.
    //
    // Returns:
    // A logger factory to allow further configuration.
    public static ILoggerFactory AddSeq(this ILoggerFactory loggerFactory, string serverUrl = "http://localhost:5341", string apiKey = null, LogLevel minimumLevel = LogLevel.Information, IDictionary<string, LogLevel> levelOverrides = null);
    //
    // Summary:
    // Adds a Seq logger.
    //
    // Parameters:
    // loggingBuilder:
    // The logging builder.
    //
    // serverUrl:
    // The Seq server URL; the default is http://localhost:5341.
    //
    // apiKey:
    // A Seq API key to authenticate or tag messages from the logger.
    //
    // Returns:
    // A logging builder to allow further configuration.
    public static ILoggingBuilder AddSeq(this ILoggingBuilder loggingBuilder, string serverUrl = "http://localhost:5341", string apiKey = null);
    //
    // Summary:
    // Adds a Seq logger configured from the supplied configuration section.
    //
    // Parameters:
    // loggingBuilder:
    // The logging builder.
    //
    // configuration:
    // A configuration section with details of the Seq server connection.
    //
    // Returns:
    // A logging builder to allow further configuration.
    public static ILoggingBuilder AddSeq(this ILoggingBuilder loggingBuilder, IConfigurationSection configuration);
    }


    If you want to passing the configuration from appsettings.json, define the appsettings.json like



        "Seq": {
    "ServerUrl": "http://localhost:5341",
    "ApiKey": "1234567890",
    "MinimumLevel": "Trace",
    "LevelOverride": {
    "Microsoft": "Warning"
    }
    }


    And using like loggingBuilder.AddSeq(Configuration.GetSection("Seq"));.



    If you need to combine serilog and Seq, refer Using Serilog.



    Log.Logger = new LoggerConfiguration()
    .WriteTo.Console()
    .WriteTo.Seq("http://localhost:5341")
    .CreateLogger();





    share|improve this answer


























      2














      For loggingBuilder.AddSeq("Seq");, you need to pass url instead of Seq.



          //
      // Summary:
      // Extends Microsoft.Extensions.Logging.ILoggerFactory with methods for configuring
      // Seq logging.
      public static class SeqLoggerExtensions
      {
      //
      // Summary:
      // Adds a Seq logger configured from the supplied configuration section.
      //
      // Parameters:
      // loggerFactory:
      // The logger factory.
      //
      // configuration:
      // A configuration section with details of the Seq server connection.
      //
      // Returns:
      // A logger factory to allow further configuration.
      public static ILoggerFactory AddSeq(this ILoggerFactory loggerFactory, IConfigurationSection configuration);
      //
      // Summary:
      // Adds a Seq logger.
      //
      // Parameters:
      // loggerFactory:
      // The logger factory.
      //
      // serverUrl:
      // The Seq server URL; the default is http://localhost:5341.
      //
      // apiKey:
      // A Seq API key to authenticate or tag messages from the logger.
      //
      // minimumLevel:
      // The level below which events will be suppressed (the default is Microsoft.Extensions.Logging.LogLevel.Information).
      //
      // levelOverrides:
      // A dictionary mapping logger name prefixes to minimum logging levels.
      //
      // Returns:
      // A logger factory to allow further configuration.
      public static ILoggerFactory AddSeq(this ILoggerFactory loggerFactory, string serverUrl = "http://localhost:5341", string apiKey = null, LogLevel minimumLevel = LogLevel.Information, IDictionary<string, LogLevel> levelOverrides = null);
      //
      // Summary:
      // Adds a Seq logger.
      //
      // Parameters:
      // loggingBuilder:
      // The logging builder.
      //
      // serverUrl:
      // The Seq server URL; the default is http://localhost:5341.
      //
      // apiKey:
      // A Seq API key to authenticate or tag messages from the logger.
      //
      // Returns:
      // A logging builder to allow further configuration.
      public static ILoggingBuilder AddSeq(this ILoggingBuilder loggingBuilder, string serverUrl = "http://localhost:5341", string apiKey = null);
      //
      // Summary:
      // Adds a Seq logger configured from the supplied configuration section.
      //
      // Parameters:
      // loggingBuilder:
      // The logging builder.
      //
      // configuration:
      // A configuration section with details of the Seq server connection.
      //
      // Returns:
      // A logging builder to allow further configuration.
      public static ILoggingBuilder AddSeq(this ILoggingBuilder loggingBuilder, IConfigurationSection configuration);
      }


      If you want to passing the configuration from appsettings.json, define the appsettings.json like



          "Seq": {
      "ServerUrl": "http://localhost:5341",
      "ApiKey": "1234567890",
      "MinimumLevel": "Trace",
      "LevelOverride": {
      "Microsoft": "Warning"
      }
      }


      And using like loggingBuilder.AddSeq(Configuration.GetSection("Seq"));.



      If you need to combine serilog and Seq, refer Using Serilog.



      Log.Logger = new LoggerConfiguration()
      .WriteTo.Console()
      .WriteTo.Seq("http://localhost:5341")
      .CreateLogger();





      share|improve this answer
























        2












        2








        2






        For loggingBuilder.AddSeq("Seq");, you need to pass url instead of Seq.



            //
        // Summary:
        // Extends Microsoft.Extensions.Logging.ILoggerFactory with methods for configuring
        // Seq logging.
        public static class SeqLoggerExtensions
        {
        //
        // Summary:
        // Adds a Seq logger configured from the supplied configuration section.
        //
        // Parameters:
        // loggerFactory:
        // The logger factory.
        //
        // configuration:
        // A configuration section with details of the Seq server connection.
        //
        // Returns:
        // A logger factory to allow further configuration.
        public static ILoggerFactory AddSeq(this ILoggerFactory loggerFactory, IConfigurationSection configuration);
        //
        // Summary:
        // Adds a Seq logger.
        //
        // Parameters:
        // loggerFactory:
        // The logger factory.
        //
        // serverUrl:
        // The Seq server URL; the default is http://localhost:5341.
        //
        // apiKey:
        // A Seq API key to authenticate or tag messages from the logger.
        //
        // minimumLevel:
        // The level below which events will be suppressed (the default is Microsoft.Extensions.Logging.LogLevel.Information).
        //
        // levelOverrides:
        // A dictionary mapping logger name prefixes to minimum logging levels.
        //
        // Returns:
        // A logger factory to allow further configuration.
        public static ILoggerFactory AddSeq(this ILoggerFactory loggerFactory, string serverUrl = "http://localhost:5341", string apiKey = null, LogLevel minimumLevel = LogLevel.Information, IDictionary<string, LogLevel> levelOverrides = null);
        //
        // Summary:
        // Adds a Seq logger.
        //
        // Parameters:
        // loggingBuilder:
        // The logging builder.
        //
        // serverUrl:
        // The Seq server URL; the default is http://localhost:5341.
        //
        // apiKey:
        // A Seq API key to authenticate or tag messages from the logger.
        //
        // Returns:
        // A logging builder to allow further configuration.
        public static ILoggingBuilder AddSeq(this ILoggingBuilder loggingBuilder, string serverUrl = "http://localhost:5341", string apiKey = null);
        //
        // Summary:
        // Adds a Seq logger configured from the supplied configuration section.
        //
        // Parameters:
        // loggingBuilder:
        // The logging builder.
        //
        // configuration:
        // A configuration section with details of the Seq server connection.
        //
        // Returns:
        // A logging builder to allow further configuration.
        public static ILoggingBuilder AddSeq(this ILoggingBuilder loggingBuilder, IConfigurationSection configuration);
        }


        If you want to passing the configuration from appsettings.json, define the appsettings.json like



            "Seq": {
        "ServerUrl": "http://localhost:5341",
        "ApiKey": "1234567890",
        "MinimumLevel": "Trace",
        "LevelOverride": {
        "Microsoft": "Warning"
        }
        }


        And using like loggingBuilder.AddSeq(Configuration.GetSection("Seq"));.



        If you need to combine serilog and Seq, refer Using Serilog.



        Log.Logger = new LoggerConfiguration()
        .WriteTo.Console()
        .WriteTo.Seq("http://localhost:5341")
        .CreateLogger();





        share|improve this answer












        For loggingBuilder.AddSeq("Seq");, you need to pass url instead of Seq.



            //
        // Summary:
        // Extends Microsoft.Extensions.Logging.ILoggerFactory with methods for configuring
        // Seq logging.
        public static class SeqLoggerExtensions
        {
        //
        // Summary:
        // Adds a Seq logger configured from the supplied configuration section.
        //
        // Parameters:
        // loggerFactory:
        // The logger factory.
        //
        // configuration:
        // A configuration section with details of the Seq server connection.
        //
        // Returns:
        // A logger factory to allow further configuration.
        public static ILoggerFactory AddSeq(this ILoggerFactory loggerFactory, IConfigurationSection configuration);
        //
        // Summary:
        // Adds a Seq logger.
        //
        // Parameters:
        // loggerFactory:
        // The logger factory.
        //
        // serverUrl:
        // The Seq server URL; the default is http://localhost:5341.
        //
        // apiKey:
        // A Seq API key to authenticate or tag messages from the logger.
        //
        // minimumLevel:
        // The level below which events will be suppressed (the default is Microsoft.Extensions.Logging.LogLevel.Information).
        //
        // levelOverrides:
        // A dictionary mapping logger name prefixes to minimum logging levels.
        //
        // Returns:
        // A logger factory to allow further configuration.
        public static ILoggerFactory AddSeq(this ILoggerFactory loggerFactory, string serverUrl = "http://localhost:5341", string apiKey = null, LogLevel minimumLevel = LogLevel.Information, IDictionary<string, LogLevel> levelOverrides = null);
        //
        // Summary:
        // Adds a Seq logger.
        //
        // Parameters:
        // loggingBuilder:
        // The logging builder.
        //
        // serverUrl:
        // The Seq server URL; the default is http://localhost:5341.
        //
        // apiKey:
        // A Seq API key to authenticate or tag messages from the logger.
        //
        // Returns:
        // A logging builder to allow further configuration.
        public static ILoggingBuilder AddSeq(this ILoggingBuilder loggingBuilder, string serverUrl = "http://localhost:5341", string apiKey = null);
        //
        // Summary:
        // Adds a Seq logger configured from the supplied configuration section.
        //
        // Parameters:
        // loggingBuilder:
        // The logging builder.
        //
        // configuration:
        // A configuration section with details of the Seq server connection.
        //
        // Returns:
        // A logging builder to allow further configuration.
        public static ILoggingBuilder AddSeq(this ILoggingBuilder loggingBuilder, IConfigurationSection configuration);
        }


        If you want to passing the configuration from appsettings.json, define the appsettings.json like



            "Seq": {
        "ServerUrl": "http://localhost:5341",
        "ApiKey": "1234567890",
        "MinimumLevel": "Trace",
        "LevelOverride": {
        "Microsoft": "Warning"
        }
        }


        And using like loggingBuilder.AddSeq(Configuration.GetSection("Seq"));.



        If you need to combine serilog and Seq, refer Using Serilog.



        Log.Logger = new LoggerConfiguration()
        .WriteTo.Console()
        .WriteTo.Seq("http://localhost:5341")
        .CreateLogger();






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 12 at 6:47









        Tao Zhou

        4,77621128




        4,77621128






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53225966%2finvalid-uri-the-format-of-the-uri-could-not-be-determined-in-asp-net-core%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Florida Star v. B. J. F.

            Danny Elfman

            Retrieve a Users Dashboard in Tumblr with R and TumblR. Oauth Issues