I have never worked with Mono before.
I have written a sample project and I try to connect to a SQL Server but I am getting an error that says "TLS Support is not available".
I am running the program on Windows. When I run the same program on Linux it is working fine beucase ca-certificates-mono is intalled.
here's the connectionstring that I am using to connect to database :
var connectionString="Server=192.10.10.211,1433;Initial Catalog=mobile;user=usr;pwd=pwd";
I couldn't find any information on Mono documentation to show how I should set TLS support for mono on Windows.
Related
I’ve created a C# application and have published it. I tested the published application on my own computer and everything was working properly. When I installed the app on my client’s computer that has the same SQL Server version installed as mine, when I want to open the app, I get this error:
Can’t use or open database because it’s version 852
and this machine supports 706 or earlier.
I’ve installed SSMS, SQL Server Express, a higher version (2017) of SQL Server, but none of the above helped. I’m frustrated, what can I do?
My App.Config file is like this:
Data Source=(LocalDB)\MSSQLLOCALDB;AttachDbFileName=|DataDirectory|\SLApp.mdf;Integrated Security=True;
Everything works fine on my computer with the config mentioned above. Now what can I do?
I am developing a Windows application that connects to Oracle DB.
The machine I am developing the application on has Oracle 6i installed with SQLPlus and Toad to access Oracle by command or graphical interface.
The same set up is true across all other computers in my work place.
The only difference is that my pc has Visual Studio and Oracle 10g ODP.Net libraries to make the development of Oracle Application possible using Visual Studio.
I made sure to include Oracle.DataAccess.dll file along with the EXE in the same path to reduce dependency on default paths/ etc.
The finished EXE file runs as expected on my computer, but whenever I publish it to the other computers, I get the following error message:
The type intializer for 'Oracle.DataAccess.Client.OracleConnection' threw an exception.
I tried to change the version of Oracle.DataAccess.dll from 2.111.6.20 to 10.2.0.100.
Again, it ran perfectly on my PC but gave the following exception on other PCs:
Unable to load DLL 'OraOps10.dll': the specified module could not be found.
I copied the said file above from my pc and included it in the published folder of the EXE but the same error message appeared, as if it invisible to the .Net application.
All computers have Windows 7 and all of them are 32bit.
Is there a way to make the application connect to Oracle regardless of the libraries or Oracle version installed locally on the computer? (The same way Toad works whether it detects Oracle 6i or 10g installed)?
I can't install the Oracle 10g ODP.Net libraries on all computers.
I don't normally do .NET development but I have a small .NET app that I need to set up on a new Win2K8 IIS 7.5 server, the SQL 2005 server is on a different box. I've tested the .NET app on an Win7 IIS 7/SQL 2005 machine and it works fine. When I run the app on the new server I get the following error:
The 'SQLNCLI11' provider is not registered on the local machine.
I googled the error and found out that I needed to install the native client drivers. I found the sqlncli.msi file on the database server and installed it on the IIS server. Same problem.
I then installed the SQL Management Studio thinking that might have some drivers that it needed. Same error. I can connect through the management studio but the .NET app keeps giving me the same error.
Any suggestions?
Thank!
I changed the provider in my connection string from SQLNCLI11 to SQLNCLI10.
Works like a charm.
I've a .net 3.5 windows application which uses System.Data.OracleClient dll internally for Oracle database connectivity.The app works fine on a Windows XP machine.
When I port this application on a machine having Windows 7 OS,I get an error message when connecting to db:
"System.Data.OracleClient requires Oracle client software version 8.1.7 or greater."
This is fixed after installing Oracle 64 bit driver.But now am getting another error message:
"OCIEnvCreate failed with return code -1 but error message text was not available."
What could I be missing here please?
Thanks.
The System.Data.OracleClient actually requires Oracle client software to be installed on the client system, so you probably have it installed on your XP machine but not on your Windows 7 machine.
I have to do a modification on an old COM+ app written in C# 2.0. But when I try to register the DLL on a windows server 2008 machine with 'regsvcs excelserver.dll', I get the error:
The following installation error occurred:
1: FATAL: Could not find component 'Excelserver.CExcelManager' we just installed
I tried to run in as admin, and turned off UAC, but it doesn't make a difference.
If I try it on a windows 7 or windows server 2003 machine, it works.
Any ideas why this doesn't work on a windows server 2008 machine? It seems I don't find any additional logging in the event log.
Thanks,
L
You need to register using the 64-bit version of regsvcs instead of the 32-bit version.