473,761 Members | 2,455 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

runtime error during the loading of the COM add-in

I have no idea what is going on...
I took an add-in for Office 2007 that I started in VS 2003, and imported
the whole thing into VS 2005. Then I added some custom .Net components
from Developer Express (devexpress.com ) to the project.
I have a rather long list of references now: Accessibility, a bunch of
DevExpress components, Extensibility, Microsoft.Offic e.Core,
Microsoft.Inter op.* (all ribbon app ones), stdole, System,
System.Drawing, System.Windows. Forms, System.XML. The setup program is
the one generated by VS 2005.
The add-in works fine on my development machine. But the moment I
install it on a different machine, it fails with a runtime error during
the loading of the COM add-in (that's what the com add-ins dialog says).
I tried it in Excel, PPT and Word. I tried displaying a message box in
the Connect and OnConnection events, but they didn't appear. So I am
thinking it crashes before it even gets into those methods, but I have
no idea what the heck it could be.
Any suggestions?

Thanks,

Patrick Schmid

Oct 25 '06 #1
10 2070

As I am encoutering pb in some similar areas, have you tried to have a
fusion log viewer look of it ?
btw, have you an idea of what makes a Excel initiate the framework 2.0
or 1.1 ?

my current pb :
http://groups-beta.google.com/group/...a3185aeaafc96b
On Oct 25, 12:37 pm, "Patrick Schmid [MVP]" <pdsch...@nospa m.mvps.org>
wrote:
I have no idea what is going on...
I took an add-in for Office 2007 that I started in VS 2003, and imported
the whole thing into VS 2005. Then I added some custom .Net components
from Developer Express (devexpress.com ) to the project.
I have a rather long list of references now: Accessibility, a bunch of
DevExpress components, Extensibility, Microsoft.Offic e.Core,
Microsoft.Inter op.* (all ribbon app ones), stdole, System,
System.Drawing, System.Windows. Forms, System.XML. The setup program is
the one generated by VS 2005.
The add-in works fine on my development machine. But the moment I
install it on a different machine, it fails with a runtime error during
the loading of the COM add-in (that's what the com add-ins dialog says).
I tried it in Excel, PPT and Word. I tried displaying a message box in
the Connect and OnConnection events, but they didn't appear. So I am
thinking it crashes before it even gets into those methods, but I have
no idea what the heck it could be.
Any suggestions?

Thanks,

Patrick Schmid
Oct 25 '06 #2
Patrick,

If I understand You correctly the 2003 version of it worked as expected and
without any dev components.

At first I would simple remove the components and see if the 2005 version
add-in work in the same way as the 2003 do.

Second, I would make a clean installation of it on the developing machine to
see if it work properly. After all, running it from the IDE may not always
uncover the issues.

I find it more difficult to track down issues with the .NET then with the
classic COM so based on my own experience I've compiled an article about
troubleshooting . It's not complete and it will never be possible...
http://www.excelkb.com/article.aspx?id=10206

In my experience 'shimmed' COM Add-ins appear to have less issues then
'unshimmed' but it's not necessary the case here as it looks like it related
to the components in use.

---------------
With kind regards,
Dennis
Weekly Blog .NET & Excel: http://xldennis.wordpress.com/
My English site: http://www.excelkb.com/default.aspx
My Swedish site: http://www.xldennis.com/
Oct 25 '06 #3
Dennis,
If I understand You correctly the 2003 version of it worked as expected and
without any dev components.
Yes.
At first I would simple remove the components and see if the 2005 version
add-in work in the same way as the 2003 do.
There is a week of development between the two versions by now. I
changed every form to be completely based on those components, so simply
going back is not an option anymore at this point. I hope I can avoid
having to go through the code and commenting out everything related to
the components so that I can compile it without them...
Second, I would make a clean installation of it on the developing machine to
see if it work properly. After all, running it from the IDE may not always
uncover the issues.
It works fine on the developing machine, even if not rum from the IDE.
That's what is puzzling me really about this.
I find it more difficult to track down issues with the .NET then with the
classic COM so based on my own experience I've compiled an article about
troubleshooting . It's not complete and it will never be possible...
http://www.excelkb.com/article.aspx?id=10206
Thanks. I'm going through it.
In my experience 'shimmed' COM Add-ins appear to have less issues then
'unshimmed' but it's not necessary the case here as it looks like it related
to the components in use.
A COM shim for this add-in is on my to do list, but I doubt it makes any
sense to shim an add-in that is crashing on startup. So the shim has to
wait till I figure out what is going on here.

Thanks for your help!!

Patrick Schmid

>
---------------
With kind regards,
Dennis
Weekly Blog .NET & Excel: http://xldennis.wordpress.com/
My English site: http://www.excelkb.com/default.aspx
My Swedish site: http://www.xldennis.com/
Oct 25 '06 #4
Patrick,

Do You by any chance use classic ADO to populate the component(s)? If so You
may check out the version in use on the test machine compared with Your own
developing machine.

---------------
With kind regards,
Dennis
Weekly Blog .NET & Excel: http://xldennis.wordpress.com/
My English site: http://www.excelkb.com/default.aspx
My Swedish site: http://www.xldennis.com/
Oct 25 '06 #5
No ADO at all. I think I won't get around stripping it to the bare
minimum *sigh*

Patrick Schmid

"XL-Dennis" <XL******@discu ssions.microsof t.comwrote in message
news:42******** *************** ***********@mic rosoft.com:
Patrick,

Do You by any chance use classic ADO to populate the component(s)? If so You
may check out the version in use on the test machine compared with Your own
developing machine.

---------------
With kind regards,
Dennis
Weekly Blog .NET & Excel: http://xldennis.wordpress.com/
My English site: http://www.excelkb.com/default.aspx
My Swedish site: http://www.xldennis.com/
Oct 25 '06 #6
I have no idea what was wrong. I rebuilt the VS 2005 project from
scratch, and now it is working just fine.

Patrick

"Patrick Schmid [MVP]" <pd******@nospa m.mvps.orgwrote in message
news:#z******** ******@TK2MSFTN GP03.phx.gbl:
No ADO at all. I think I won't get around stripping it to the bare
minimum *sigh*

Patrick Schmid

"XL-Dennis" <XL******@discu ssions.microsof t.comwrote in message
news:42******** *************** ***********@mic rosoft.com:
Patrick,

Do You by any chance use classic ADO to populate the component(s)? If so You
may check out the version in use on the test machine compared with Your own
developing machine.

---------------
With kind regards,
Dennis
Weekly Blog .NET & Excel: http://xldennis.wordpress.com/
My English site: http://www.excelkb.com/default.aspx
My Swedish site: http://www.xldennis.com/
Oct 26 '06 #7
Patrick,

I've experienced the same result and I suspect that there are some conflicts
'under the hood' when porting a VS2003 solution to VS2005.

If You have the time and interest You can use ILDASM to view the contents of
the assemblies and compare them.

On my 'wish' list I would like to have a tool that document the installation
processes and test results to reduce the time for re-creating the solution.

---------------
With kind regards,
Dennis
Weekly Blog .NET & Excel: http://xldennis.wordpress.com/
My English site: http://www.excelkb.com/default.aspx
My Swedish site: http://www.xldennis.com/
"Patrick Schmid [MVP]" wrote:
I have no idea what was wrong. I rebuilt the VS 2005 project from
scratch, and now it is working just fine.

Patrick

"Patrick Schmid [MVP]" <pd******@nospa m.mvps.orgwrote in message
news:#z******** ******@TK2MSFTN GP03.phx.gbl:
No ADO at all. I think I won't get around stripping it to the bare
minimum *sigh*

Patrick Schmid

"XL-Dennis" <XL******@discu ssions.microsof t.comwrote in message
news:42******** *************** ***********@mic rosoft.com:
Patrick,
>
Do You by any chance use classic ADO to populate the component(s)? If so You
may check out the version in use on the test machine compared with Your own
developing machine.
>
---------------
With kind regards,
Dennis
Weekly Blog .NET & Excel: http://xldennis.wordpress.com/
My English site: http://www.excelkb.com/default.aspx
My Swedish site: http://www.xldennis.com/

Oct 26 '06 #8
Hi Dennis,

Thanks for your help! I am just glad that I got it working. Now, if it
would just work in Vista...

Patrick Schmid [OneNote MVP]
--------------
http://pschmid.net
***
Office 2007 Beta 2 Technical Refresh (B2TR):
http://pschmid.net/blog/2006/09/18/43
***
Customize Office 2007: http://pschmid.net/office2007/customize
OneNote 2007: http://pschmid.net/office2007/onenote
***
Subscribe to my Office 2007 blog: http://pschmid.net/blog/feed

"XL-Dennis" <XL******@discu ssions.microsof t.comwrote in message
news:16******** *************** ***********@mic rosoft.com:
Patrick,

I've experienced the same result and I suspect that there are some conflicts
'under the hood' when porting a VS2003 solution to VS2005.

If You have the time and interest You can use ILDASM to view the contents of
the assemblies and compare them.

On my 'wish' list I would like to have a tool that document the installation
processes and test results to reduce the time for re-creating the solution.

---------------
With kind regards,
Dennis
Weekly Blog .NET & Excel: http://xldennis.wordpress.com/
My English site: http://www.excelkb.com/default.aspx
My Swedish site: http://www.xldennis.com/
"Patrick Schmid [MVP]" wrote:
I have no idea what was wrong. I rebuilt the VS 2005 project from
scratch, and now it is working just fine.

Patrick

"Patrick Schmid [MVP]" <pd******@nospa m.mvps.orgwrote in message
news:#z******** ******@TK2MSFTN GP03.phx.gbl:
No ADO at all. I think I won't get around stripping it to the bare
minimum *sigh*
>
Patrick Schmid
>
"XL-Dennis" <XL******@discu ssions.microsof t.comwrote in message
news:42******** *************** ***********@mic rosoft.com:
>
Patrick,

Do You by any chance use classic ADO to populate the component(s)? If so You
may check out the version in use on the test machine compared with Your own
developing machine.

---------------
With kind regards,
Dennis
Weekly Blog .NET & Excel: http://xldennis.wordpress.com/
My English site: http://www.excelkb.com/default.aspx
My Swedish site: http://www.xldennis.com/
Oct 26 '06 #9
Patrick,

The only contribution I can give on the subject is to use the beta of .NET 3.0
http://msdn.microsoft.com/library/de...ml/netfx30.asp

---------------
With kind regards,
Dennis
Weekly Blog .NET & Excel: http://xldennis.wordpress.com/
My English site: http://www.excelkb.com/default.aspx
My Swedish site: http://www.xldennis.com/
"Patrick Schmid [MVP]" wrote:
Hi Dennis,

Thanks for your help! I am just glad that I got it working. Now, if it
would just work in Vista...

Patrick Schmid [OneNote MVP]
--------------
http://pschmid.net
***
Office 2007 Beta 2 Technical Refresh (B2TR):
http://pschmid.net/blog/2006/09/18/43
***
Customize Office 2007: http://pschmid.net/office2007/customize
OneNote 2007: http://pschmid.net/office2007/onenote
***
Subscribe to my Office 2007 blog: http://pschmid.net/blog/feed

"XL-Dennis" <XL******@discu ssions.microsof t.comwrote in message
news:16******** *************** ***********@mic rosoft.com:
Patrick,

I've experienced the same result and I suspect that there are some conflicts
'under the hood' when porting a VS2003 solution to VS2005.

If You have the time and interest You can use ILDASM to view the contents of
the assemblies and compare them.

On my 'wish' list I would like to have a tool that document the installation
processes and test results to reduce the time for re-creating the solution.

---------------
With kind regards,
Dennis
Weekly Blog .NET & Excel: http://xldennis.wordpress.com/
My English site: http://www.excelkb.com/default.aspx
My Swedish site: http://www.xldennis.com/
"Patrick Schmid [MVP]" wrote:
I have no idea what was wrong. I rebuilt the VS 2005 project from
scratch, and now it is working just fine.
>
Patrick
>
"Patrick Schmid [MVP]" <pd******@nospa m.mvps.orgwrote in message
news:#z******** ******@TK2MSFTN GP03.phx.gbl:
>
No ADO at all. I think I won't get around stripping it to the bare
minimum *sigh*

Patrick Schmid

"XL-Dennis" <XL******@discu ssions.microsof t.comwrote in message
news:42******** *************** ***********@mic rosoft.com:

Patrick,
>
Do You by any chance use classic ADO to populate the component(s)? If so You
may check out the version in use on the test machine compared with Your own
developing machine.
>
---------------
With kind regards,
Dennis
Weekly Blog .NET & Excel: http://xldennis.wordpress.com/
My English site: http://www.excelkb.com/default.aspx
My Swedish site: http://www.xldennis.com/
>
>

Oct 26 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
8755
by: Pratik kapadia | last post by:
when i try to load my asp pages i always have to face error .like " The server has encountered an error while loading an application during the processing of your request. Please refer to the event log for more detail information. Please contact the server administrator for assistance." if any one knows the solution please reply me on chiky9992000@yahoo.com *** Sent via Developersdex http://www.developersdex.com ***
1
32234
by: Jeff N | last post by:
It it possible to change a button's or text box's font size during runtime? When I try to build my application with this code: this.ActiveControl.Font.Size = "8.25"; I get this error message: Property or indexer "System.Drawing.Font.Size' cannot be assigned to -- it is read only I can change a button's text property during runtime, but I'd also like to change the font size as well.
0
991
by: Bill Nguyen | last post by:
Report source is an SQLSERVER 2K store procedure. VB.NET application. Report created by CR 8.5. At runtime, I still had to click "CANCEL" to bypass the parameter prompts before the report display correctly. Also, print option grayed out although it was available at design time. Thanks a million! Bill
7
6956
by: yuanlinjiang | last post by:
I am working on converting a win32 console application from VC6 to VC7. My version is Microsoft Development Environment 2003 version 7.1.3088. The code works fine on VC6. it is a console program for scientific computation, so it has nothing to do with MFC. But it needs some other libraries such as MKL, sparselib, etc. VC7 can build the executable successfully. However, when i run it, there is only one line on the command window:
0
1035
by: Merdaad | last post by:
Hi, I am using ASP.NET 2.0 with C#. On a page I have a few (static) textboxes that get populated from database and then I create other textboxes during runtime using the folloiwng steps: 1. I add a TableRow(TR) to an existing table using HtmlTableRow 2. I add TableCells(TD) to the above TR using HtmlTableCell 3. I add TextBoxes to the TDs using using TextBox Then I start entering into the runtime Textboxes, when done, I press Enter...
7
38024
by: John | last post by:
Hi Everyone, I'm having this extremely annoying problem with Internet Explorer 6, giving me an error message saying "unknown runtime error" whenever I try to alter the contents of a <divelement using innerHTML. Now, I've researched this problem on the web, and found many references to it, but none of them quite addressed my specific situation, and since my experience with JavaScript is limited, I was not able to adapt the solutions I...
1
1340
by: =?Utf-8?B?TWFyaW8=?= | last post by:
hi, i would like to add pictureboxes during runtime, but there should not be a specific variable for each picturebox becouse i don't know how much it will be. so i declared a collection referencing on one var declared as picturebox. it works fine to add the controls this way. now i would like to implement one picturebox click handle for each added picturebox and i have no idea how to do this. Friend WithEvents Device As PictureBox
2
3873
by: Christian Muggli | last post by:
can someone explain me how to create a app.config file during runtime? i see two ways: - add a skeleton of an app.config file to the exe/dll and extract it during runtime as a resource and extract OR - create a app.config file using xml is there another way?
1
1942
by: ton | last post by:
Hi, I want to add several textbox to my form during runtime: the code is very simple Lab = New TextBox Lab.ID = "A" & i Lab.Height = 200 Lab.Visible = True Lab.Text = "test"
3
1494
by: -Lost | last post by:
Runtime dependency loading, worth the trouble? I've been researching methods of "dynamically" loading and unloading dependencies at runtime (trying my best to think of a nice solution of loading only what is necessary). Is it unreasonable to think that an application should be able to load and unload assemblies during runtime? I found a CodeProject article on this and it was a VERY involved solution -- not sure how "worth" it,...
0
9522
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10111
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9902
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8770
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7327
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6603
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5215
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5364
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3866
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.