Generating Db Versions - subsonic

I am trying to generate dbVersion using SubSonic but when I execute the following command:
C:\Program Files (x86)\SubSonic\SubSonic 2.1 Final\SubCommander\sonic.exe
version /out Generated\dbVersions\
I receive the following error:
Could not load file or assembly 'Microsoft.SqlServer.Management.Sdk.Sfc, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.
How I can resolve this issue?

I'm going to guess you're using SQL 2008? Have a look here:
http://msdn.microsoft.com/en-us/library/cc284267.aspx
You need to pull down the CLR objects as well as Native types (the answer is at the bottom):
"Downloading these resolved the issue
http://www.microsoft.com/downloads/details.aspx?FamilyId=C6C3E9EF-BA29-4A43-8D69-A2BED18FE73C&displaylang=en
From Microsoft SQL Server 2008 Feature Pack, August 2008:
Microsoft SQL Server System CLR Types
Microsoft SQL Server 2008 Management Objects
"

Related

BizTalk Deployment: File is not a valid BizTalk Assembly

I am using BizTalk 2020 and I have a project that I recently upgraded from BizTalk 2006. I have into the following error:
BTSTask.exe AddResource -Type:BizTalkAssembly -Source:"....\xxx.dll" -ApplicationName:"app1" -Options:GacOnAdd,GacOnImport,GacOnInstall
Microsoft (R) BizTalk Application Deployment Utility Version 3.13.717.0
Copyright (c) Microsoft Corporation. All rights reserved.
EXEC : error : File "....\xxx.dll" is not a valid BizTalk assembly. [F:\GIT\xxx\xxx.Deployment\Deployment.btdfproj]
Could not load file or assembly 'xxx.dll' or one of its dependencies. The system cannot find the path specified.
Command failed with 1 errors, 0 warnings.
What I have tried:
I check all the referenced assemblies and they are correct and in the GAC.
I have given access to the temp folder, for the account Network service.
in the deployment section of the project I have provided the target application name.
I have seen that the orchestration that is failing is of type System.Biztalk.BiztalkAssembly where the project that are of type System.Biztalk.Assembly deployed successfully. Could as yet not determine why there is a difference in the projects.
I am using Deployment framework 5.8 if that is of help.
Due to the error message...
"Could not load file or assembly 'xxx.dll' or one of its dependencies.
The system cannot find the path specified."
...you likely have an unwanted, incorrect version, incorrect .NET Framework version, or missing DLL referenced by your DLL.
I suggest downloading a free decompiler such as Telerik JustDecompile or JetBrains dotPeek, opening up your DLL in it, and carefully inspecting the references. The tool might even flag the problematic reference. Carefully check that the referenced DLL's exist on disk, that they are for the correct BizTalk version and matching .NET Framework version. There's a good chance that something was overlooked in the upgrade from BizTalk 2006.

AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application: 'cf710c6e-dfcc-

I keep on getting this error:
AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application: 'cf710c6e-dfcc-4fa8-a093-d47294e44c66'.
Getting this error in Visual Studio in an SSIS project. In my project I added an Analysis Services Processing Task to my control flow.
When I start to edit the Analysis Services Processing Task, Authentication window opens I sign in then the above error is presented.
This has never been a problem. This started 1 day ago. Cant explain why.
I have update the following
Visual Studio 2019 + Data Tools and extensions
SQL Management Studio
Any help will be much a appreciated
The current error message you are facing is due to the retirement of old client libraries. Microsoft shared the following warning to customers that were using older versions of client libraries:
Analysis Services client libraries version 19.12.3.0 or higher offers important security enhancements, so any applications that are still using earlier versions of the Analysis Services client libraries will not be supported after 30 June 2021.
Action required
To minimize risk and potential security vulnerabilities, please update your Analysis Services client libraries to version 19.12.3.0 or higher before 30 June 2021.
However, ( I believe ) the actual implementation date was on the 5th of July.
If you are facing issues connecting using SSMS/SSIS/VS:
Update the AS Libraries to the latest version from Analysis Services client libraries | Analysis Services client libraries
Update your SSMS to the latest version v18
Make Sure you have the latest updates for SSIS
If you are facing any issues with connecting using Excel:
Please check if you are using Excel’s MSI version or the ClickToRun version (This can be found using File > Account and About Excel)
If using MSI version, directly downloading the latest AS client libraries and upgrading them can help mitigate the issue (latest versions can be downloaded here: Analysis Services client libraries) “same as SSMS”
If using the ClickToRun version, please install the latest Office updates to help push the latest AS OLEDB libraries
One quick solution to help mitigate the issue, is to download and
install the latest client drivers and then copy from "AS OLEDB\140"
folder into the Excel ClickToRun’s ASOLEDB\140 folder and test if it solves the issue. Please take a backup of the existing ASOLEDB folder within MS Office.
Copy From:
C:\Program Files (x86)\Microsoft Analysis Services\AS OLEDB\140
To:
C:\Program Files\Microsoft Office\root\vfs\ProgramFilesX64\Microsoft Analysis Services\AS OLEDB\140\ [If 64-bit]
C:\Program Files (x86)\Microsoft Office\root\vfs\ProgramFilesX86\Microsoft Analysis Services\AS OLEDB\140\ [If 32-bit]

