Skip to main content


 

Symptoms


Windows Presentation Foundation - Error exception generated on K2 blackpearl installation
When I'm trying to generate the auto-code of a WPF controller it throws an error exception.
System.ArgumentException
Value does not fall within the expected range.
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode) at Microsoft.VisualStudio.Shell.Settings.ShellSettingsStore.GetString(String collectionPath, String propertyName) at Microsoft.VisualStudio.ExpressionHost.HostServices.HostProject.<>c__DisplayClassa.b__9() at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker() at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.Invoke(Boolean waitingInExternalCall) at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.InvokeCall(Call call) at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.DirectInvoke(Boolean inbound, Action action, Int32 sourceApartmentId, Int32 targetApartmentId, Int32 originId, WaitHandle aborted) at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.DirectInvokeInbound(Action action, Int32 targetApartmentId) at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalIn(Action action, Int32 targetApartmentId, CancellationToken cancelToken, CallSynchronizationMode syncMode, CallModality callModality, String methodName, String filePath, Int32 lineNumber) at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn(IRemoteObject targetObject, Action action, CallSynchronizationMode syncMode, CallModality callModality, ApartmentState apartmentState, String memberName, String filePath, Int32 lineNumber) at Microsoft.VisualStudio.ExpressionHost.HostServices.HostProject.get_PreferredFileExtensions() at Microsoft.VisualStudio.ExpressionHost.Platform.DefaultCodeBehindResolver.GetCodeBehindInfo(IHostSourceItem documentItem) at Microsoft.VisualStudio.ExpressionHost.HostServices.HostProjectExtensions.GetCodeBehindInfo(IHostSourceItem item) at Microsoft.VisualStudio.ExpressionHost.Platform.PlatformUtilities.CreateCodeContext(IServiceProvider services, IHostSourceItem item, String typeName) at Microsoft.VisualStudio.ExpressionHost.HostServices.HostCodeService.CreateCodeContext(IHostSourceItem item, String typeName) at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteHostCodeService.<>c__DisplayClass1.b__0() at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass2a`1.b__29() at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()
 

Diagnoses


The issue appears to be a known issue with K2 Designer for Visual Studio.
 

Resolution

Our labs team has logged a TFS item for the issue to be investigated further. The workaround is to make a backup and delete the following registry entries (if they exist):

HKEY_LOCAL_MACHINESOFTWAREMicrosoftVisualStudio12.0LanguagesFile Extensions.sodx
HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftVisualStudio12.0LanguagesFile Extensions.sodx
HKEY_CURRENT_USERSoftwareMicrosoftVisualStudio12.0_ConfigLanguagesFile Extensions.sodx




 
Be the first to reply!

Reply