My bad.
It looks like I needed to restart IIS or at least recycle the app pool and start/stop the website.
It's working now.
Thanks,
Greetings Programs!
The same issue was brought up in #6460 and the situtation was resolved by adding missing values but I kept everything in the setting files and am still getting the same error:
System.ArgumentNullException: Value cannot be null. Parameter name: value at System.Boolean.Parse(String value) at Wizgod.Web.Startup.Startup.ConfigureServices(IServiceCollection services) in Wizgod\aspnet-core\src\Wizgod.Web.Host\Startup\Startup.cs:line 134 --- 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.Initialize() --- End of stack trace from previous location where exception was thrown --- at Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()
My appSettings.json and appSettings.production.json are the same and I believe they have everything in them.
What am I missing?
Thanks,
Wg
appSettings.json and appSettings.production.json:
{ "ConnectionStrings": { "Default": "..." }, "AbpZeroLicenseCode": "...", "Abp": { "RedisCache": { "ConnectionString": "localhost", "DatabaseId": -1 } }, "App": { "ServerRootAddress": "https://company.com/service/", "ClientRootAddress": "https://company.com/", "CorsOrigins": "http://company.com,https://company.com", "SwaggerEndPoint": "/swagger/v1/swagger.json", "AllowAnonymousSignalRConnection": "true" }, "Authentication": { "Facebook": { "IsEnabled": "false", "AppId": "", "AppSecret": "" }, "Google": { "IsEnabled": "false", "ClientId": "", "ClientSecret": "", "UserInfoEndpoint": "https://www.googleapis.com/oauth2/v2/userinfo" }, "Microsoft": { "IsEnabled": "false", "ConsumerKey": "", "ConsumerSecret": "" }, "OpenId": { "IsEnabled": "false", "ClientId": "", "Authority": "", "LoginUrl": "", "ValidateIssuer": "false", "ClaimsMapping": [ { "claim": "unique_name", "key": "preferred_username" } ] }, "WsFederation": { "IsEnabled": "false", "Authority": "", "ClientId": "", "Tenant": "", "MetaDataAddress": "" }, "JwtBearer": { "IsEnabled": "true", "SecurityKey": "...", "Issuer": "Wizgod", "Audience": "Wizgod" } }, "Twilio": { "AccountSid": "", "AuthToken": "", "SenderNumber": "" }, "Recaptcha": { "SiteKey": "", "SecretKey": "" }, "IdentityServer": { "IsEnabled": "false", "Authority": "https://company.com/service/", "ApiName": "default-api", "ApiSecret": "secret", "Clients": [ { "ClientId": "client", "AllowedGrantTypes": [ "password" ], "ClientSecrets": [ { "Value": "..." } ], "AllowedScopes": [ "default-api" ] }, { "ClientId": "demo", "ClientName": "MVC Client Demo", "AllowedGrantTypes": [ "hybrid", "client_credentials" ], "RequireConsent": "true", "ClientSecrets": [ { "Value": "..." } ], "RedirectUris": [ "http://openidclientdemo.com:8001/signin-oidc" ], "PostLogoutRedirectUris": [ "http://openidclientdemo.com:8001/signout-callback-oidc" ], "AllowedScopes": [ "openid", "profile", "default-api" ], "AllowOfflineAccess": "true" } ] }, "Payment": { "PayPal": { "IsActive": "true", "Environment": "sandbox", "BaseUrl": "https://api.sandbox.paypal.com/v1", "ClientId": "", "ClientSecret": "", "DemoUsername": "", "DemoPassword": "" }, "Stripe": { "IsActive": "true", "BaseUrl": "https://api.stripe.com/v1", "SecretKey": "", "PublishableKey": "", "WebhookSecret": "" } }, "HealthChecks": { "HealthChecksEnabled": false, "HealthChecksUI": { "HealthChecksUIEnabled": false, "HealthChecks": [ { "Name": "Wizgod.Web.Host", "Uri": "https://localhost/service/healthz" } ], "EvaluationTimeOnSeconds": 10, "MinimumSecondsBetweenFailureNotifications": 60 } } }
Hi @ismcagdas!
So glad it's not supposed to do that; this means it's something to do with my setup.
I checked the log and it had a bunch of hangfire timeout errors, some invalid token errors and the following error;
INFO 2019-07-24 19:48:03,573 [4 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 DEBUG http://localhost:22742/ 0
INFO 2019-07-24 19:48:03,573 [8 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://localhost:22742/
ERROR 2019-07-24 19:48:03,952 [8 ] Microsoft.AspNetCore.Server.Kestrel - Connection id "0HLOGK8GPONP5", Request id "0HLOGK8GPONP5:00000001": An unhandled exception was thrown by the application.
System.ArgumentNullException: Value cannot be null.
Parameter name: values
at System.String.Join(String separator, IEnumerable1 values) at Microsoft.Extensions.RazorViews.BaseView.EndWriteAttribute() at Microsoft.AspNetCore.Hosting.Views.ErrorPage.ExecuteAsync() at Microsoft.Extensions.RazorViews.BaseView.ExecuteAsync(HttpContext context) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication
1 application)
I don't want to fight with it so I've grabbed the latest version and will start from it.
Thanks,
Wg
Greetings Programs!
I am using Angular+Core and when I run Web.Host, Visual Studio opens up the http://localhost:22742 page just fine but then immediately exits from debugging.
The localhost:22742 site is still running in IIS Express and I can run the angular site no problem but I cannot debug the Core application.
I have googled for core applications exiting upon debugging and tried a number suggested solutions but none have worked.
Has anyone experienced this and/or have a solution?
Thanks,
Wg
Hi alper,
Accepted.
Thank you,
Wg
Hi alper,
It's: wizgod
Thanks,
Wg
Hi ismcagdas,
That link isn't working.
Also, is there anywhere in the code I can add changes myself?
Thanks,
Wg
Greetings Programs!
The bell notification icon doesn't show any badge or visual change that lets the user know there are new notifications; the user has to click the icon to see if there are any.
Is there any way to add a badge or change the icon/color when there are new notifications?
Thanks,
Wg
I was able to ignore using the web.config file by adding "useHash: true" in root-routing.module.ts:
@NgModule({ imports: [RouterModule.forRoot(routes, { useHash: true })], exports: [RouterModule], providers: [] })
Greetings Programs!
We are using SSL and when using the web.config in the Angular+Core application, we get an Internal Server Error alert pop up and the debug console shows: Failed to load resource: the server responded with a status of 403 (Forbidden)
I cannot seem to find specific rewrite rules or web.config that will work with the angular application.
Does anyone have a working web.config for HTTPS that they can provide?
Thanks,
Wg