Visual Studio 2012 Not Working Properly - Unexpected Error - c#

My visual studio is acting weird. When I try to open a fresh unit test it freezes, gives me three options (close, restart, debugg), and does it again. When I open an existing file; they open but do not Run or Execute.
When trying to test or debug, I recieve a message that states "Unexpected error detected. Check the Tests Output Pane for details.".
Heading over to the output pane I get this message(Show output from tests):
" System.ArgumentNullException: Value cannot be null.
Parameter name: source
at Microsoft.VisualStudio.Shell.ValidateArg.NotNull[T](T arg, String parameterName)
at Microsoft.VisualStudio.Shell.ValidateArg.NotNullOrEmpty[T](IEnumerable`1 arg, String parameterName)
at Microsoft.VisualStudio.Shell.Interop.VSProjectExtensions.CompareNormalizedPath(String source, String target)
at Microsoft.VisualStudio.Shell.Interop.VSProjectExtensions.GetKeyOutputForIVsOutputGroup(IVsOutputGroup outputGroup)
at Microsoft.VisualStudio.Shell.Interop.VSProjectExtensions.GetProjectOutputPath(IVsProjectCfg2 projectConfig, String groupName)
at Microsoft.VisualStudio.Shell.Interop.VSProjectExtensions.GetKeyOutputForGroup(IVsSolutionBuildManager buildManager, IVsProject project, String groupName)
at Microsoft.VisualStudio.TestWindow.VsAdapters.VsTestContainer.get_Source()
at Microsoft.VisualStudio.TestWindow.VsAdapters.VsTestContainer.CreateTimeStamp()
at Microsoft.VisualStudio.TestWindow.VsAdapters.VsTestContainer..ctor(ITestContainerDiscoverer discoverer, ILogger log, IVsProject project, IServiceProvider serviceProvider, IVsAppContainerUtilities appContainerUtilities)
at Microsoft.VisualStudio.TestWindow.VsAdapters.VsProjectOutputContainerDiscoverer.<get_TestContainers>b__0(IVsProject p)
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Microsoft.VisualStudio.TestWindow.Controller.TestContainerDiscovererExtension.GetSortedContainers(ITestContainerDiscoverer discoverer)
at Microsoft.VisualStudio.TestWindow.Controller.TestContainerProvider.GetContainersFromDiscoverer(ITestContainerDiscoverer discoverer)"
I have tried updating my SSDT version to the latest and that has not been of help to me. Please help I depend on this program for day to day usage.

Related

Ribbon. The value cannot be null. Parameter name: obj

I am adding Ribbon.
Instead of Ribbon, I am getting error.
Error:
The value cannot be null. Parameter name: obj
at Microsoft.Internal.VisualStudio.PlatformUI.Utilities.GetObjectData (IVsUIObject obj)
at Microsoft.VisualStudio.Tools.Office.Ribbon.ImageHelper.GetImageFromMoniker (ImageMoniker moniker, Size ImgSize, Int32 dpi, Nullable`1 backgroundColor)
at Microsoft.VisualStudio.Tools.Office.Ribbon.View.Themes.Office15Theme.GetFileMenuImage (Boolean hover, Boolean opened, Control control)
at Microsoft.VisualStudio.Tools.Office.Ribbon.View.Themes.OfficeTheme.GetFileMenuSize (Control control)
at Microsoft.VisualStudio.Tools.Office.Ribbon.View.RibbonView.InitializeComponent ()
at Microsoft.VisualStudio.Tools.Office.Ribbon.View.RibbonView.set_Site (ISite value)
at System.ComponentModel.Container.Add (IComponent component, String name)
at System.ComponentModel.Design.DesignerHost.PerformAdd (IComponent component, String name)
at System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IDesignerHost.CreateComponent (Type componentType, String name)
at System.ComponentModel.Design.Serialization.DesignerSerializationManager.CreateInstance (Type type, ICollection arguments, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.DesignerSerializationManager.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.CreateInstance (Type type, ICollection arguments, String name, Boolean addToContainer)
at Microsoft.VisualStudio.Tools.Office.Serialization.TypeResolutionModifications.VSTDesignerSerializationManager.CreateInstance (Type type, ICollection arguments, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize (IDesignerSerializationManager manager, CodeTypeDeclaration declaration)
at Microsoft.VisualStudio.Tools.Office.Ribbon.Serialization.RibbonTypeCodeDomSerializer.Deserialize (IDesignerSerializationManager manager, CodeTypeDeclaration declaration)
at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad (IDesignerSerializationManager manager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad (IDesignerSerializationManager serializationManager)
--- End of the stack trace from the previous location where the exception was thrown ---
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad (IDesignerSerializationManager serializationManager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted (Int32 fReload)
Description.
I want to create an Excel Addin.
I created a project.
I am adding Ribbon.
An error is displayed instead of Ribon.
Question.
Why is there an error?
How to fix the error "The value cannot be null. Parameter name: obj"?
Used.
Wni - 7x64;
Visual Studio - 2019 Community.
Picture1.
Picture2.
Picture3.
Update-1.
Opened a project in Visual Studio-2017 Community.
Ribbon opens.
Question.
Why won't Ribbon open in Visual Studio-2019 Community?
Picture-4
Update-2
I made a right click - > I chose "Build".
Visual Studio has completed the "Build".
Visual Studio added a file to the Solution - ExcelAddInTest_04_TemporaryKey.pfx.
I added a Ribbon.
Result: Error.
The value cannot be undefined. Parameter name: obj
in Microsoft. Internal.VisualStudio.PlatformUI.Utilities.GetObjectData(IVsUIObject obj)
in Microsoft. VisualStudio.Tools.Office.Ribbon.ImageHelper.GetImageFromMoniker(ImageMoniker moniker, Size ImgSize, Int32 dpi, Nullable`1 backgroundColor)
in Microsoft. VisualStudio.Tools.Office.Ribbon.View.Themes.Office15Theme.GetFileMenuImage(Boolean hover, Boolean opened, Control control)
in Microsoft. VisualStudio.Tools.Office.Ribbon.View.Themes.OfficeTheme.GetFileMenuSize(Control control)
in Microsoft. VisualStudio.Tools.Office.Ribbon.View.RibbonView.InitializeComponent()
in Microsoft. VisualStudio.Tools.Office.Ribbon.View.RibbonView.set_Site(ISite value)
in System.ComponentModel.Container.Add(IComponent component, String name)
in System.ComponentModel.Design.DesignerHost.PerformAdd(IComponent component, String name)
in System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IDesignerHost.CreateComponent(Type componentType, String name)
in System.ComponentModel.Design.Serialization.DesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
in System.ComponentModel.Design.Serialization.DesignerSerializationManager.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
in Microsoft. VisualStudio.Tools.Office.Serialization.TypeResolutionModifications.VSTDesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
in System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration)
in Microsoft. VisualStudio.Tools.Office.Ribbon.Serialization.RibbonTypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration)
in System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
in Microsoft. VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
--- End of the stack trace from the previous location where the exception occurred ---
in Microsoft. VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
in Microsoft. VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32 fReload)
Picture-1
Picture-2
Picture-3
Update-3.
I moved to Visual Studio-2017.
I created an add-on (project-1).
I added a Ribbon.
Ribbon is displayed.
I moved to Visual Studio-2019.
I opened a previously created add-in (project-1).
I opened the Ribbon.
Ribbon is not displayed. I get an error.
I started debugging (F5).
I opened an Excel file.
Result: Ribbon is displayed in Excel.

Can't get a Allure report to be generated in c# specflow .net Core. Value cannot be null. (Parameter 'key') Value cannot be null. OnScenarioStart();

I have written a C# test automation Framework on .netcore 3.1 that is using Specflow and Specrun.
I can run the tests with Specrun and get a report, however I would like to get an Allure report.
So I have installed Specflow.Allure. I have an allureConfig.json.
I was hoping that I could now just run the tests and get an Allure report.
However it seems it is not that simple.
When I try to run the tests if fails with the message shown below.
Anyone know what I am doing wrong? Do I need to add more code in order to get the Allure report?
Message:
Value cannot be null. (Parameter 'key')
Stack Trace:
System.ArgumentNullException: Value cannot be null. (Parameter 'key')
ConcurrentDictionary2.ThrowKeyNullException()
ConcurrentDictionary2.TryGetValue(TKey key, TValue& value)
ConcurrentDictionary2.get_Item(TKey key)
AllureStorage.Get[T](String uuid)
AllureLifecycle.UpdateFixture(String uuid, Action1 update)
AllureLifecycle.UpdateFixture(Action1 update)
AllureLifecycle.StopFixture(Action1 beforeStop)
AllureBindingInvoker.InvokeBinding(IBinding binding, IContextManager contextManager, Object[] arguments, ITestTracer testTracer, TimeSpan& duration)
TestExecutionEngine.InvokeHook(IBindingInvoker invoker, IHookBinding hookBinding, HookType hookType) line 352
RunnerTestExecutionEngine.InvokeHook(IBindingInvoker invoker, IHookBinding hookBinding, HookType hookType)
TestExecutionEngine.FireEvents(HookType hookType) line 338
TestExecutionEngine.FireScenarioEvents(HookType bindingEvent) line 322
RunnerTestExecutionEngine.FireScenarioEvents(HookType bindingEvent)
TestExecutionEngine.OnScenarioStart() line 199
RunnerTestExecutionEngine.OnScenarioStart()
TestRunner.OnScenarioStart() line 55
LM01InitialCaseFeature.ScenarioStart()
LM01InitialCaseFeature.LM01_01DefaultLM01InitialCase() line 4
StaticOrInstanceMethodExecutor.ExecuteInternal(ITestThreadExecutionContext testThreadExecutionContext)
StaticOrInstanceMethodExecutor.Execute(ITestThreadExecutionContext testThreadExecutionContext)
TestNodeTask.Execute()
The solution to this was to add specflow.json file and set to 'copy if newer' so it copies to the debug folder.
The content of specflow.json was:
{
"stepAssemblies": [
{
"assembly": "Allure.SpecFlowPlugin"
}
]
}
After making this change the tests ran correctly and an Allure report was generated.

SonarQube Analysis Task Error After File Move

We have been using SonarQube analysis on a C# project as part of a TFS 2015/15 RC2 vNext build for ages which has been working fine.
A few days a go I refactored several aspects of code, this consisted of moving files into new folders within the same project, as opposed to class name changes etc. Visual Studio didn't handle this correctly and I had to remove and re-add some files to the project on an individual basis.
Our analysis is now failing, when looking at the logs for the analysis task I can see the following error:
ERROR [o.s.s.c.t.CeWorkerCallableImpl] Failed to execute task AVe_-iOpE8SSKScA9O_3 java.lang.IllegalStateException:
Original file OriginalFile{id=1363, uuid='ca50dc09-5d0b-4083-9e52-eb0f66361422', key='MIS:MIS:4E9625D2-557E-450C-90CC-A6B6FB57B6C9:Models/XXX/Grids/ProjectTeams/SmpProjectTeamFilterModel.cs'}
already registered for file
ComponentImpl{key='StanMIS:StanMIS:4E9625D2-557E-450C-90CC-A6B6FB57B6C9:Models/Smp/Grids/ProjectTeams/SmpProjectTeamFilterModel.cs', type=FILE, uuid='AVe_-nQKU1hbfyCkniEZ', name='', description='null', fileAttributes=FileAttributes{languageKey='cs', unitTest=false},
reportAttributes=ReportAttributes{ref=1506, version='null',
path='Models/Smp/Grids/ProjectTeams/SmpProjectTeamFilterModel.cs'}}.
Unable to register OriginalFile{id=1353, uuid='1488ce7d-094c-4859-9e23-adae0f1ac2a3', key='StanMIS:StanMIS:4E9625D2-557E-450C-90CC-A6B6FB57B6C9:Models/XXX/Grids/DStanContacts/SmpDStanContactFilterModel.cs'}.
at com.google.common.base.Preconditions.checkState(Preconditions.java:197) ~[guava-18.0.jar:na]
at org.sonar.server.computation.filemove.MutableMovedFilesRepositoryImpl.setOriginalFile(MutableMovedFilesRepositoryImpl.java:41) ~[sonar-server-6.0.jar:na]
at org.sonar.server.computation.filemove.FileMoveDetectionStep.registerMatches(FileMoveDetectionStep.java:144) ~[sonar-server-6.0.jar:na]
at org.sonar.server.computation.filemove.FileMoveDetectionStep.execute(FileMoveDetectionStep.java:139) ~[sonar-server-6.0.jar:na]
at org.sonar.server.computation.step.ComputationStepExecutor.executeSteps(ComputationStepExecutor.java:64) ~[sonar-server-6.0.jar:na]
at org.sonar.server.computation.step.ComputationStepExecutor.execute(ComputationStepExecutor.java:52) ~[sonar-server-6.0.jar:na]
at org.sonar.server.computation.taskprocessor.report.ReportTaskProcessor.process(ReportTaskProcessor.java:75) ~[sonar-server-6.0.jar:na]
at org.sonar.server.computation.taskprocessor.CeWorkerCallableImpl.executeTask(CeWorkerCallableImpl.java:81) ~[sonar-server-6.0.jar:na]
at org.sonar.server.computation.taskprocessor.CeWorkerCallableImpl.call(CeWorkerCallableImpl.java:56) ~[sonar-server-6.0.jar:na]
at org.sonar.server.computation.taskprocessor.CeWorkerCallableImpl.call(CeWorkerCallableImpl.java:35) [sonar-server-6.0.jar:na]
at java.util.concurrent.FutureTask.run(Unknown Source) [na:1.8.0_45]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [na:1.8.0_45]
at java.util.concurrent.FutureTask.run(Unknown Source) [na:1.8.0_45]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source) [na:1.8.0_45]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [na:1.8.0_45]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.8.0_45]
at java.lang.Thread.run(Unknown Source) [na:1.8.0_45]
ERROR [o.s.s.c.t.CeWorkerCallableImpl] Executed task | project=MIS | type=REPORT | id=AVe_-iOpE8SSKScA9O_3 | submitter=XXX | time=24633ms
You face https://jira.sonarsource.com/browse/SONAR-8013. It is fixed in version 6.1.

An item with the same key has already been added when creating new WPF project

I just created a new WPF
project in Visual Studio 2015 Pro, and after the Creating Project dialog disappears, I do not get the designer. This ArgumentException just shows there and I have not added any controls or anything. Just created the project and I get this.
I have read this exception is thrown when I have duplicate files like a resx file with Resources.resx name or LIKE when I am using the same file twice but I am not doing anything else than creating a new project.
I can build the solution and the project successfully with no errors. I open the compiled EXE and it looks OK. But I cannot use the designer inside VS.
This WPF solution targets .NET4.5. I tried creating a new one targetting other .NET versions but the same happens.
[EDIT]
Here is the entire exception thrown by VS:
System.ArgumentException
An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
at Microsoft.VisualStudio.DesignTools.Utility.Telemetry.VsTelemetryService.RegisterDesignerProcessSession(Int32 pid)
at Microsoft.VisualStudio.DesignTools.Utility.Feedback.WatsonTracker.RegisterSession(Int32 processID)
at Microsoft.VisualStudio.DesignTools.Utility.DesignerSessionTracker.RecordDesignerStart(Int32 processID, String isolationTargetIdentifier, Boolean mockCustomTypes, String buildConfiguration)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.ProcessDomainFactory.ProcessIsolationDomain..ctor(ProcessDomainFactory factory, IIsolationBoundary boundary, AppDomainSetup appDomainInfo, IIsolationTarget isolationTarget, String baseDirectory)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.ProcessDomainFactory.CreateIsolationDomain(IIsolationBoundary boundary)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.IsolationBoundary.Initialize()
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.IsolationBoundary.CreateInstance[T](Type type)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.IsolatedObjectFactory.Initialize()
at Microsoft.VisualStudio.DesignTools.DesignerHost.Services.VSIsolationService.CreateObjectFactory(IIsolationTarget isolationTarget, IObjectCatalog catalog)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.IsolationService.CreateLease(IIsolationTarget isolationTarget)
at Microsoft.VisualStudio.DesignTools.DesignerContract.IsolatedDesignerService.CreateLease(IIsolationTarget isolationTarget, CancellationToken cancelToken, DesignerServiceEntry& entry, IServiceProvider serviceOverrides)
at Microsoft.VisualStudio.DesignTools.DesignerContract.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.IsolatedTaskScheduler.InvokeWithCulture[T](CultureInfo culture, Func`2 func, CancellationToken cancelToken)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.IsolatedTaskScheduler.<>c__DisplayClass10_0`1.<StartTask>b__0()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
Here is a screenshot too:
Hope someone can help me solve this problem. Thanks in Advance - CCB
I got the same exception and reduced both xaml and cs to a minimum without any help. I deleted folders bin and obj, restarted VS, rebooted my computer, but still no luck. With VS 2012 the designer was not loading with a different error message. This post helped me fix the issue
FIX: Delete or rename file "C:\Program" then click on "Click here to reload the designer".
In my case Program was a text file without extension from writing the output of an ipconfig MS-DOS command. There is no need to close the xaml designer, recompile, clear the cache, or restart Visual Studio.
Somehow VS tries to read it when loading the designer (checked with Process Monitor from Sysinternals). For information the stack in Visual Studio 2012 was the same as this bug report.
System.Runtime.Remoting.RemotingException
[] Designer process terminated unexpectedly!
at Microsoft.Expression.DesignHost.Isolation.Primitives.ProcessDomainFactory.ProcessIsolationDomain.Microsoft.Expression.DesignHost.Isolation.IIsolationDomain.CreateInstance(String assemblyName, String assemblyCodeBase, String typeName)
at Microsoft.Expression.DesignHost.Isolation.Primitives.IsolationBoundary.Initialize()
at Microsoft.Expression.DesignHost.Isolation.Primitives.IsolationBoundary.CreateInstance[T](Type type)
at Microsoft.Expression.DesignHost.Isolation.IsolatedExportProvider.Initialize()
at Microsoft.VisualStudio.ExpressionHost.Services.VSIsolationService.CreateExportProvider(IIsolationTarget isolationTarget, ICatalogFactory catalogFactory, IExportFilter filter)
at Microsoft.Expression.DesignHost.Isolation.IsolationService.CreateLease(IIsolationTarget isolationTarget)
at Microsoft.Expression.DesignHost.IsolatedDesignerService.CreateLease(IIsolationTarget isolationTarget, CancellationToken cancelToken, DesignerServiceEntry& entry)
at Microsoft.Expression.DesignHost.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken)
at Microsoft.Expression.DesignHost.Isolation.IsolatedTaskScheduler.InvokeWithCulture[T](CultureInfo culture, Func`2 func, CancellationToken cancelToken)
at Microsoft.Expression.DesignHost.Isolation.IsolatedTaskScheduler.<>c__DisplayClassa`1.<StartTask>b__6()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()

CRM 4.0 Unhandled exception upon trying to export labels for translation

I'm having a strange issue with our Dynamics CRM 4.0 (we use it to develop customizations).
When trying to export labels (Settings -> Customization -> Export Labels for Translation) the system shows this error (Tracing + DevErrors are enabled, all show the same, aswell as the Event Viewer on the server itself):
Error Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Error Details:
Exception of type 'System.Web.HttpUnhandledException' was thrown.
Full Stack:
[ArgumentException: An item with the same key has already been added.]
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
at Microsoft.Crm.Metadata.LabelCollection.Add(Label label)
at Microsoft.Crm.ObjectModel.OrganizationUIService.GetSectionTabAndFieldLabels(IBusinessEntity entity, ILabelLoader labelLoader, ExecutionContext context, Dictionary`2 labels)
at Microsoft.Crm.ObjectModel.OrganizationUIService.RetrieveAllFormLabelsWithAllLanguages(Int32 objectTypeCode, ExecutionContext context)
at Microsoft.Crm.Metadata.OrganizationUIHelper.RetrieveAllFormLabelsWithAllLanguages(Int32 objectTypeCode, ExecutionContext context)
at Microsoft.Crm.Tools.ImportExportPublish.FormXmlHandler.GetLocalizedLabelStringsCollection(Int32 baseLanguageCode, List`1 provisionedLanguages, Dictionary`2 locLabelCollection)
at Microsoft.Crm.Tools.ImportExportPublish.RootTranslationExportHandler.ExportLocalizedLabelStrings(Int32 baseLanguageCode, List`1 provisionedLanguages)
at Microsoft.Crm.Tools.ImportExportPublish.RootTranslationExportHandler.RunExportTranslations(Int32 baseLanguageCode, List`1 provisionedLanguages)
Apparently, no one in the world has ever had this issue (I've been googling around for 2 days)...
What I've tried:
I checked MetadataSchema.LocalizedLabels for any oddity, I tried joining it to Attribute and Entity to check for duped entries (Exception complains about a duplicate key, so ...), almost made LinqPad explode from the massive amount of queries I tried and ditched...
If it's worth anything, the latest Rollup should be on the server.
A single customized label for a "notes" tab in a custom entity main form was causing the issue. I still have no clue about Why it happened (it's been created via the stock form designer) but now my issue is resolved.
If anyone needs to follow my steps, you want to look this set of data:
USE <Organization_DB>
GO
SELECT * FROM Metadataschema.LocalizedLabel WHERE InProduction=1 AND CustomizationLevel=1
GO

Categories