Please be aware that the content in SAP SQL Anywhere Forum will be migrated to the SAP Community in June and this forum will be retired.

We have a problem with Sybase SAP driver update. We have a ASP.NET system deployed with SAP database driver, but whe we update this driver (Sap.Data.SQLAnywhere.v4.5.dll) to version 17.0.11.7458 on client test server (window server 2019 standart), we get the error:


Error time: 2024-05-08 13:24:48 Compilation date: 2024-05-08 13:12:56 User IP: ::1 User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like GeckoCookies: "Error: ErrorMessage : The type initializer for 'Sap.Data.SQLAnywhere.SAConnection' threw an exception. StackTrace: at Sap.Data.SQLAnywhere.SAConnection..ctor(String connectionString) at DBUtil.GetConnection() in C:\Projects\Backend\WISP1.0\projects\Saikas.WISP.DBUtil\DBUtil. cs:line 131 TraceBack:InnerException: System.ComponentModel.Win32Exception (0x80004005): Access is denied at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) at System.Diagnostics.NtProcessManag

asked 10 May, 04:31

ValdasSin2522's gravatar image

ValdasSin2522
263
accept rate: 0%


OpenProcess as the culprit: you do not have the rights to access your own process from the running code (might happen in webserver code)

That is unfortunately the static constructor of SAConnection so no way around it, it contains code to get the ProcessName of the current process and GetCurrentProcess() calls OpenProcess under the hood for which you need the appropriate rights.

permanent link

answered 13 May, 06:30

Martin's gravatar image

Martin
9.1k130170257
accept rate: 14%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×17
×9

question asked: 10 May, 04:31

question was seen: 127 times

last updated: 13 May, 06:30