c# - Excel COM-Add-in crash after deploying VSTO -


i developed excel com-addin in c# using vs2010 uses web reference remote web service , sends data , service. once finished per therequirements followed steps here installed on multiple client computers.

after msi gets built per specifications, installed add-in on external computer. after installation completes try launch excel , crashes. on further investigation, managed windows error report(werinternalmetadata.xml) file has piece of code.

<problemsignatures>     <eventtype>clr20r3</eventtype>     <parameter0>excel.exe</parameter0>     <parameter1>14.0.6126.5003</parameter1>     <parameter2>505b0834</parameter2>     <parameter3>addintestexcel2007</parameter3>     <parameter4>1.0.0.0</parameter4>     <parameter5>53304e03</parameter5>     <parameter6>42</parameter6>     <parameter7>16</parameter7>     <parameter8>system.nullreferenceexception</parameter8> </problemsignatures> 

when debug add-in on visual studio dont nullreference exception. apart have no other information on causing excel crash. please me interpret this?

edit - addin startup code

private void thisaddin_startup(object sender, system.eventargs e) {  }  private void thisaddin_shutdown(object sender, system.eventargs e) {  } 

typically, excel add-in can crash on start-up of excel following reasons:

  1. there code in start-up of add-in not try/catch encapsulated.
  2. the start-up code expects config or web service urls not present in expected files.
  3. the code encountered different run time conditions (an actual deployed machine) vs. running in visual studio environment expected permissions/office installed/.net versions installed etc.

can please check start code , possible exceptions wrapping in generic try/catch block?

you can post snippet here , can identify well.

p.s. general recommendation keep start-up code minimum if not zero. because modern versions of office apps outlook disable add-in if load time more particular value.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -