Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Internal Server Error #2701


User avatar
0
ultimatemm created

Hi All;

I have been cloned from <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core">https://github.com/aspnetzero/aspnet-zero-core</a> now. Then I type npm install and npm start in VS Code and run for Client side , it is all ok. Server side also show me Swagger UI api. But when i put localhost:4200 on url and run it, show me

  1. Internal Server Error
  2. Browse Console-> Failed to load resource: the server responded with a status of 404 (Not Found)
  3. Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Please, help me

Thanks and Best Regards ALL AKL


5 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Can you share the request url for this error ?

    Browse Console-> Failed to load resource: the server responded with a status of 404 (Not Found)

    Also you can check host project's log files to see if there is an exception.

    Thanks.

  • User Avatar
    0
    ultimatemm created

    Here.....

    DEBUG 2017-03-16 15:21:28,627 [libuv] Microsoft.AspNetCore.Server.Kestrel - Connection id "0HL3C95ME3CLO" received FIN. DEBUG 2017-03-16 15:21:28,627 [libuv] Microsoft.AspNetCore.Server.Kestrel - Connection id "0HL3C95ME3CLP" received FIN. DEBUG 2017-03-16 15:21:28,627 [libuv] Microsoft.AspNetCore.Server.Kestrel - Connection id "0HL3C95ME3CLN" received FIN. DEBUG 2017-03-16 15:21:28,627 [libuv] Microsoft.AspNetCore.Server.Kestrel - Connection id "0HL3C95ME3CLS" received FIN. DEBUG 2017-03-16 15:21:28,627 [libuv] Microsoft.AspNetCore.Server.Kestrel - Connection id "0HL3C95ME3CLR" received FIN. DEBUG 2017-03-16 15:21:28,627 [libuv] Microsoft.AspNetCore.Server.Kestrel - Connection id "0HL3C95ME3CLQ" received FIN. DEBUG 2017-03-16 15:21:28,627 [16 ] Microsoft.AspNetCore.Server.Kestrel - Connection id "0HL3C95ME3CLO" disconnecting. DEBUG 2017-03-16 15:21:28,627 [6 ] Microsoft.AspNetCore.Server.Kestrel - Connection id "0HL3C95ME3CLQ" disconnecting. DEBUG 2017-03-16 15:21:28,628 [3 ] Microsoft.AspNetCore.Server.Kestrel - Connection id "0HL3C95ME3CLS" disconnecting. DEBUG 2017-03-16 15:21:28,628 [18 ] Microsoft.AspNetCore.Server.Kestrel - Connection id "0HL3C95ME3CLR" disconnecting. DEBUG 2017-03-16 15:21:28,628 [libuv] Microsoft.AspNetCore.Server.Kestrel - Connection id "0HL3C95ME3CLO" sending FIN. DEBUG 2017-03-16 15:21:28,628 [libuv] Microsoft.AspNetCore.Server.Kestrel - Connection id "0HL3C95ME3CLR" sending FIN. DEBUG 2017-03-16 15:21:28,628 [20 ] Microsoft.AspNetCore.Server.Kestrel - Connection id "0HL3C95ME3CLN" disconnecting. DEBUG 2017-03-16 15:21:28,628 [17 ] Microsoft.AspNetCore.Server.Kestrel - Connection id "0HL3C95ME3CLP" disconnecting. DEBUG 2017-03-16 15:21:28,628 [libuv] Microsoft.AspNetCore.Server.Kestrel - Connection id "0HL3C95ME3CLP" sending FIN. DEBUG 2017-03-16 15:21:28,628 [libuv] Microsoft.AspNetCore.Server.Kestrel - Connection id "0HL3C95ME3CLQ" sending FIN. DEBUG 2017-03-16 15:21:28,629 [libuv] Microsoft.AspNetCore.Server.Kestrel - Connection id "0HL3C95ME3CLN" sending FIN. DEBUG 2017-03-16 15:21:28,629 [libuv] Microsoft.AspNetCore.Server.Kestrel - Connection id "0HL3C95ME3CLS" sending FIN. DEBUG 2017-03-16 15:21:28,631 [libuv] Microsoft.AspNetCore.Server.Kestrel - Connection id "0HL3C95ME3CLQ" sent FIN with status "0". DEBUG 2017-03-16 15:21:28,631 [libuv] Microsoft.AspNetCore.Server.Kestrel - Connection id "0HL3C95ME3CLP" sent FIN with status "0". DEBUG 2017-03-16 15:21:28,631 [libuv] Microsoft.AspNetCore.Server.Kestrel - Connection id "0HL3C95ME3CLN" sent FIN with status "0". DEBUG 2017-03-16 15:21:28,631 [libuv] Microsoft.AspNetCore.Server.Kestrel - Connection id "0HL3C95ME3CLS" sent FIN with status "0". DEBUG 2017-03-16 15:21:28,632 [libuv] Microsoft.AspNetCore.Server.Kestrel - Connection id "0HL3C95ME3CLQ" stopped. DEBUG 2017-03-16 15:21:28,632 [libuv] Microsoft.AspNetCore.Server.Kestrel - Connection id "0HL3C95ME3CLS" stopped. DEBUG 2017-03-16 15:21:28,632 [libuv] Microsoft.AspNetCore.Server.Kestrel - Connection id "0HL3C95ME3CLO" sent FIN with status "0". DEBUG 2017-03-16 15:21:28,632 [libuv] Microsoft.AspNetCore.Server.Kestrel - Connection id "0HL3C95ME3CLN" stopped. DEBUG 2017-03-16 15:21:28,633 [libuv] Microsoft.AspNetCore.Server.Kestrel - Connection id "0HL3C95ME3CLO" stopped. DEBUG 2017-03-16 15:21:28,633 [libuv] Microsoft.AspNetCore.Server.Kestrel - Connection id "0HL3C95ME3CLR" sent FIN with status "0". DEBUG 2017-03-16 15:21:28,633 [libuv] Microsoft.AspNetCore.Server.Kestrel - Connection id "0HL3C95ME3CLR" stopped. DEBUG 2017-03-16 15:21:28,632 [libuv] Microsoft.AspNetCore.Server.Kestrel - Connection id "0HL3C95ME3CLP" stopped. DEBUG 2017-03-16 15:21:28,633 [libuv] Microsoft.AspNetCore.Server.Kestrel - Connection id "0HL3C95ME3CLT" started. INFO 2017-03-16 15:21:28,635 [20 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 OPTIONS <a class="postlink" href="http://localhost:22742/AbpUserConfiguration/GetAll">http://localhost:22742/AbpUserConfiguration/GetAll</a>
    DEBUG 2017-03-16 15:21:28,647 [20 ] Microsoft.AspNetCore.Server.Kestrel - Connection id "0HL3C95ME3CLT" completed keep alive response. INFO 2017-03-16 15:21:28,647 [20 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 12.4298ms 204 INFO 2017-03-16 15:21:28,652 [3 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET <a class="postlink" href="http://localhost:22742/AbpUserConfiguration/GetAll">http://localhost:22742/AbpUserConfiguration/GetAll</a> application/json INFO 2017-03-16 15:21:28,656 [3 ] entication.JwtBearer.JwtBearerMiddleware - Bearer was not authenticated. Failure message: No SecurityTokenValidator available for token: null DEBUG 2017-03-16 15:21:28,657 [3 ] NetCore.StaticFiles.StaticFileMiddleware - The request path /AbpUserConfiguration/GetAll does not match a supported file type DEBUG 2017-03-16 15:21:28,657 [3 ] Microsoft.AspNetCore.Routing.RouteBase - Request successfully matched the route with name 'defaultWithArea' and template '{area}/{controller=Home}/{action=Index}/{id?}'. DEBUG 2017-03-16 15:21:28,657 [3 ] .AspNetCore.Mvc.Internal.MvcRouteHandler - No actions matched the current request DEBUG 2017-03-16 15:21:28,657 [3 ] Microsoft.AspNetCore.Routing.RouteBase - Request successfully matched the route with name 'default' and template '{controller=Home}/{action=Index}/{id?}'. DEBUG 2017-03-16 15:21:28,661 [3 ] ore.Mvc.Internal.ControllerActionInvoker - Executing action Abp.AspNetCore.Mvc.Controllers.AbpUserConfigurationController.GetAll (Abp.AspNetCore) WARN 2017-03-16 15:21:28,670 [3 ] Abp.MultiTenancy.TenantResolver - System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource) at Abp.AspNetCore.MultiTenancy.DomainTenantResolveContributor.ResolveTenantId() at Abp.MultiTenancy.TenantResolver.GetTenantIdFromContributors() System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource) at Abp.AspNetCore.MultiTenancy.DomainTenantResolveContributor.ResolveTenantId() at Abp.MultiTenancy.TenantResolver.GetTenantIdFromContributors() INFO 2017-03-16 15:21:28,671 [3 ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method Abp.AspNetCore.Mvc.Controllers.AbpUserConfigurationController.GetAll (Abp.AspNetCore) with arguments ((null)) - ModelState is Valid ERROR 2017-03-16 15:21:28,725 [16 ] Mvc.ExceptionHandling.AbpExceptionFilter - No language defined! System.ApplicationException: No language defined! at Abp.Localization.MultiTenantLocalizationDictionaryProvider.GetDefaultDictionary() at Abp.Localization.MultiTenantLocalizationDictionaryProvider.get_DefaultDictionary() at Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource.GetAllStrings(CultureInfo culture, Boolean includeDefaults) at Abp.Web.Configuration.AbpUserConfigurationBuilder.GetUserLocalizationConfig() at Abp.Web.Configuration.AbpUserConfigurationBuilder.<GetAll>d__13.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Abp.AspNetCore.Mvc.Controllers.AbpUserConfigurationController.<GetAll>d__2.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNetCore.Mvc.Internal.ObjectMethodExecutor.<CastToObject>d__40`1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.

    Thanks

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Can you also share web site address configurations both for Host project and angular client side project ? The problem is related to finding tenant from subdomain I think.

  • User Avatar
    0
    ultimatemm created

    Thanks reply....

    Web.Host.. { "ConnectionStrings": { "Default": "Server=DESKTOP-VLV4U5Q\SQL2014; Database=abd; uid=sa;password=sa;Trusted_Connection=True;" }, "Abp": { "RedisCache": { "ConnectionString": "localhost", "DatabaseId": -1 } }, "App": { "WebSiteRootAddress": "http://localhost:4200/", "CorsOrigins": "http://localhost:4200" }, "Authentication": { "Facebook": { "IsEnabled": "false", "AppId": "", "AppSecret": "" }, "Google": { "IsEnabled": "false", "ClientId": "", "ClientSecret": "" }, "Microsoft": { "IsEnabled": "false", "ConsumerKey": "", "ConsumerSecret": "" }, "JwtBearer": { "IsEnabled": "true", "SecurityKey": "AbpZeroTemplate_8CFB2EC534E14D56", "Issuer": "AbpZeroTemplate", "Audience": "AbpZeroTemplate" } }, "Recaptcha": { "SiteKey": "6LfD-wUTAAAAACULAVXvL61K0w02RIsjhI8EyiS-", "SecretKey": "6LfD-wUTAAAAADm3h7vomd9FtaAlAwexki29BtXC" } }

    Client "name": "abp-zero-template", "version": "0.0.0", "license": "MIT", "angular-cli": {}, "scripts": { "ng": "ng", "start": "ng serve --host 0.0.0.0 --port 4200 --live-reload-port 4201", "hmr": "ng serve --host 0.0.0.0 --port 4200 --live-reload-port 4201 --hmr -e=hmr", "test": "ng test", "pree2e": "webdriver-manager update --standalone false --gecko false", "e2e": "protractor"

    Thanks all akl

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Can you try to change address configuration like this

    "App": {
        "WebSiteRootAddress": "http://localhost:22742/",
        "CorsOrigins": "http://localhost:4200/"
    }