Showing posts with label Aras debugging. Show all posts
Showing posts with label Aras debugging. Show all posts

Monday, 7 August 2017

Not able debug the code using Office connector.

Not able debug the code using Office connector.
Alternate way is- enabling logging:
Go to Innovator server.
Open: InnovatorServerConfig.xml
<operating_parameter key="debug_log_flag" value="false" />
Change to : <operating_parameter key="debug_log_flag" value="true” />
Note: This will be log each action, so after logging your action set back to “false”
Go to this path:
C:\ArasBuilds\B12345\Innovator\Server\logs\
Open .xml
AML, which is passing OC to Aras:
<Item isNew="1" isTemp="1" type="Part" action="add" id="E2FD1158A14A4C99A9D8AD51BC7E74F7">
                                <item_number>Part</item_number>
                                <external_owner>Aras.Document.MS-Office</external_owner>
                                <authoring_tool>Microsoft Excel</authoring_tool>
                                <classification>Test</classification>
                                <from_template>
                                </from_template>
                                <locked_by_id>AD30A6D8D3B642F5A2AFED1A4B02BEFA</locked_by_id>
                                <thumbnail>vault:///?fileId=DBA6420BA6E1400D89F8C2B9A75F4D55</thumbnail>
                </Item>


Aras debugging



Add this in innovatorconfig.xml

in method add this: if (System.Diagnostics.Debugger.Launch()) System.Diagnostics.Debugger.Break();

when we call method, it will open VS and run debugging
if VS is not opened,
Open VS as admin
Click Tools
Click Attach process
Click Show processes for all users
Search for  w3wp.exe
select right w3wp.exe (should be innovator, not vault)
Attach
OK

Now you will get debugging