Hello guys!
This question is actually a copy this i.e. SQL Anywhere .NET Data Provider requires access permissions. We get the following error (below) running a Web Services under IIS. We're using PB 12.6
When WebServices trying to connect to database an exception occurs (se below). The machine is an Windows 7 Ent 64 bit. We are using PB 12.6 to deploy a Web Service to IIS. This works fine. Calling WS also works fine. Problem occurs if the WS needs to connect to an database, then the below exception occurs. This same project and code runs without any problems on a Windows Server 2008.
Anyone understanding how to solve this issue?
TIA
==============================================================================================
SqlCode: -1, SQLErrText: System.TypeInitializationException: The type initializer for 'iAnywhere.Data.SQLAnywhere.SAConnection' threw an exception. ---> System.Exception: SQL Anywhere ADO.NET Data Provider requires access permissions of one of the following directories:
1. System temporary directory (C:\WINDOWS\TEMP\)
2. Current working directory (C:\WINDOWS\SysWOW64\inetsrv)
3. SQL Anywhere ADO.NET Data Provider assembly directory (C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\iAnywhere.Data.SQLAnywhere.v4.5\v4.0_16.0.0.16914__f222fc4333e0d400)
at iAnywhere.Data.SQLAnywhere.SAUnmanagedDll.GetTempDir()
at iAnywhere.Data.SQLAnywhere.SAUnmanagedDll.LoadDll()
at iAnywhere.Data.SQLAnywhere.SAUnmanagedDll..ctor()
at iAnywhere.Data.SQLAnywhere.SAUnmanagedDll.get_Instance()
at iAnywhere.Data.SQLAnywhere.SAConnection..cctor()
--- End of inner exception stack trace ---
at iAnywhere.Data.SQLAnywhere.SAConnection..ctor()
at iAnywhere.Data.SQLAnywhere.SAFactory.CreateConnection()
at Sybase.PowerBuilder.Db.Blo