欢迎访问张朋的技术分享社区
当前位置: 首页 > 技术分享  > NET.Core

Application startup exception: System.FormatException: Could not parse the JSON file.

2019/4/12 13:54:41 人评论

Application startup exception: System.FormatException: Could not parse the JSON file. Error on line number 69: "Host": "http://172.18.61.148:802, //客户端服务器域名或IP"SignOutUrl": "http://172.18.61.148:802/Account/SSOLo…

Application startup exception: System.FormatException: Could not parse the JSON file. Error on line number '69': '"Host": "http://172.18.61.148:802, //客户端服务器域名或IP

"SignOutUrl": "http://172.18.61.148:802/Account/SSOLogout", //客户端登出请求地址'. ---> Newtonsoft.Json.JsonReaderException: After parsing a value an unexpected character was encountered: S. Path 'ClientApp.Apps[4].Host', line 69, position 9.

   at Newtonsoft.Json.JsonTextReader.ParsePostValue(Boolean ignoreComments)

   at Newtonsoft.Json.JsonTextReader.Read()

   at Newtonsoft.Json.Linq.JContainer.ReadContentFrom(JsonReader r, JsonLoadSettings settings)

   at Newtonsoft.Json.Linq.JContainer.ReadTokenFrom(JsonReader reader, JsonLoadSettings options)

   at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings)

   at Microsoft.Extensions.Configuration.Json.JsonConfigurationFileParser.Parse(Stream input)

   at Microsoft.Extensions.Configuration.Json.JsonConfigurationProvider.Load(Stream stream)

   --- End of inner exception stack trace ---

   at Microsoft.Extensions.Configuration.FileConfigurationProvider.Load(Boolean reload)

   at Microsoft.Extensions.Configuration.ConfigurationRoot..ctor(IList`1 providers)

   at Microsoft.Extensions.Configuration.ConfigurationBuilder.Build()

   at FengYun.SSO.Core.AppConfigurations.BuildConfiguration(String path, String configName, String environmentName)

   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)

   at FengYun.SSO.Core.AppConfigurations.GetConfig(String path, String configName, String environmentName)

   at FengYun.SSO.Server.Startup.Startup.ConfigureServices(IServiceCollection services)

--- End of stack trace from previous location where exception was thrown ---

   at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)

   at Microsoft.AspNetCore.Hosting.Internal.WebHost.EnsureApplicationServices()

   at Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()

Hosting environment: Production

Content root path: C:\websites\sso-server

Now listening on: http://localhost:27662

Application started. Press Ctrl+C to shut down.

Application is shutting down...


解决办法:删除此处的配置文件内容,先保存再添加


附件下载

相关技术

    暂无相关的数据...

共有条评论 网友评论

验证码: 看不清楚?