Author |
Message |
Chinwa KneeHo

|
Posted: Common Language Runtime, Warning: There are updated custom wrappers available for the following referenved components: Office. |
Top |
Hello everyone,
I converted a vb.net 2002 project to vb.net 2005 and I continue to get the warning message:
There are updated custom wrappers available for the following referenced components: Office.
If I dbl-click on the message I get:
One or more custom wrappers for COM components have been installed on your machine after you added references to those COM components. These wrappers may provide additional capabilities not offered by the auto-generated wrappers currently in use.
Do you want to replace the auto-generated wrappers with the custom wrappers
If I click YES then I get 102 ERRORS++.
If I click NO then the project runs just fine but the warning shows in the IDE.
Without turning off all warnings is there some way to get rid of this warning
Unless the install of VS2005 changed or added something I have not updated my Office.
.NET Development17
|
|
|
|
 |
nobugz

|
Posted: Common Language Runtime, Warning: There are updated custom wrappers available for the following referenved components: Office. |
Top |
Sounds like you originally created your own wrappers from the Office COM interfaces and the IDE now sees that there are PIAs available for those interfaces. I'd guess the only way to get rid of the warning is to remove the COM references from your project and add them back in so they'll pick up the PIAs instead of generating an Interop wrapper.
|
|
|
|
 |
Chinwa KneeHo

|
Posted: Common Language Runtime, Warning: There are updated custom wrappers available for the following referenved components: Office. |
Top |
All we have done is pull in references from products like MS Word, Acrobat and Map Guide.
Word was for a spell checker, Acrobat so we could view/create PDF's and Map Guide so we could use it's mapping features.
We did not "write" anything except subroutines to use the references - is that what you mean by "wrappers"
Also, what is GAC
The PIA's in your link talk about Office 2003 and we are on Office 2000. Is VS2005 having difficutly with our Office 2000 suite
|
|
|
|
 |
nobugz

|
Posted: Common Language Runtime, Warning: There are updated custom wrappers available for the following referenved components: Office. |
Top |
When you added references to these products, the IDE automatically generated a wrapper DLL to allow your .NET program to use the COM interfaces of those programs. Look in the Bin folders of your project, you should see DLLs that have the phrase "Interop" in their name. The IDE is warning you that you use an outdated version of one of those DLLs. More than likely, the one that interfaces to Word.
To learn more about the GAC, PIAs and wrappers, read the docs for gacutil.exe and tlbimp.exe. This article may help too. There are no specific PIAs available for Office 2000, perhaps the Office interfaces changed too much between 2000 and 2003/XP.
|
|
|
|
 |
Chinwa KneeHo

|
Posted: Common Language Runtime, Warning: There are updated custom wrappers available for the following referenved components: Office. |
Top |
I see. Thank you, i have seen those files. I will read that article.
maybe it will explain:
1) I am not on XP OS but I run Windows 2000 NT
2) I have never installed any Office 2003 products, we run Office 2000 suite
So whether office 2000 and office 2003 changed interfaces or not, why would it matter I do not use 2003 nor XP.
I am still thinking either .net 2 or VS2005 did something at install because why would it give me the warning saying there are updated custom wrappers which I am thinking could only come from an install of those products (office 2003) and if I actually select YES to update the custom wrappers then my entire project gets more ERRORS than the compiler can display. All my references take errors and can not be found.
(Thank goodness I made a backup before I actually tested this!!)
So you see what I am saying It tells me there are updated custom wrappers when actually I do not think there are.
|
|
|
|
 |
nobugz

|
Posted: Common Language Runtime, Warning: There are updated custom wrappers available for the following referenved components: Office. |
Top |
Some day, who knows when, you'll upgrade your Office version. Your program will no longer work. You can fix that problem now or fix it when you have to, it's your call. To get help with fixing the compile errors, try posting in an Office development newsgroup at www.microsoft.com/communities.
|
|
|
|
 |
Chinwa KneeHo

|
Posted: Common Language Runtime, Warning: There are updated custom wrappers available for the following referenved components: Office. |
Top |
You say I can fix it now or later...without upgrading to office 2003 how can I possibly fix it now
I certainly understand that when we do upgrade to Office 2003 the program will have problem but HOW can it be telling me that there are updated wrappers
I have not installed anything except VS2005 and unless it came with it's own updated wrappers for OFFICE how can I possible have them if I have never installed them
What I am still saying is this seems like a BUG with VS2005.
Lets look at this logically shall we
1) I have OFFICE 2000
2) I have WIN 2000 OS
3) I installed VS2005
4) It give me a warning that there are updated Office wrappers.
5) If I reply YES to the warning asking me if I want to update my Office wrappers with the new ones every reference to Word/Excel/Outlook gets broken because there ARE no updated wrappers on my computer.
|
|
|
|
 |
Chinwa KneeHo

|
Posted: Common Language Runtime, Warning: There are updated custom wrappers available for the following referenved components: Office. |
Top |
Well I dropped all the references and then added the back and the error went away.
I rebuilt everything and no more warning.
The second I made 1 little change in the code which was Dim i as integer the warning popped back.
Anyone else have this problem I am really beginning to believe this is bug with VS2005 when dealing with MS Office 2000.
|
|
|
|
 |
bw55

|
Posted: Common Language Runtime, Warning: There are updated custom wrappers available for the following referenved components: Office. |
Top |
I'm getting the same warning message. I have Word 2003 and am writing a new application. I'm using th following code to open a Word doc:
Dim WordApp As New Microsoft.Office.Interop.Word.Application
SubContract = WordApp.Documents.Open(SubCntrFn)
The warning is always there when I open the project. If I double-click the warning and tell it to install the updated wrappers it goes away, but comes back again the next time I open the project.
|
|
|
|
 |
bw55

|
Posted: Common Language Runtime, Warning: There are updated custom wrappers available for the following referenved components: Office. |
Top |
I found a solution that resoved this problem for me. I looked at the project reference and found a references to Microsoft Office 11.0 Object Library and Microsoft Office 9.0 Object Library.
I removed the reference to the 9.0 Library and now I don't get the warning. The application still runs properly.
I don't know if that will work using Word 2000 or not as I am using Word 2003.
bw55
|
|
|
|
 |
Andrewca

|
Posted: Common Language Runtime, Warning: There are updated custom wrappers available for the following referenved components: Office. |
Top |
I have the save thing but I am using MSFORMS ComboBox(it can support multicollumn). After I update the wrappers all the code about the control event I have to change because in the event declarition there _Changed(Sender As ... and e As ...) and all the Sender and e have gone and they are axactly like we are using VB6. This looks great. But I do not know how to add the ComboBox again. And another symptom is in the reference list, the AxMSForms has gone and leave MSForms only. If I add Microsoft Forms 2.0 ComboBox to the Toolbox the AxMSForms apeared again in the reference list.
I think this is VS2005 new feature because I was using VS2003 before. After I convert my VS2003 project I got the problem. I think somebody here may give us a total explaination.
|
|
|
|
 |
|