Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup Page always report exception: The provided connection string is invalid or server is unreachable. #13257

Closed
hylinux opened this issue Feb 14, 2023 · 2 comments · Fixed by #15210
Labels
Milestone

Comments

@hylinux
Copy link

hylinux commented Feb 14, 2023

Describe the bug

when I follow this document:
https://docs.orchardcore.net/en/latest/docs/getting-started/

create my first demo, when I choose the database to sqlite, everything is ok. but when I tried to choose SQL Server, what every kind of connection string was inputed, it always show me exception:

The provided connection string is invalid or server is unreachable.

my connection string is:
Persist Security Info=False;User ID=sa;Password=Password01!@#4;Initial Catalog=TestDB1;Data Source=DESKTOP-8AVVAJV\TESTDB

the interesting thing is: this connection string was testing success when I use another ASP.net Core with EF Core framework.

To Reproduce

Steps to reproduce the behavior:

  1. Go to document: https://docs.orchardcore.net/en/latest/docs/getting-started/ create a demo web application.
  2. run the web app. and input the connection string.

please Note: I already create the database which I point out in Connection String.

the Orchard Core version is 1.5.0.

would you help take a look?

thanks

@rjpowers10
Copy link
Contributor

You're most likely running into the breaking changes listed here https://docs.orchardcore.net/en/latest/docs/releases/1.5.0/#yessql-breaking-changes

@hishamco
Copy link
Member

Exactly, the SQL Server connection is now secured, you can ignore it by using Encrypt=false

@OrchardCMS OrchardCMS locked and limited conversation to collaborators Feb 14, 2023
@MikeAlhayek MikeAlhayek converted this issue into discussion #13259 Feb 14, 2023
@MikeAlhayek MikeAlhayek added this to the 1.x milestone Feb 2, 2024
@MikeAlhayek MikeAlhayek modified the milestones: 2.x, 2.0 Sep 7, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants