dynamics crm 2016 use Microsoft.Xrm.Tooling.Connector in plugin - plugins

In Dynamics CRM 2016 on-premise, I need to read in a plugin some information from another Dynamics CRM 2016 on-premise.
I am trying to use use Microsoft.Xrm.Tooling.Connector to get a CrmServiceClient object for getting information from the remote Dynamics CRM.
I can register the plugin but when the step of the plugin is triggered I receive an error message:
Business Process Error
Impossible de charger le fichier ou l'assembly 'Microsoft.Xrm.Tooling.Connector, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' ou une de ses dépendances. Le fichier spécifié est introuvable.
I want to know if this is the right way to get information from another CRM in the context of a plugin, and how can I resolve the above error.
Thank you
Radu

The Microsoft.Xrm.Tooling.Connector.dll is not available on the CRM Server, because it is a client-side library.
You need to make it available on the server by adding it (and any dependencies) to the GAC (on each CRM server) or including it with the assembly using ILMerge.

Related

Why can't i create a GPO to install a .msi to clients?

(I am using a german Windows Server 2019, so bear with me. I try to translate everything to recognizable english ui equivalents)
The goal is to create a GPO to install a .msi file to client computers. Everytime I try to create the GPO, it says
Add operation failed. Unable to extract deployment information from the package. Run validation on the package to ensure that the package is correct.
The Windows Event Log outputs a warning and then an error(translated by me).
Warning:
Warning: Event 119, Software Installation
While reading the msi file \\dc1\gpo\Install\AnyDesk_Client_v2.msi, an unexpected error occured. The error is not severe enough to cancel the operation. The following error occured: The operation was completed successfully
Original german text:
Beim Lesen der MSI-Datei \\dc1\gpo\Install\AnyDesk_Client_v2.msi ist ein unerwarteter Fehler aufgetreten. Der Fehler ist nicht schwerwiegend genug, um den Vorgang abzubrechen. Folgender Fehler ist aufgetreten: Der Vorgang wurde erfolgreich beendet.
Error:
Error: Event 103, Software Installation
The Software Installation could not deliver/prepare the package AnyDesk_Client_v2.msi. The following error occured: The directory name is invalid
Original german text:
Die Softwareinstallation konnte das Paket AnyDesk_Client_v2.msi nicht bereitstellen. Folgender Fehler ist aufgetreten: Der Verzeichnisname ist ungültig.
What I tried:
Using another msi. Used the standard Anydesk.msi (so no "_" in the filename). I tried the Teams x64 .msi from MS Teams MSI Download. I tried a Futuremark_SystemInfo.msi I had
lying around.
I put all the files in \dc1\NETLOGON and tried again. I put all the files in \dc1\SYSVOL and tried again. I checked that authenticated users had access to the share. I logged on directly on the Domain Controller as Domain Admin via RDP. I logged directly on the Domain Controller via VMRC (it's a virtual environment). I checked if I can access the shares I put the .msi's in (I can). I got a tip that says
Go to Default Domain Controllers Policy
Expand Computer Configuration\Windows Settings\Administrative Templates\System\Netlogon
Change the Netlogon and Sysvol Compatibility to enabled (2 seperate settings)
This does not work because there is no Computer Configuration\Windows Settings\Administrative Templates - it is Computer Configuration\Administrative Templates. But there is no setting to enable NETLOGON/SYSVOL Compatibility underComputer Configuration\Administrative Templates. I assume this is a tip relating to an older Windows Server version.

Azure DevOps Server 2019 Update 1 (Express) -> TF401320 error about Triage - CMMI field

I created a new project in my on premise LAB installation of Azure DevOps Server 2019 Update 1 (Express), with repo TFVC and process template CMMI (predefined).
When I try to save any work item (of any workitem type) or any activity in product backlog, raises error
TF401320: errore nella regola per il campo Valutazione - CMMI. Codice errore: Required, HasValues, LimitedToValues, InvalidEmpty.
translating from italian some like
TF401320: error in rule about field Triage - CMMI. Error code: Required, HasValues, LimitedToValues, InvalidEmpty.
Before saving, when i open edit form to create a new workitem, under column "Planning" appears
Valutazione Non è possibile creare il controllo dell'elemento di lavoro di tipo "FieldControl"
translating from italian some like
Triage Cannot create the control of work item type "FieldControl"
If I create a project with process template Scrum, there is no issue creating any workitem.
Have you any idea or advice?
Thanks in advance

Azure DevOps 2019 On-Prem - Error on creating collection : "LeaseLostException on step Create Framework Security Namespaces" [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I am facing an error when I try to create a collection on Azure DevOps On premises from the administration console.
It seems to happen when DevOps manages the CreateCollection.Service.Analytics part. I can't find any reference to this problem on Google.
I choose the Inheritance process model in the wizard and when I launch the installation, after a few minutes :
[15:15:32.793] Executing step: Enable analytics on-prem for new collections
[15:15:32.793] Executing step: 'Enable analytics on-prem for new collections' AnalyticsCollection.EnableAnalyticsOnPrem (360 of 387)
[15:16:13.407] [Warning] Impossible d'activer Analytics pour cette nouvelle collection. Vous pouvez y remédier en réactivant Analytics manuellement. Pour plus d'informations, consultez la documentation : https://go.microsoft.com/fwlink/?linkid=2093060.
[15:16:13.533] [Warning] Analytics failed to enable for new collection due to: Le bail de AnalyticsStateService.SetFeatureState, dont le propriétaire est f24b9929-5d00-498c-9b4c-1e6d8c5f8f77, obtenu le 10/03/2020 14:15:33 par le processus abde3e12-0d37-4751-a1fe-23387f8c5268 a expiré le 10/03/2020 14:16:03
***
in english :
Unable to enable Analytics for this new collection. You can fix it by reactivating Analytics manually (so later no ??? )
The lease for AnalyticsStateService.SetFeatureState, owned by f24b9929-5d00-498c-9b4c-1e6d8c5f8f77, obtained on 10/03/2020 14:15:33 by the process abde3e12-0d37-4751-a1fe-23387f8c5268 expired on 10 / 03/2020 14:16:03
***
[15:16:13.540] Step passed (with warnings): Enable analytics on-prem for new collections. Execution time: 40 seconds.
[15:16:13.540] [StepDuration] 40,7454734
[15:16:13.597] [GroupDuration] 67,5660477
[15:16:13.597] [OperationDuration] 67,56617
[15:16:13.597] +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[15:16:13.597] ++ Executing - Operation: CreateCollection.Service.Analytics.Sdk, Group: CreateCollection.Service.Analytics.Sdk
[15:16:13.597] +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[15:16:13.597] Step skipped: Queue Analytics Maintain Staging Schedules Job.
[15:16:13.600] [GroupDuration] 0,0046515
[15:16:13.600] [OperationDuration] 0,0046985
[15:16:13.600] +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[15:16:13.600] ++ Executing - Operation: CreateCollection.Service.Notifications, Group: CreateCollection.Service.Notifications
[15:16:13.600] +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[15:16:13.600] Executing step: Load service tokens
[15:16:13.600] Executing step: 'Load service tokens' FrameworkTokens.ConfigureServiceTokens (362 of 387)
[15:16:13.603] Step passed: Load service tokens. Execution time: 3 milliseconds.
[15:16:13.603] [StepDuration] 0,0002612
[15:16:13.603] +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Executing step: Create Framework Security Namespaces
[15:16:13.603] Executing step: 'Create Framework Security Namespaces' Security.CreateSecurityNamespaces (363 of 387)
[15:16:13.603] There are 1 security namespaces to create/update.
[15:16:13.603] Validating 'EventSubscription' security namespace.
[15:16:13.603] Creating/updating security namespace(s).
[15:16:13.603] [Error] Le bail de AnalyticsStateService.SetFeatureState, dont le propriétaire est f24b9929-5d00-498c-9b4c-1e6d8c5f8f77, obtenu le 10/03/2020 14:15:33 par le processus abde3e12-0d37-4751-a1fe-23387f8c5268 a expiré le 10/03/2020 14:16:03
***
in english :
Same error but with stack trace
The lease for AnalyticsStateService.SetFeatureState, owned by f24b9929-5d00-498c-9b4c-1e6d8c5f8f77, obtained on 10/03/2020 14:15:33 by the process abde3e12-0d37-4751-a1fe-23387f8c5268 expired on 10 / 03/2020 14:16:03
***
[15:16:13.633] Microsoft.TeamFoundation.Framework.Server.LeaseLostException: Le bail de AnalyticsStateService.SetFeatureState, dont le propriétaire est f24b9929-5d00-498c-9b4c-1e6d8c5f8f77, obtenu le 10/03/2020 14:15:33 par le processus abde3e12-0d37-4751-a1fe-23387f8c5268 a expiré le 10/03/2020 14:16:03
[15:16:13.633] à Microsoft.TeamFoundation.Framework.Server.VssRequestContext.CheckCanceled(Boolean throwIfShutdown)
[15:16:13.633] à Microsoft.TeamFoundation.Framework.Server.VssRequestContext.get_ServiceProvider()
[15:16:13.633] à Microsoft.TeamFoundation.Framework.Server.VssRequestContextExtensions.GetService[TService](IVssRequestContext context)
[15:16:13.633] à Microsoft.VisualStudio.Services.Framework.SecurityStepPerformer.CreateOrUpdateSecurityNamespaces(IVssRequestContext requestContext, ServicingContext servicingContext, LocalNamespaceDescriptionStepData[] securityNamespaceDescriptions)
[15:16:13.633] à Microsoft.TeamFoundation.Framework.Server.TeamFoundationStepPerformerBase.PerformHostStep(String servicingOperation, ServicingOperationTarget target, IServicingStep servicingStep, String stepData, ServicingContext servicingContext)
[15:16:13.633] à Microsoft.TeamFoundation.Framework.Server.TeamFoundationStepPerformerBase.PerformStep(String servicingOperation, ServicingOperationTarget target, String stepType, String stepData, ServicingContext servicingContext)
[15:16:13.633] à Microsoft.TeamFoundation.Framework.Server.ServicingStepDriver.PerformServicingStep(ServicingStep step, ServicingContext servicingContext, ServicingStepGroup group, ServicingOperation servicingOperation, Int32 stepNumber, Int32 totalSteps)
[15:16:13.633] Step failed: Create Framework Security Namespaces. Execution time: 30 milliseconds.
It is the first collection that I created from scratch on Azure DevOps, but I already have a migrated collection from tfs 2015 which works very well. I don't want to create my collection on tfs2015 only to migrate it to devops :(
The reports are not configured, I understand that I can configure them later when I really want to use them. I did not install SSRS but if it is necessary I would do it.
The Analytics service feature is installed on my instance of SQL Server. SQL Server is installed on the same server.
The database for the collection was created but the state in the console is Offline and I cannot re-execute the creation work I have an error, I have to delete it with command line.
Edit:
I tested a creation with the xml process model and it's working. In the settings page I see Analytics is activated.
Edit 2: Thanks to #PatrickLu-MSFT, that's work.
I had already tried to restart the server before posting but without success.
This time I tried to restart all SQL services from SQL Configuration Manager and recreate the collection, but it still failed, it was not enough.
Then I used Services to restart the service again: SQL Server (MSSSQLSERVER) and I reboot the server as Patrick told me. And it worked, I was able to create my collection with inheritance model!
According to your description, there maybe something wrong with your SQL Service.
Please attempt to restart the SQL Server service, and if it hung up on trying to stop the service. Then you could try to reboot the server and try to create a new collection again.
If this not do the trick, also kindly check if there are some information in Event View. That might help pinpoint the problem.

SSRS 2016 - 'extension Name' is not valid

I am trying to set up a new subscription in SSRS 2016 and the Delivery options (E-Mail) aren't loading. Here is the error message:
Exception of type 'System.Web.HttpUnhandledException' was thrown.
The value of parameter 'extension Name' is not valid. (rsInvalidParameter)
I have the SMTP server setup in the Configuration Manager and have sent test emails with it. Is there another configuration I might have missed?
I ended up trying to add it using powershell and finally got a useful error message telling me my version of SSRS didn't support adding schedules.
Exception calling "ListSubscriptions" with "1" argument(s): "System.Web.Services.Protocols.SoapException: The feature: "Subscriptions to reports" is not supported in
this edition of Reporting Services.
I am using Web, but apparently I need the Standard version to proceed
https://learn.microsoft.com/en-us/sql/reporting-services/reporting-services-features-supported-by-the-editions-of-sql-server-2016

Firebird DDEX Provider Visual Studio 2013 SP3 - Connection dialog disappears immediately

I've installed the latest Firebird ADO.Net Provider (FirebirdSql.Data.FirebirdClient-4.5.1.0.msi) and the latest Firebird DDEX Provider (DDEXProvider-3.0.1.0.msi).
Both providers are registered in GAC.
FirebirdSql.VisualStudio.DataTools, Version=3.0.1.0, Culture=neutral, PublicKeyToken=bae6c78ccb0fcdb3, processorArchitecture=MSIL
FirebirdSql.Data.FirebirdClient, Version=4.5.1.0, Culture=neutral, PublicKeyToken=3750abcc3150b00c, processorArchitecture=MSIL
The Firebird ADO.Net Provider is also registered in the "DbProviderFactories" Node of the machine.config (for both x86 and x64).
<add name="FirebirdClient Data Provider" invariant="FirebirdSql.Data.FirebirdClient" description=".NET Framework Data Provider for Firebird" type="FirebirdSql.Data.FirebirdClient.FirebirdClientFactory, FirebirdSql.Data.FirebirdClient, Version=4.5.1.0, Culture=neutral, PublicKeyToken=3750abcc3150b00c"/>
I'm trying to create a new Database Connection using the DDEX Provider in VS2013 SP3, but it's not
working. When I change any values in the "Firebird Data Source" connection dialog, the dialog disappears.
I debugged VS2013 in background with a 2nd VS2013 Instance and got this Output messages, while the connection dialog disappears:
FbDataConnectionUIControl::LoadProperties()
Eine Ausnahme (erste Chance) des Typs "System.NullReferenceException" ist in FirebirdSql.VisualStudio.DataTools.dll aufgetreten.
System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
bei FirebirdSql.VisualStudio.DataTools.FbDataConnectionUIControl.LoadProperties()
FbDataConnectionUIControl::LoadProperties()
Eine Ausnahme (erste Chance) des Typs "System.NullReferenceException" ist in FirebirdSql.VisualStudio.DataTools.dll aufgetreten.
System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
bei FirebirdSql.VisualStudio.DataTools.FbDataConnectionUIControl.LoadProperties()
Eine Ausnahme (erste Chance) des Typs "System.NullReferenceException" ist in FirebirdSql.VisualStudio.DataTools.dll aufgetreten.
Any ideas how I can get the provider to run or where I can look for other prerequisites?
I had a similar problem and after a week of googling I think I have found a fix.
Download and install the following:
Visual Studio SDK
Firebird ADO.NET Data Provider
Firebird DDEX Provider
When installing the providers, make sure to click on the "Advanced" button. This is needed for installing the DDEX provider as it will give you a chance to choose which versions of Visual Studio it will get installed on. Installation on the GAC and registry should be taken care of by the DDEX installer.
HTH.
I had a similar problem. I removed the FirebirdSql.Data.FirebirdClient.dll from the GAC, uninstalled and reinstalled DDEX and registered the firebird client in C:\Program Files (x86)\FirebirdClient\FirebirdSql.Data.FirebirdClient.dll (which i downloaded as an msi installer from firebirdsql.org
Not sure if this will fix your problem but worth a try.