-
Notifications
You must be signed in to change notification settings - Fork 547
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
Create SQL data base form error #3595
Comments
@lnicolae can you please share the exact error message or a screen shot so that it is easier to understand the specifics of the error? |
@lnicolae - are you using the source code directly from GitHub? If so, did you open the Oqtane.sln file in Visual Studio and build the solution (Build / Rebuild Solution) before running the application? |
yes, alway use latest code from GIT in VS2022 Preview (last version), alway Rebuild (not use Build) |
@lnicolae you posted a screen shot of the first error... but it is actually the second error related to the Invalid Password which you are saying is the issue - correct? I am assuming the actual message you are seeing for the invalid password is "The Password Provided Does Not Meet The Complexity Policy. Passwords Must Be At Least 6 Characters In Length And Contain Uppercase, Lowercase, Numeric, And Punctuation Characters." - correct? |
on my first post you have 6 steps to reproduce that error/errors. On my case, the problem that occurre is not so obviously, because I use a custom user test, and my Microsoft acocunt is disable, and possible an error on Microsoft code with this settings. But fallow the 6 steps. The error is there. You need only to fallow the steps. That is all |
i'm getting the same error. i downloaded v5.0.1. i'm running sql server from a container -- my db server is localhost, 1433. that shouldn't be a problem. same error with localdb. i'm going to try downgrading to an earlier version. i downloaded and installed a fresh copy a few months without issues. not sure why i'm getting this new error. |
@curlyfro what exactly did you download - more details are always helpful. |
sure no problem. An Error Occurred Creating The Database. This Is Usually Related To Your User Not Having Sufficient Rights To Perform This Operation. Please Note That You Can Also Create The Database Manually Prior To Initiating The Install Wizard. System.ArgumentNullException: Value cannot be null. (Parameter 'type') at System.ArgumentNullException.Throw(String paramName) at System.Activator.CreateInstance(Type type, Boolean nonPublic, Boolean wrapExceptions) at Oqtane.Infrastructure.DatabaseManager.CreateDatabase(InstallConfig install) in D:\oqtane.framework-5.0.1\oqtane.framework-5.0.1\Oqtane.Server\Infrastructure\DatabaseManager.cs:line 220 |
i downloaded v4.0.6 source code. same everything. worked. |
@curlyfro Also be sure your configuration of your SQL server allows remote access. Main issues that bring up this error: Server Address Issue: Wrong information or format, for your case you should just need to enter "localhost" Server Configuration Issue: Remote Access is not allowed. Server Database Permissions: Oqtane will create the database for you using integrated security since permissions are local to your the user running the app. For manual creation make sure the database is created with your SQL User as DB Owner permissions mapped to it. Security Credentials: Sometimes you set a password one way, and by golly you are one character off when trying to set this password. Be sure they are typed exactly, for testing you can use notepad to copy and paste this while creating the user in SQL Server and also back into the Oqtane Server setup form. Biggest problem showing up here in issues and discussions has been people not performing a build or rebuild on the entire Oqtane Framework solution so all the projects inlcluding the database projects get compiled prior to running (debugging) the application. I used rebuild not sure if that made a difference. The error you are having is similar to the ones I had earlier when testing, but actually this is different when reviewing it closer as I was using the wrong server address as I was using my machine name and some other settings from connection string formats I had used in the past... low and behold "localhost" was all I needed. I have been using localdb for long time now, I had to do a refresher on the SQL Server on my IDE but I can pretty much connect and setup any type of database or server so it wasn't long before I figured it out. I did feel like my settings where correct and all was right so I was going to create an issue, but then I found the problem and all related to those outlined here. I have now tested connecting using SQL server security both custom and integrated with a very recent dev branch and Visual Studio 2022 (Not Preview as one mentioned before). I was successful in both attempts as long as I clicked the build button in Visual Studio prior to running debug launching the application. After testing my environment I did the following to create a SQL Database connection: I was able to successfully connect to the database server all times as long as I built the solution projects first. This was my workflow:
SSL Encryption Settings maybe something to review. Any settings off from what I am showing in my attempt to reproduce this issue? Always happy to try and help, Cheers! |
working with IIS on Windows 2022 server and Windows 11 trying to install I get this same exact message. I think I may have found some information worth sharing. However running in Visual Studio Localhost:44357 or whatever... it works ok. I was using the release package install. So I was convinced it should work but it wasnt... look a little deeper and I forgot to set my sql server to allow sql server and windows authentication. But this does not explain the issue with connecting via SSL using the IIS Developer Certificate. Some reason Oqtane does not like it and will not load the setup page. Again it was a configuration issue with my new SQL server instance I had to set, and generally always do. That allowed user authentication using self-signed encrypted custom settings. But again not sure this is the case but worth mentioning. I want to figure out why I cannot setup using IIS and SSL. As soon as I switch the site to SSL it wont load anymore. Maybe a different but relating issue? This is generated in the Content\Log\error.txt file when attempting to access the site using SSL Self Signed Certificates, not sure if this issue still happens with signed certificates:
Hope something here helps as I am trying to figure out ways to troubleshoot my IDE and seems at least I found a way to move forward, dont use SSL except it's ok to use it via SQL configurations I believe. Just not for browsing. And that is testing in 2 environments recent updates. I spun up a Windows 2022 server just to make sure it wasn't just my environment. My solution was I can only access Oqtane currently via HTTP and cannot using HTTPS. Maybe a new issue. After testing I could load the HTTP site once I removed the HTTPS binding. However I also got an error at the bottom of the page saying the site needs to reload which was different no matter which version of SQL I used localdb or SQL Server. Out for the night hope this helps. |
Anyone know if this issue still exists? I am going to review this issue see if it exists in 5.1.0 along with any other installation issues with some different environments over the next week to run some tests starting with Windows Oqtane installs. I believe I have been able to install Oqtane on most every database since 5.02. Usually it's been a config issue such as the database name or something not properly setup for the environment working on such as an issue with the configuration of the database server itself allowing the connection. I will be sure to try to explain the options best I can to help clear up any issues like this if can be. In fact I believe we have a docs meeting tomorrow I will bring this up as we get things prepped for an upcoming push. Cheers! |
An issue that I was running into and it worth checking out, is make sure that you allow SQL logins and not just windows authenticated logins in your SQL database. |
this is a logiccal error in code
The text was updated successfully, but these errors were encountered: