Error while doing assessment using Data migration assistant (DMA) tool - azure-sql-database

Getting error while doing assessment using DMA tool for choosing assessment type as Integration Services.
Error message :
The assessment of database 'Package store' on server 'STP637388' failed.
The error message: 'Failed to assess SSIS packages or projects: 'Could not load file or assembly 'Microsoft.SqlServer.ManagedDTS, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.'.'.

To move your existing SSIS packages and projects to Azure and use them with Azure SQL and Azure Managed Instance you need to read this documentation.
To assess SQL Server Integration Service(SSIS) packages, below components need to be installed with Data Migration Assistant:
SQL Server Integration Service with the same version as the SSIS
packages to assess.
Azure Feature Pack or other third party components if SSIS packages to assess have these components.
DMA needs to run with administrator access to assess SSIS packages in Package Store.
Please read this documentation for more information.

Related

No team project error during vss migrate to devops

Struggling to fix this error. We are migrating a vss2005 db to devops.
The vss has a single project named devloptool.
In devops, we created a project with name devloptool too.
We use the tool mentioned in
https://www.google.com/url?sa=t&source=web&rct=j&url=https://www.risual.com/2020/01/migrating-from-vss-to-azure-devops/&ved=2ahUKEwj3y5Gw56f0AhUzKX0KHWTlAgcQFnoECAUQAQ&usg=AOvVaw1qWTihWY0C73zgMmz6yHmr
During the migration, the tool threw error of
Team project "$developtool\developtool" not found.
In stead of pushing all files directly to $develop folder, not sure why the migration tool trying to push them to $developtool\developtool
Any helps are appreciated.
The error was caused by wrong repository type.
To use the migration tool, the target must be a tfvc repository while I had git.

TFS Build definition - add step to run DacPac for Unit Tests

We are using an on-premise installation of Microsoft Visual Studio Team Foundation Server Version 16.131.
We have a Development Continuous integration build definition that includes running some unit-tests on a very old application. As such, the unit-tests require a database to run (I know, not an ideal situation with unit tests...)
One of the artifacts of the build is a DACPAC of the database.
I'd like to deploy any database changes from that DACPAC as part of the build definition, before running the Unit-Test steps. That way, any tests that are added / changed that are dependent on database changes will (hopefully) pass.
Any ideas if this is possible, and if so, how can I publish from the DACPAC within the build definition?
We are using a PowerShell step in the build/release pipeline.
In the powershell script you will call SqlPackage:
&"C:\Program Files\Microsoft SQL Server\140\DAC\bin\SqlPackage.exe" /Action:Publish /SourceFile:"Dacpac_Artifact\DACPAC\DB.dacpac" /Profile:"Dacpac_Artifact\DACPAC\FileWithPublishPrife.publish.xml"
You could also have a look at this Microsoft DevLabs task, it also contains a sub task to deploy dacpac remotely, so you could deploy to another machine (or use localhost to deploy on the build server itself if you want). There are also other marketplace task you could use just navigate to the store and type sql you'll see a dozen.
IIS Web App Deployment Using WinRM

TFS 2015 exception when uploading build task

I get this error in the TFS logs when I try to upload a task in the new TFS build system using the tfx-cli tool:
Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentVersionMismatchException:
The task definition being uploaded requires a minimum agent version of 1.88.0.
The server's agent version is 1.83.2.
Unfortunately that is the agent that TFS provides for download.
It is an On Premise TFS server.
Does anyone know how to get the 1.88 version of the agent?
I did modified the task json file and I was able to upload it however it did not show up in the TFS UI.
And the reason is here:
https://github.com/Microsoft/tfs-cli/issues/30
In summary I was trying to use IISWebAppDeploy task which from the official git repository but that task is still in development and it will not show up in TFS until marked for release.
I suppose 1.88 is the current version of the VSO build agents. At least if I login to my VSO project and switch to the Hosted pool, the hosted agent is of version 1.88. I suspect it is being upgraded by the VSO silently. Thus, if you download an agent from VSO one of these days, it will most likely have version 1.88.
However, I'm not sure it is a good idea. First verify whether you really need a more recent version. The minimalAgentVersion is defined in the custom task definition, the JSON file. Try changing it down to your agent version, 1.83.2. Most likely, you should not require a higher version of the agent in your custom task until you upgrade your TFS instance.

Windows Azure - Microsoft.IdentityModel not found

I installed WIF runtime and SDK on my machine. I added Microsoft.IdentityModel.dll to my azure web application and locally everything is running great. I build simple web application which use Azure AppFabric Access control. I follow azure labs for that and as I told, local everything is great. When I published my web application to Azure, I'm getting following error :
Unable to find assembly 'Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
I get it after Appfabric Relaying part is going to return url, after sign in on identity provider. The weird thing is that I set Copy Local to TRUE, because that .dll is not part of Azure GAC. I tried to publish it again, but I received same error. I found few same problems on the internet but with no concrete solution. Does anybody here had something similar and probably have a working solution? Thank you in advance
For anything that I need to deploy locally to Azure I make a copy of the DLL's in my project folder and reference them from there while setting copy local to true. Since doing this I no longer have any issues with DLL's not being published to Azure. I also do all of my building through the command line using MSBuild and publish the cspack by hand. This means that I do not rely on Visual Studio for doing the build or deployment.
I have run into this and solution described in this blog helped. You will need to run this command from your role startup task:
gacutil /nologo /i .\Microsoft.IdentityModel.dll
This startup task has to be run with full privilegies.
Have you tried disabling encryption on the creation of the deployment package and verifying that the dll is indeed present?
Create a new environment variable called: _CSPACK_FORCE_NOENCRYPT_ set the value to true.Restart your visual studio.

ChatFx Lite LicenseException on build server

I downloaded ChartFx Lite and am using it successfully in my windows forms application on my development machine. I have added the ChartFX.Lite.dll assembly to my source repository and am trying to build the project on my build server that does not have ChartFx Lite installed. I get the error:
Exception occurred creating type 'SoftwareFX.ChartFX.Lite.Chart, ChartFX.Lite, Version=6.0.839.0, Culture=neutral, PublicKeyToken=a1878e2052c08dce' System.ComponentModel.LicenseException: Couldn't get Design Time license for 'SoftwareFX.ChartFX.Lite.Chart'
What do I need to do to get this working without installing ChartFx Lite on my build server?
If you just want to test the build, you can suppress the lines concerning ChartFx from the .licx file created by Visual Studio. It should build this way, but probably will not execute correctly, as the license will not be included.
The .licx file contains instructions to include binary license resource during build. I'm afraid that if you want a real build you have to install ChartFx on the build server.