This is a migrated thread and some comments may be shown as answers.

Exceptions when trying to extract methods

3 Answers 96 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Michael
Top achievements
Rank 1
Michael asked on 14 Nov 2012, 03:17 PM
Currently I experience the following issue when trying to extract methods from the Sitefinity Dlls (Using Visual Studio 2012 and the latest Just Code internal Build):

I am unable to extract any method bodys for a certain type, the "Decompile" option just stays greyed out. When looking into the JustCode log-files I see a lot of the following exceptions:

SILENT 2012-11-14 16:15:01.946 : Try to get VS property TextEditor\JScript\AutoListMembers.
SILENT 2012-11-14 16:15:01.948 : System.Runtime.InteropServices.COMException (0x8002000B): Ungültiger Index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX))
   at EnvDTE._DTE.get_Properties(String Category, String Page)
   at Telerik.JustCode.Services.DTEPropertiesExtensions.GetProperty(_DTE dte, String category, String page, String name) in c:\B10\Manticore\ProductionTrial_Release\Sources\source\JustCode.Application\Services\DTEPropertiesExtensions.cs:line 356
Log Site Stacktrace:
   at Telerik.JustCode.Common.Logging.ExceptionInfo.GetExceptionString(Exception ex) in c:\B10\Manticore\ProductionTrial_Release\Sources\source\Logging\ExceptionInfo.cs:line 91
   at Telerik.JustCode.Common.Logging.LogService.LogSilently(Exception exception) in c:\B10\Manticore\ProductionTrial_Release\Sources\source\Logging\LogService.cs:line 215
   at Telerik.JustCode.Common.Logging.LogService.LogSilently(Exception exception, String message) in c:\B10\Manticore\ProductionTrial_Release\Sources\source\Logging\LogService.cs:line 238
   at Telerik.JustCode.Common.Logger.LogSilently(Exception exception, String message) in c:\B10\Manticore\ProductionTrial_Release\Sources\source\Logging\Logger.cs:line 213
   at Telerik.JustCode.Services.DTEPropertiesExtensions.GetProperty(_DTE dte, String category, String page, String name) in c:\B10\Manticore\ProductionTrial_Release\Sources\source\JustCode.Application\Services\DTEPropertiesExtensions.cs:line 363
   at Telerik.JustCode.Services.DTEPropertiesExtensions.#Tcb(_DTE dte, Language language) in c:\B10\Manticore\ProductionTrial_Release\Sources\source\JustCode.Application\Services\DTEPropertiesExtensions.cs:line 271
   at Telerik.JustCode.Services.DTEPropertiesExtensions.GetLanguageAutoCodeComplition(_DTE dte, Language language) in c:\B10\Manticore\ProductionTrial_Release\Sources\source\JustCode.Application\Services\DTEPropertiesExtensions.cs:line 209
   at Telerik.JustCode.Application.OperationManagers.VsOptionsManager.#4ab() in c:\B10\Manticore\ProductionTrial_Release\Sources\source\JustCode.Application\OperationManagers\VsOptionsManager.cs:line 92
   at Telerik.JustCode.Application.OperationManagers.VsOptionsManager.Start() in c:\B10\Manticore\ProductionTrial_Release\Sources\source\JustCode.Application\OperationManagers\VsOptionsManager.cs:line 70
   at Telerik.JustCode.Application.OperationManagers.VsOptionsManager.DisableVsOptions(_DTE dte) in c:\B10\Manticore\ProductionTrial_Release\Sources\source\JustCode.Application\OperationManagers\VsOptionsManager.cs:line 47
   at Telerik.JustCode.Services.VSEditorService.BeginBatchModifications() in c:\B10\Manticore\ProductionTrial_Release\Sources\source\JustCode.Application\Services\EditorService\VSEditorService.cs:line 3154
   at Telerik.JustCode.UserInterface.ModificationManager.#xl(List`1 modifications, #A confirmationResult, CancelableEventArgs cancelArgs) in c:\B10\Manticore\ProductionTrial_Release\Sources\source\UserInterface\ModificationManager\ModificationManager.cs:line 402
   at Telerik.JustCode.UserInterface.ModificationManager.ApplyModifications(List`1 modifications, Boolean cancelable) in c:\B10\Manticore\ProductionTrial_Release\Sources\source\UserInterface\ModificationManager\ModificationManager.cs:line 16777215
   at Telerik.JustCode.CommonLanguageModel.Data.Modifications.ModificationEditorUIBase.#eHb(ModificationsData data, Action`1 continueInEngine) in c:\B10\Manticore\ProductionTrial_Release\Sources\source\CommonLanguageModel.Data.Core\Modifications\ModificationEditorUIBase.cs:line 105
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
   at Telerik.JustCode.CommonLanguageModel.MultiplexingEngineDataHandlerBase.InvokeHandleDataMember(Object handler, Action`1 continueInEngine, IEngineData data) in c:\B10\Manticore\ProductionTrial_Release\Sources\source\CommonLanguageModel.Data\MultiplexingEngineDataHandlerBase.cs:line 34
   at #u.#L.#p.#S.#Gp() in c:\B10\Manticore\ProductionTrial_Release\Sources\source\UserInterface\UIThreadEngineDataHandlerMultiplexer.cs:line 51
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   at Telerik.JustCode.Services.VSApplicationService.#p.#V.#Sqb() in c:\B10\Manticore\ProductionTrial_Release\Sources\source\JustCode.Application\Services\VSApplicationService.cs:line 522
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Any ideas on how to fix this? Thanks in advance for any help!

3 Answers, 1 is accepted

Sort by
0
Zdravko
Telerik team
answered on 16 Nov 2012, 01:43 PM
Hello,

 Thanks for contacting us.
I think the error in your log is not related to this issue.
Do you navigated to the compiled metadata view first before using the Decompile command.
I am posting you a small video that shows how to use the command. If this is not your case, would you show us what exactly you are doing?
Thanks.

Greetings,
Zdravko
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Michael
Top achievements
Rank 1
answered on 19 Nov 2012, 07:58 AM
Hello,

thanks for the reply. The problem is that after I navigate to the metadata view and click on a specific function the buttons below the type (C,R,N) don't show up and I'm also not able to decompile any function using Right-Click -> Just Navigate -> Decompile. I thought the exceptions might somehow be related to the issue as every time I open up a metadata view a view more of them seem to pop up in the log file.
0
Zdravko
Telerik team
answered on 21 Nov 2012, 05:22 PM
Hi,

 Thanks for the reply.
Would you demonstrate in short video what is happening?
I will also ask you to send me your logs located at %localappdata%\JustCode\Logs.
So we could investigate if there is any unexpected error.
Thanks.


Kind regards,
Zdravko
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
General Discussions
Asked by
Michael
Top achievements
Rank 1
Answers by
Zdravko
Telerik team
Michael
Top achievements
Rank 1
Share this question
or