نمایش نتایج 1 تا 2 از 2

نام تاپیک: مشکل در اجرای Api در هاست

  1. #1

    مشکل در اجرای Api در هاست

    سلام دوستان عزیز:
    برنامه ی من با Asp Core نوشته شده اما متاسفانه Api در هاست اجرا نمی شود.
    از سمت پشتیبانی هاست برای چندین پیام خطا ارسال شده و خواسته که باید در برنامه رفع شود.
    اما نمی دانم که چگونه باید حلش کنم.
    در پایین پیامهای خطا را قرار می دهم.
    خوشحال می شم که راهنمایی کنید.
    موفق باشید.




    warn: Microsoft.AspNetCore.DataProtection.Repositories.E phemeralXmlRepository[50]
    Using an in-memory repository. Keys will not be persisted to storage.
    warn: Microsoft.AspNetCore.DataProtection.KeyManagement. XmlKeyManager[59]
    Neither user profile nor HKLM registry available. Using an ephemeral key repository. Protected data will be unavailable when application exits.
    warn: Microsoft.AspNetCore.DataProtection.KeyManagement. XmlKeyManager[35]
    No XML encryptor configured. Key {ca54df10-b885-4cd8-b9e0-0dd774af0427} may be persisted to storage in unencrypted form.
    info: Microsoft.Hosting.Lifetime[0]
    Application started. Press Ctrl+C to shut down.
    info: Microsoft.Hosting.Lifetime[0]
    Hosting environment: Production
    info: Microsoft.Hosting.Lifetime[0]
    Content root path: C:\Inetpub\vhosts\khalilnazary.com\httpdocs
    fail: Microsoft.AspNetCore.Diagnostics.ExceptionHandlerM iddleware[1]
    An unhandled exception has occurred while executing the request.
    System.Text.Json.JsonException: '<' is an invalid start of a value. Path: $ | LineNumber: 0 | BytePositionInLine: 0.
    ---> System.Text.Json.JsonReaderException: '<' is an invalid start of a value. LineNumber: 0 | BytePositionInLine: 0.
    at System.Text.Json.ThrowHelper.ThrowJsonReaderExcept ion(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan`1 bytes)
    at System.Text.Json.Utf8JsonReader.ConsumeValue(Byte marker)
    at System.Text.Json.Utf8JsonReader.ReadFirstToken(Byt e first)
    at System.Text.Json.Utf8JsonReader.ReadSingleSegment( )
    at System.Text.Json.Utf8JsonReader.Read()
    at System.Text.Json.Serialization.JsonConverter`1.Rea dCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
    --- End of inner exception stack trace ---
    at RestSharp.ResponseThrowExtension.ThrowIfError[T](RestResponse`1 response)
    at RestSharp.RestClientExtensions.GetAsync[T](IRestClient client, RestRequest request, CancellationToken cancellationToken)
    at Jamil_Ltd.Web.Customer.Controllers.HomeController. Index() in D:\Jamil_Ltd Project\Jamil_Ltd\Src\Web\Jamil_Ltd.Web.Customer\C ontrollers\HomeController.cs:line 43
    at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMeth odExecutor.TaskOfIActionResultExecutor.Execute(Act ionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
    at Microsoft.AspNetCore.Mvc.Infrastructure.Controller ActionInvoker.<InvokeActionMethodAsync>g__Awaited| 12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
    at Microsoft.AspNetCore.Mvc.Infrastructure.Controller ActionInvoker.<InvokeNextActionFilterAsync>g__Awai ted|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.Controller ActionInvoker.Rethrow(ActionExecutedContextSealed context)
    at Microsoft.AspNetCore.Mvc.Infrastructure.Controller ActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.Controller ActionInvoker.<InvokeInnerFilterAsync>g__Awaited|1 3_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceIn voker.<InvokeNextResourceFilter>g__Awaited|25_0(Re sourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceIn voker.Rethrow(ResourceExecutedContextSealed context)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceIn voker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceIn voker.<InvokeFilterPipelineAsync>g__Awaited|20_0(R esourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceIn voker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
    at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceIn voker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
    at Microsoft.AspNetCore.Localization.RequestLocalizat ionMiddleware.Invoke(HttpContext context)
    at Microsoft.AspNetCore.Authorization.AuthorizationMi ddleware.Invoke(HttpContext context)
    at Microsoft.AspNetCore.Authorization.AuthorizationMi ddleware.Invoke(HttpContext context)
    at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerM iddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHan dlerMiddlewareImpl middleware, HttpContext context, Task task)

  2. #2
    کاربر دائمی آواتار fakhravari
    تاریخ عضویت
    دی 1388
    محل زندگی
    بوشهر
    سن
    34
    پست
    8,032

    نقل قول: مشکل در اجرای Api در هاست

    هر چی هست روی
    Using an in-memory repository. Keys will not be persisted to storage

تاپیک های مشابه

  1. پاسخ: 1
    آخرین پست: یک شنبه 06 فروردین 1396, 09:01 صبح
  2. پاسخ: 2
    آخرین پست: جمعه 31 مرداد 1393, 10:12 صبح
  3. سوال: ساخت چند یوزر پس برای هاست و محدود کردن هاست برای نویسندگان هاست.
    نوشته شده توسط rezanic در بخش توسعه وب (Web Development)
    پاسخ: 0
    آخرین پست: شنبه 04 مرداد 1393, 21:07 عصر
  4. پاسخ: 7
    آخرین پست: سه شنبه 28 آذر 1391, 13:48 عصر

قوانین ایجاد تاپیک در تالار

  • شما نمی توانید تاپیک جدید ایجاد کنید
  • شما نمی توانید به تاپیک ها پاسخ دهید
  • شما نمی توانید ضمیمه ارسال کنید
  • شما نمی توانید پاسخ هایتان را ویرایش کنید
  •