1. Aneesh Sasidharan
  2. PowerServer
  3. Monday, 11 October 2021 07:09 AM UTC

 

Dear All,

 

 Please help me, I am not able to connect Power Server apps with SQL server database. 

 

info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[0]
User profile is available. Using 'C:\Users\aneesh.s\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.
info: PowerServer[0]
PowerServer License
|-- LicenseKey: DSCB-FBJG-BFJJ-FEH0-0541
|-- ProductEdition: Developer
|-- LicenseExpiration: 2022-09-13
|-- Watermark: For Development Use Only


info: Microsoft.Hosting.Lifetime[0]
Now listening on: http://localhost:5000
info: Microsoft.Hosting.Lifetime[0]
Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
Hosting environment: Development
info: Microsoft.Hosting.Lifetime[0]
Content root path: D:\Application\PB19\TIMESHEET\PowerServer_gsstimesheet\ServerAPIs
info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
Request starting HTTP/1.1 POST http://localhost:5000/api/ServerApi/CreateSession application/json;charset=UTF-8 514
info: Microsoft.AspNetCore.Authorization.DefaultAuthorizationService[1]
Authorization was successful.
info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0]
Executing endpoint 'PowerServer.Api.ServerApiController.CreateSessionAsync (PowerServer.Api)'
info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[3]
Route matched with {action = "CreateSession", controller = "ServerApi"}. Executing controller action with signature System.Threading.Tasks.Task`1[PowerServer.Core.IBaseResult] CreateSessionAsync(PowerServer.Core.RequestSession) on controller PowerServer.Api.ServerApiController (PowerServer.Api).
dbug: PowerServer.Api.ServerApiController[0]
'PowerServer.Api.ServerApiController.CreateSessionAsync (PowerServer.Api)' get request ({
"reqData": {
"Type": 31,
"Content": {
"CreateSession": {
"ApplicationName": null,
"SecureString": "eyJ0aW1lc3RhbXAiOjE2MzM5MzUxODIsInBheWxvYWQiOiJ4QVZtRjN3SE41NlVoZG9Pdi9LbExUODR1djRhN3UrRXZES01aN1BGYWFQcUw0Z0tpUkJKN0VWV3R4UjAwUllZbGV2Vjc3WEdUbHd0Yms2WFBGMys2QT09Iiwic2lnbmF0dXJlIjoiLzA0UXByMGxuU24rVkhFS0F3R0NvTDNlTGxyOGFPeU5oUk5RV2laZFRMWmJKQmJaSjVrTlo5dVc2bUpIaFZSNmRiU3VpaEdvSzA2MW5rQ1k2bTNjdVE9PSJ9",
"SessionId": null
}
},
"ClientIPAddress": "",
"ServerIPAddress": "",
"ServerPort": 0,
"AppName": "GssTimeSheet",
"NamespaceName": "GssTimeSheet",
"SecureSession": "",
"Version": "1.0",
"RequestId": "3712F08A-442E-4a91-803B-D60188F16AAE",
"Transaction": null
}
}).
dbug: PowerServer.Api.ServerApiController[0]
'PowerServer.Api.ServerApiController.ConnectAndCreateTransactionAsync (PowerServer.Api)' get request ({
"reqData": {
"Type": 7,
"Content": {
"Connect": {
"ApplicationName": null,
"CacheName": "DEV_TIMESHEET",
"CacheGroup": "",
"TransactionName": "sqlca",
"Transaction": {
"AutoCommit": false,
"Database": "GSSMobileApp",
"DBMS": "SNC SQL Native Client(OLE DB)",
"DBParm2": null,
"dbparm": "Database='GSSMobileApp',TrustedConnection=1, cachename='DEV_TIMESHEET' , cashegroup = 'Default'",
"DBPass": "",
"Lock": "",
"LogID": "sa",
"LogPass": "**********",
"ServerName": "GSSLAPANE",
"SQLCode": 0,
"SQLDBCode": 0,
"SQLErrText": null,
"SQLNRows": 0,
"SQLReturnData": null,
"UserID": ""
}
}
},
"AppName": "GssTimeSheet",
"NamespaceName": "GssTimeSheet",
"SecureSession": "eyJ0aW1lc3RhbXAiOjE2MzM5MzUxODMsInBheWxvYWQiOiJmcDc5UTBWcU5KUWVNZEZDbGJRL3dmVkh1N2lzZ0VGMldyTHdrZm5DaUw0clhxWlA3akRrRE1DVWp3aFFxK05tT2tPZTVvMjJwaDRhZFg1eUJoenBaRmpDSnBzWnhVSzNvYi9pN1ZZVHJoYnJ6ZTl6TmQzQ09kMDhDVWlFbDRxRXRDU2dsVHBYN0lkTGRaT2FuNk5yRG8rMXRLbWdLZFg1aFhkRFVoSW00QlY2WkR3NitNdURkcmRURGRDSVp1M0IiLCJzaWduYXR1cmUiOiJJL0pzMnZjWFJ0Tzdpc250TExBZ010VGVSMDBnZzJQQmdoVnovaXhjN2dOTGErcHBac2h2WHRleXJyakxUOEtaQ1cwcEpiSGdsUkhKME9hRTlzOVB6UT09In0=",
"Version": "1.0",
"RequestId": "6A951BAE-D254-4e88-A00E-6EE210EC4E6B",
"Transaction": null
}
}).
info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
Request starting HTTP/1.1 POST http://localhost:5000/api/ServerApi/verify application/json;charset=UTF-8 20494
info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0]
Executing endpoint '/api/ServerApi/Verify HTTP: POST'
dbug: PowerServer[0]
Validate Session Id: '7C0E95A3-00A1-4ABE-B72A-F15389E48C90' Session Status: 'Created' Session Last Visit Time: '11/10/2021 6:53:03 AM'
info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1]
Executed endpoint '/api/ServerApi/Verify HTTP: POST'
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
Request finished in 58.9339ms 200
fail: PowerServer.Api.ServerApiController[0]
'PowerServer.Api.ServerApiController.ConnectAndCreateTransactionAsync (PowerServer.Api)' get result ({
"IsSuccess": false,
"ErrorCode": 0,
"ErrorMessage": "A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SNI_PN11, error: 25 - Connection string is not valid)",
"Version": "1.0",
"RequestId": "6A951BAE-D254-4e88-A00E-6EE210EC4E6B",
"AppName": "GssTimeSheet",
"Session": {
"ErrCode": 0,
"ErrMsg": null,
"SessionId": "7C0E95A3-00A1-4ABE-B72A-F15389E48C90"
},
"Type": 7,
"Transaction": {
"TransactionId": null,
"SQLCode": -1,
"SQLDBCode": -1,
"SQLErrText": "A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SNI_PN11, error: 25 - Connection string is not valid)",
"SQLNRows": 0,
"SQLReturnData": null
},
"Content": {
"ServerConfig": {
"DelimitIdentifier": "no",
"Ojsyntax": null,
"CaseConversion": 0,
"Dbms": null
}
},
"Namespace": "GssTimeSheet"
}).
info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1]
Executing ObjectResult, writing value of type '? '.
info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[2]
Executed action PowerServer.Api.ServerApiController.ConnectAndCreateTransactionAsync (PowerServer.Api) in 14837.9716ms
info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1]
Executed endpoint 'PowerServer.Api.ServerApiController.ConnectAndCreateTransactionAsync (PowerServer.Api)'
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
Request finished in 14869.0219ms 200 application/json; charset=utf-8
info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
Request starting HTTP/1.1 POST http://localhost:5000/api/ServerApi/DestroySession application/json;charset=UTF-8 593
info: Microsoft.AspNetCore.Authorization.DefaultAuthorizationService[1]
Authorization was successful.
info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0]
Executing endpoint 'PowerServer.Api.ServerApiController.DestroySessionAsync (PowerServer.Api)'
info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[3]
Route matched with {action = "DestroySession", controller = "ServerApi"}. Executing controller action with signature System.Threading.Tasks.Task`1[PowerServer.Core.IBaseResult] DestroySessionAsync(PowerServer.Core.RequestSession) on controller PowerServer.Api.ServerApiController (PowerServer.Api).
dbug: PowerServer.Api.ServerApiController[0]
'PowerServer.Api.ServerApiController.DestroySessionAsync (PowerServer.Api)' get request ({
"reqData": {
"Type": 32,
"Content": null,
"ClientIPAddress": "",
"ServerIPAddress": "",
"ServerPort": 0,
"AppName": "GssTimeSheet",
"NamespaceName": "GssTimeSheet",
"SecureSession": "eyJ0aW1lc3RhbXAiOjE2MzM5MzUyMjUsInBheWxvYWQiOiJnTm5uWVkrL2NES1FYaFgzeVI2QjZBMzVsQm9hZ21wZStReDRXbFlEdGNIelV0QnJPY2F0TXFLV3lTRUo4cmZYSjhOYVI3eWxyanA4MUFVUmxpRUdvQm9iUmRHSzZ6VUFGK1p0aCt1Z2pXQ2RUYWFKRjNNZ3ZKbWtVL1hwOUpQcFlNVDFwTCtYR0VxVEIvYUVJUU5WM0Y5VnBYaVRVVnVaQkdHbFpYZ21GaXc9Iiwic2lnbmF0dXJlIjoiNHgxMVJDTEVlZkdLa3k0OHFJbGdnd0UyS2FPWXRxM1pWMXFOY0R6TDI3VjBLNjVTVmx3YTEzSTlIbU0vVUdpcjltM3VoQStiRExWOEdJK1Nhc2ZnZWc9PSJ9",
"Version": "1.0",
"RequestId": "3DFA44DE-E89E-489d-8F9B-0BD407495124",
"Transaction": null
}
}).
dbug: PowerServer.Api.ServerApiController[0]
'PowerServer.Api.ServerApiController.DestroySessionAsync (PowerServer.Api)' get result ({
"IsSuccess": true,
"ErrorCode": 0,
"ErrorMessage": null,
"Version": "1.0",
"RequestId": "3DFA44DE-E89E-489d-8F9B-0BD407495124",
"AppName": "GssTimeSheet",
"Session": {
"ErrCode": 0,
"ErrMsg": null,
"SessionId": null
},
"Type": 32,
"Transaction": {
"TransactionId": null,
"SQLCode": 0,
"SQLDBCode": 0,
"SQLErrText": null,
"SQLNRows": 0,
"SQLReturnData": null
},
"Content": null,
"Namespace": "GssTimeSheet"
}).
info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1]
Executing ObjectResult, writing value of type '? '.
info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[2]
Executed action PowerServer.Api.ServerApiController.DestroySessionAsync (PowerServer.Api) in 10.8925ms
info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1]
Executed endpoint 'PowerServer.Api.ServerApiController.DestroySessionAsync (PowerServer.Api)'
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
Request finished in 28.1776ms 200 application/json; charset=utf-8

   

 