Azure Function - Could not load file or assembly

Im running an Azure Function .NET Standard 2.0 and get following error:
An exception of type 'System.IO.FileLoadException' occurred in Function.dll but was not handled in user code
Could not load file or assembly 'Microsoft.WindowsAzure.Storage, Version=9.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
The assembly file exist in the bin/debug folder. Been reading some threads about this but without a solution (https://github.com/Azure/azure-functions-core-tools/issues/322#issuecomment-352233979), anyone know what to do?
I'm using code from another .NET Standard 2.0 project but all my projects have a reference to Microsoft.WindowsAzure.Storage 9.2.0.0 and that nuget package installed.
Thanks!
You can add reference below to downgrade your storage reference explicitly.
<PackageReference Include="WindowsAzure.Storage" Version="8.6.0" />
See this issue comment.
This restriction (like many of the other assembly version restrictions we had with other extensions) is a temporary issue and will be addressed in upcoming preview releases.
This issue has been fixed in latest host 2.0.11888, but built cli(tools to run functions) is not available yet.
Update
2.0.11888 has been available to VS users.

Exception in npgsql 3.2.0 connecting to PostgreSQL via Excel PowerQuery

I have a PostgreSQL 9.6.1 database from which I want to extract data for use in Excel with Get & Transform (PowerQuery). I have 64-bit Excel 2016 Pro Plus running on Windows 10 64-bit with .NET framework 4.6 installed.
When I try to use "Data->New Query -> From Database -> From PostgreSQL Database", I put the server name (localhost) and DB name into the dialog box.
I then get the error message,
An error happened while reading data from the provider: 'The type initializer for 'Npgsql.Counters' threw an exception.'
I have the following setup:
npgsql 3.2.0 installed with nuget. There are 3 versions of the DLL, net45, net451 and netstandard1.3. I used net451 for no other reason that it was closest to 4.6.
mono.security.dll 4.0.0.0. I added both of the DLLs to the global cache with gacutil.exe
I updated machine.config as follows for DbProviderFactories
add description=".Net Framework Data Provider for Postgresql Server" type="Npgsql.NpgsqlFactory, Npgsql, Version=3.2.0.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7" name="Npgsql Data Provider" invariant="Npgsql" support="FF"
Could anyone help me understand if I did anything wrong?
It looks like this is an issue with a recent npgsql release? Until that's fixed, if you install version 3.1 or 3.0 Power Query should work :)
One other thing you could try is using net45. We officially support .NET 4.5.1 but sometimes you have more luck with older releases.

Issue with ReportViewer on Windows Azure websites (WAWS)

In one of my project i have used reportviewer control to display reports on web pages and at time of uploading on Azure I have followed the steps mentioned here
After uploading when i runs that report web page then it's giving me below error
An error occurred during local report processing.
The definition of the report 'Reports\Report1.rdlc' is invalid.
An unexpected error occurred in Report Processing.
Could not load file or assembly 'Microsoft.ReportViewer.ProcessingObjectModel, >
Version=10.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its
dependencies. The system cannot find the file specified.
What should be cause of this?
Update:
I have added following 2 dlls as shown in below snap
Microsoft.ReportViewer.Common.dll (10.0)
Microsoft.ReportViewer.WebForms.dll (10.0)
After long research i found solution of my problem from this link
The problem with missing reference of below dlls
Microsoft.ReportViewer.ProcessingObjectModel.dll
Microsoft.RevportViewer.DataVisualization.dll
but after instaling i could not found those dlls in C:\Windows\Microsoft.NET\assembly\GAC_MSIL
But there is assembly files available in this path C:\Windows\assembly
then i have added those dlls using VS2010 directly as shown in below fig.
And it's worked!
What is the version of ReportViewer you have used in this project and would you please specify how many and which one Reference DLL you have included in your project? This will help to ensure that you have included all the DLL properly in your project. You must use Report Viewer SP1 which is compatible with Azure DB, and the same SP1 language pack.
I would suggest FTP to your website and verify that you do have all the DLL uploaded correctly as you configure in your project. This is the best way to check in Windows Azure Websites if all the configured files made it to file server.

Resources