-
Notifications
You must be signed in to change notification settings - Fork 32
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
2017 Error Enumerating Database - Could not load file or assembly #17
Comments
Prior to SQL Server 2017 the SMO objects were deployed as part of other installs, or as a separate MSI. For SQL Server 2017, they were changed to a NuGet package as per https://docs.microsoft.com/en-us/sql/relational-databases/server-management-objects-smo/installing-smo?view=sql-server-2017. and have to be deployed as part of the software package. I was unaware of this prior to today. Release Beta 0.23.0.0 should correct this issue: |
I hate to be a pain but that MSI will not execute and install on my machine. It just sits. I restarted a few times, tried installing as Admin, as another user, etc. So far I get nothing. I tried on another machine and it did install there so I am not sure what the issue is. When i tried to enumerate a database though i now get this issue. CLR is installed for 2017 on that machine. |
The MSI is installing without issues on my development and test machines, although SmartScreen is kicking in as it's a new msi file that hasn't been "seen". I packaged the MSI file with only the DLL's that are referenced in the project, but it appears that some others are being dynamically linked in. I will add all the DLL's included in the NuGet package to attempt to ensure there are no other issues of the missing DLL type. |
Good news and bad news. The enumerating of the database is now running. However three specific issues.
Error message for issue 2. |
I will look where it failed and what I can upload. I do know there are third party add ins (Pragmatic Works Task Factory) Components in the solution that failed. |
2 of three issues above have been addressed in latest release. |
I am receiving the following error message when trying to scan a SQL Server 2017 (with a 2017 Repo). I have tried this on two machines and I am getting the same error on both (windows 10 machines). The 2014 and 2016 analyzer worked fine. I tried in the GUI and command line and received the error both places. I have SSMS 17.7 installed locally. I googled the error for a while thinking it was my local but than tried on a second machine.
Unexpected error occurred: Could not load file or assembly 'Microsoft.SqlServer.Smo, Version=14.100.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.
Stack Trace:
at Microsoft.Samples.DependencyAnalyzer.SQLDBEnumerator.EnumerateDatabase(String dbConnection, Boolean storeThreePartNames)
at Microsoft.Samples.DependencyAnalyzer.Program.EnumerateDatabase(DependencyArguments dependencyArguments, Repository repository)
at Microsoft.Samples.DependencyAnalyzer.Program.Main(String[] args)
The text was updated successfully, but these errors were encountered: