Commit 26c75fa7 authored by Pham The Tung's avatar Pham The Tung

update log for project

parent bd9c480c
......@@ -33,7 +33,7 @@ namespace WPCommSharpClient
if (formLockRequest?.HID == null)
{
Log.Error("Not found HID!!!");
return Json(ResponseResult<String>.ErrorResult("HID is required."));
return Json(ResponseResult<String>.ErrorResult("HID not found."));
}
try
......@@ -41,7 +41,7 @@ namespace WPCommSharpClient
int hID = (int) formLockRequest.HID.Value;
// Hàm nhận vào 1 giá trị là Hardware ID cua output
Log.Debug("---Unlock with HID: " + hID);
Log.Debug("---Unlock with HID: " + hID + " .....");
_server.PulseByHID(hID);
TimeSpan totalTime = (DateTime.Now - startCallAPI);
......
......@@ -31,6 +31,8 @@ namespace WPCommSharpClient
return;
}
Log.Information($"Connect to domain: {baseAddress} .....");
try
{
WebApp.Start<Startup>(url: baseAddress);
......
2025-02-01 01:26:48.828 +07:00 [ERR] Application failed to start!!! , System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {5F016B52-7B30-438F-9C67-036878ACF734} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
at Startup.ConfigureDependencyInjection() in C:\project_API\project_API_1\project_API_1\project_API\WPCommSharpClient\WPCommSharpClient\Startup.cs:line 33
at Startup.Configuration(IAppBuilder appBuilder) in C:\project_API\project_API_1\project_API_1\project_API\WPCommSharpClient\WPCommSharpClient\Startup.cs:line 20
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Owin.Loader.DefaultLoader.<>c__DisplayClass19_1.<MakeDelegate>b__0(IAppBuilder builder) in /_/src/Owin.Loader/DefaultLoader.cs:line 429
at Owin.Loader.DefaultLoader.<>c__DisplayClass9_0.<LoadImplementation>b__0(IAppBuilder builder) in /_/src/Owin.Loader/DefaultLoader.cs:line 128
at Microsoft.Owin.Hosting.Engine.HostingEngine.Start(StartContext context) in /_/src/Microsoft.Owin.Hosting/Engine/HostingEngine.cs:line 98
at Microsoft.Owin.Hosting.Starter.HostingStarter.Start(StartOptions options) in /_/src/Microsoft.Owin.Hosting/Starter/HostingStarter.cs:line 42
at WPCommSharpClient.Program.Main() in C:\project_API\project_API_1\project_API_1\project_API\WPCommSharpClient\WPCommSharpClient\Program.cs:line 36
2025-02-28 10:20:56.548 +07:00 [DBG] Username: admin
2025-02-28 10:20:56.798 +07:00 [INF] Server initialized and logged in successfully.
2025-02-28 10:20:56.954 +07:00 [INF] API server started successfully at http://192.168.1.27:4000/
2025-02-28 10:21:41.526 +07:00 [DBG] Calling unlock ....
2025-02-28 10:21:41.526 +07:00 [DBG] ---Unlock with HID: 13
2025-02-28 10:21:41.550 +07:00 [DBG] Total time: 24.027 ms
2025-02-28 10:21:41.550 +07:00 [DBG] UnLock successful.
2025-02-28 10:21:45.138 +07:00 [DBG] Calling unlock ....
2025-02-28 10:21:45.138 +07:00 [DBG] ---Unlock with HID: 13
2025-02-28 10:21:45.148 +07:00 [DBG] Total time: 10.4878 ms
2025-02-28 10:21:45.148 +07:00 [DBG] UnLock successful.
2025-02-28 10:23:43.112 +07:00 [DBG] Calling unlock ....
2025-02-28 10:23:43.112 +07:00 [DBG] ---Unlock with HID: 13
2025-02-28 10:23:43.126 +07:00 [DBG] Total time: 13.8246 ms
2025-02-28 10:23:43.126 +07:00 [DBG] UnLock successful.
2025-02-28 10:23:44.018 +07:00 [DBG] Calling unlock ....
2025-02-28 10:23:44.018 +07:00 [DBG] ---Unlock with HID: 13
2025-02-28 10:23:44.032 +07:00 [DBG] Total time: 13.8982 ms
2025-02-28 10:23:44.032 +07:00 [DBG] UnLock successful.
2025-02-28 10:23:44.963 +07:00 [DBG] Calling unlock ....
2025-02-28 10:23:44.963 +07:00 [DBG] ---Unlock with HID: 13
2025-02-28 10:23:44.972 +07:00 [DBG] Total time: 9.3382 ms
2025-02-28 10:23:44.972 +07:00 [DBG] UnLock successful.
2025-02-28 10:23:46.135 +07:00 [DBG] Calling unlock ....
2025-02-28 10:23:46.135 +07:00 [DBG] ---Unlock with HID: 13
2025-02-28 10:23:46.145 +07:00 [DBG] Total time: 10.2115 ms
2025-02-28 10:23:46.145 +07:00 [DBG] UnLock successful.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment