Error in BeginStartup CollaborationPlatform using ProvisionedApplicationPlatformSettings - sql

I am trying to create an ApplicationEndpoint by first creating and establishing the CollaborationPlatform using ProvisionedApplicationPlatformSettings, when i execute:
ProvisionedApplicationPlatformSettings settings = new ProvisionedApplicationPlatformSettings("MYAPP", _appID);
_collabPlatform = new CollaborationPlatform(settings);
_collabPlatform.BeginStartup(EndPlatformStartup, _collabPlatform);
in EndPlatformStartup method while executing collabPlatform.EndStartup(ar); i get an error
ProvisioningFailureException:
One or more values in the configured settings are invalid or unusable. Check inner exception and logs for more details.
The settings wrapper failed to initialize.
Unable to find the Sqld database: 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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

Found the Answer/Error,
i was trying to run the application from Windows 7 PC which apparently is not supported for Auto Provisioned Application , so now i build the application on my Win7 PC and then execute it on the Lync Server.

Related

I can't connect to my LocalDB (LocalDB)\MSSQLLocalDB [2016]

In my machine was installed several versions of SQL Server 2008,2016,2019, but in my current project I have to work only with 2016. I uninstalled 2019 version (because some times the file .mdf that I use to up to source code was generated on the wrong version [2019] and I couldn't find the reason, so I decided to uninstall 2019) after that I got error to accessing LocalDB.
Firstly the error said something like Parenting to MSSQL15 I don't remember the exact error, but that make me think the DB was still pointing to 2019 so I uninstalled and reinstalled SQL Server 2016 and now I having another error.
In SSMS if I try to connect to (LocalDB)\MSSQLLocalDB I get:
Cannot connect to (LocalDB)\MSSQLLocalDB.
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: SQL
Network Interfaces, error: 0 - [x89C50118]) (Microsoft SQL Server,
Error: -1983577832)
If I go to CMD to see what I have as servers I get:
C:\Users\rmarchetto>sqllocaldb info MSSQLLocalDB ProjectsV13
But if I try to access specifically MSSQLLocalDB I get:
C:\Users\rmarchetto>sqllocaldb info MSSQLLocalDB Call to
LocalDBFormatMessage failed. Error code returned:
2311389448. Error in LocalDBFormatMessage! Error code returned:
2311389454.
I solved the problem, actually I don't known literally which keys u must delete but, to stop the problem of parenting to another SQL version I needed to go to "Registry Editor" and I deleted every key on :
Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Microsoft SQL Server\UserInstances
After that I was able to connect to my (LocalDB)\MSSQLLocalDB [2016] without further errors =)

Connection string parameter cannot be null

I have an MVC Core application that works on my machine, where SQLEXPRESS is not a named instance. When I deploy it to IIS 7.5 on a remote machine, where it is a named instance, without changing the connection string:
"Server=localhost;Database=QuickShare;Trusted_Connection=True;MultipleActiveResultSets=true"
I get the following error:
SqlException: 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: Named Pipes Provider, error: 40 - Could not open a
connection to SQL Server)
Then I correct the connection string for the nameD instance:
"Server=localhost.\SQLEXPRESS;Database=QuickShare;Trusted_Connection=True;MultipleActiveResultSets=true"
I get the following error:
ArgumentNullException: Value cannot be null. Parameter name:
connectionString
In the stack trace on the developer error page, highlighted is the following line from Startup.cs:
options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection")));
How does changing only the connection string go from an expected connection exception to a null parameter exception?
Remeber that your configuration file is JSON which means certain characters need to be escaped, in this case it's the backslash. So from this answer you can see that you need to double up the backslash. For example:
"Server=localhost\\SQLEXPRESS;Database=QuickShare;......"

Error connecting to MS SQL SERVER in Pentaho

I m using Pentaho v5.2. When i tried to connect to sql server i m end with below error. I had downloaded and placed required driver sqljdbc4-2.0 jar in pdi-ce-5.2.0.0-209\data-integration\lib. Please help me as I'm new to Pentaho.
Error connecting to database [mssqlserverconn] : org.pentaho.di.core.exception.KettleDatabaseException:
Error occured while trying to connect to the database
Error connecting to database: (using class com.microsoft.sqlserver.jdbc.SQLServerDriver)
Login failed for user 'Lenovo-PC\RamaKrishna'.
org.pentaho.di.core.exception.KettleDatabaseException:
Error occured while trying to connect to the database
Error connecting to database: (using class com.microsoft.sqlserver.jdbc.SQLServerDriver)
Login failed for user 'Lenovo-PC\RamaKrishna'.
From the error message you're being thrown, it's an authentication issue.
It looks like you are trying to use your username from your laptop domain - is that what you want? Does the the server accept this user name (Lenovo-PC\RamaKrishna)?
You may have been using integrated security, which basically overrides whatever you set as the username in the text-box and uses your Windows username instead.
See below:

What does the "IO Error: Socket read timed out" means (SQL developer)

When I try to open SQL developer then I am getting this error:
An error was encountered performing the requested operation:
IO Error: Socket read timed out
The Network Adapter could not establish the connection Vendor code 17002
What is the problem?
Typical causes for that error:
Your database listener is not running
It is running, but maybe there is a firewall intervening
It is running, no firewall issue, but you have provided incorrect connection details.
Source: https://community.oracle.com/thread/3519434
Make sure your installation is on a LOCAL drive!
If your SQL Developer is launched from a network location (specifically, a different location than your database network location), that could be the issue.
I was having the same problem and I moved my installation to my local drive and it connected right away :)
Above answers are exact causes but to resolve this:
Go to server machine and login as root then run:
( # xhost + )
Then come to oracle user and run:
( $ lsnrctl reload LISTENER_NAME )

how to remove security settings from a connection string in vb.net

hi i am trying to add data to the database that was created by some one but when am trying to insert or delete or update the exception is raising and entire project is not working properly and the error i am facing is
"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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)"
so now what should i do to resolve this error and my connection string is written as
Dim CON As New SqlConnection("Integrated Security=SSPI;
Persist Security Info=False;Initial Catalog=DIGITALGAMES;
Data Source=TEJUS-PC\SQLEXPRESS")
is there any problem with my connection string ??
This error usually comes when database path is wrong i.e. system is enabe to locate the database
plz make apropriate modifications in
Data Source=TEJUS-PC\SQLEXPRESS
Dim CON As New SqlConnection("Integrated Security=SSPI;
Initial Catalog=DIGITALGAMES;Data Source=TEJUS-PC\SQLEXPRESS; User ID=yourusername; Password=yourpassword")
and
try this link
, with useful information about connection string
I think the server you are trying to access is either not in the network or you dont have windows authentication to that server.