Responses (2)
  1. Likes
  2. Latest
  3. Oldest
Loading...

Find Questions by Tag

.EXE .NET 6.0 .NET Assembly .NET Core 3.1 .NET Core Framework .NET DataStore .NET Std Framework 32-bit 64-bit ADO.NET AEM AI Algorithm Amazon AWS Android Apache API APK App Store App Store (Apple) Appeon Workspace Appeon Xcelerator Plug-in Architecture Array ASE Asynchronous Methods Authentication AutoBuild AutoCompiler Automated Testing Automation AutoScript Azure Barcode Base64 Batch BigData BLOB Branch & Merge Browser Bug Build Button C# C# Class Importer C# Editor C# Model generator Calendar Camera Certificate Chrome Citrix Class Client Client/Server Cloud Cluster Collection COM Command Line Compiler Compression Computed Field Configuration Controls Cookies Cordova Crash Cross-Platform Crosstab CSharpAssembly CSharpObject CSS CSV Cursor Data Database Database Driver Database Painter Database Profile Database Provider DataObject DataSource DataStore DataStore (C#) DataStore (PS) DataType DataWindow DATE DATETIME DB2 Debug Debugger Debugging Deployment Design DLL DO-WHILE Dockable Docker Documentation DOUBLE Download DragDrop Edge Edit Style Editor Elevate Conference Email Embedded SQL Emulator Encoding Encryption Enhancement Request Entity Entity Framework ERP Error Event Event Handler Event Handling Excel Exception Export Expression External Functions F# Field File File Access Filter Firefox Firewall Font FOR-NEXT Foreground Format Function Garbage Collection GeoLocation Git Graph HANA Hash Header HTML/5 HTTP/S HTTPClient Icon IDE Identity IIS IMAPI Import InfoMaker Inheritance Installation Integer IntelliSense Interface Internet Internet Explorer iOS IPA iPad iPhone IWA J# Java JavaScript JBoss JDBC JOIN JSON JSONGenerator JSONParser Kestrel Label Lambda Large File LDAP Library License LINQ Linux OS Load Balancing Localization Localized PBVM Log In Log Out Logging LONG LONGLONG macOS MAPI Maps MDI Memory Memory Leak Menu Merge MessageBox Messagging Method Migration MIME TYPE Mobile Model ModelStore ModelStore (C#) MSOLEDBSQL Multi Threading MVC MySQL n-Tier Namespace NativePDF NVO OAuth ODATA ODBC Office Offline OLE OLEDB Online Open Source OpenAPI OpenSSL Oracle OrcaScript Other Outlook Output Package Parameter Patch PayPal PB Classic PB Native PB.NET PBC PBD PBDOM PBG PBJVM PBL PBNI PBORCA PBVM PBX PDF Performance Permission PFC Picture Pipeline Play Store (Google) Plugin Popup Port POST PostgreSQL PowerBuilder PowerBuilder (Appeon) PowerBuilder (SAP) PowerBuilder Compiler PowerBuilder Runtime PowerClient PowerScript (PS) PowerScript IDE PowerScript Migrator PowerServer PowerServer Mobile PowerServer Toolkit PowerServer Web PowerServerLabel Print Properties Proxy Publish PULL PUSH Query Regression Release Renew Resize Response REST Retrieve RibbonBar RibbonBar Builder Rich Text Roadmap RPC Runtime Packager SaaS Scaffolding Script SDI SDK Security Server Service Session Single Sign-on Size SMTP SMTPClient SnapDevelop SOAP Sort Source Code Speech Recognition SQL SQL Anywhere SQL Server SqlBuilder SqlExecutor SQLite SqlModelMapper Storage Stored Procedure Subscription SVN Swagger Syntax TabbedBar TabbedView Tablet TabPage Target TE Control Testing Text TFS Theme TIME Timer TLS/SSL Tomcat TortoiseGit TortoiseSVN Transaction Transparency Trial Trigger TRY-CATCH TX Control Type UI ULONG UltraLite Uninstall Unit Test Unit Testing UNIX OS Update Upgrade Upload URL User Center User Object UWP Validation VARCHAR Variable Versioning Visual Studio Visual Studio Code VM Voice Warning WCF Web API Web Extensions Web Service WebBrowser WebForms WebLogic WebSphere WildFly WinAPI Window Windows OS WinForms Wizard Workgroup Workspace WPF XCODE XHTML XML Zoom

Helpful?

If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.