Visual Studio Development Bookmark and Share   
 index > Visual Studio Tools for Office > EXCEL VSTO 3.0 DeploymentException : Store metadata \"CurrentBind\" is not valid
 

EXCEL VSTO 3.0 DeploymentException : Store metadata \"CurrentBind\" is not valid

I am using VSTO 3.0 in VS2008 SP1 with Office 2007 SP2 with Vista Home Premium.

System.Deployment.Application.DeploymentException occurred
  Message="Store metadata \"CurrentBind\" is not valid."
  Source="System.Deployment"
  StackTrace:
       at System.Deployment.Application.ComponentStore.GetPropertyString(DefinitionAppId appId, String propName)
  InnerException:


I receive this error while trying to run in VS2008 SP1 in debug/release mode.  Running in deployment works.

When I do a run, the first thing happens is that a dialog box shows up stating: "No symbols are loaded for any call stack frame. The source code cannot be displayed."

A show disassembly checkbox appears with two buttons OK and Continue.  Next after that the error message above shows.

Finally, Excel goes into an infinite loop where a MessageBox repeadedtly shows:
"Microsoft Excel is waiting for another application to complete an OLE action."

However, I am able to attach to a running process and debug my code. BUT after I reach the end that "No symbols are loaded . . ." message pops up again!

http://www.freeimagehosting.net/uploads/e12a48a8cc.jpg

http://www.freeimagehosting.net/uploads/068571fec4.jpg

http://www.freeimagehosting.net/uploads/7a1aaa5aaa.jpg

After disassembling, it showed a different error.  A customization deployment errror relating to ClickOnce not being able to download from the Internet.

www.freeimagehosting.net/uploads/d191d72d11.jpg

After rebuilding, yet another error.  Excel.exe.config could not be found.

http://www.freeimagehosting.net/uploads/5b9cd8688f.jpg

!
A new refurbished computer for everyone!
ajaytemp  Tuesday, October 13, 2009 12:09 AM

Hello,

In my side, I am not able to reproduce this issue. According to what you said above, I will give some suggestions here.

To the exception above, it seems like using a data as "CurrentBind". Need to check this in your code. Useful link:  I always get this error viewing deployed xbaps.

<<No symbols are loaded for any call stack frame. The source code cannot be displayed.>>
About this error, I research a lot in this forum. I guess there is loop with too many times. It may be caused by this. Please see the following links. These resources may give you a further insight into this error.
No Symbols are loaded for any call stack frame, The source code cannot be displayed
no symbols loaded for any call stack frame.

To the third message, here I quote a message in this KB article, When you create an OLE Automation object (run a server application) in a Visual Basic procedure in Microsoft Excel, if you send that object a command, the server must finish processing the command before you can continue working in Microsoft Excel. And near the end, it also lists a workaround with this message.
Useful link: Microsoft Office Excel is waiting for another application to complete an OLE action.

Hope this helps,
Bessie 


Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.

  • Marked As Answer byajaytemp Saturday, October 17, 2009 2:52 AM
  •  
Bessie Zhao  Wednesday, October 14, 2009 8:08 AM

Hello,

In my side, I am not able to reproduce this issue. According to what you said above, I will give some suggestions here.

To the exception above, it seems like using a data as "CurrentBind". Need to check this in your code. Useful link:  I always get this error viewing deployed xbaps.

<<No symbols are loaded for any call stack frame. The source code cannot be displayed.>>
About this error, I research a lot in this forum. I guess there is loop with too many times. It may be caused by this. Please see the following links. These resources may give you a further insight into this error.
No Symbols are loaded for any call stack frame, The source code cannot be displayed
no symbols loaded for any call stack frame.

To the third message, here I quote a message in this KB article, When you create an OLE Automation object (run a server application) in a Visual Basic procedure in Microsoft Excel, if you send that object a command, the server must finish processing the command before you can continue working in Microsoft Excel. And near the end, it also lists a workaround with this message.
Useful link: Microsoft Office Excel is waiting for another application to complete an OLE action.

Hope this helps,
Bessie 


Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.

  • Marked As Answer byajaytemp Saturday, October 17, 2009 2:52 AM
  •  
Bessie Zhao  Wednesday, October 14, 2009 8:08 AM
I checked "Enable unmanaged code debugging" checkbox however the same error messages pop up.  But this time, I am able to debug by clicking OK & Continue on the Exception error message boxes.

You:
"To the exception above, it seems like using a data as "CurrentBind". Need to check this in your code."

The program works in deployment.  What could be in my code? What do you mean using a data as "CurrentBind?"

Last question, what/how is debugging in Release mode?  Because the DEBUG constant is unchecked in Release mode.  If I run without debugging in release mode no error messages.  However, if i do run with debugging I get error messages.

A new refurbished computer for everyone!
ajaytemp  Wednesday, October 14, 2009 2:18 PM
Since I am not able to reproduce this issue, here I just to tell some guess. Apologize for mistaking this error. Or you have connected a database in your project. Here it may be related to database data.

For last question, about debug mode and release mode, you can refer to these resources: debug vs. release in C# and this thread.

In this article, it introduces a add-in debugging in the release mode. You may give me the simple steps of reproducing. Here is a useful link: Debug VSTO Add-in or Customization.

Best regards,
Bessie



Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Bessie Zhao  Friday, October 16, 2009 10:48 AM

You can use google to search for other answers

Custom Search

More Threads

• Excel ListObject Blue Border
• Delete row by right click on protected excel sheet
• VSTO Add-in (blank) setup problem. "run-time error" in client machine
• Disable Outlook Copy
• Sharepoint and caspol
• Building Outlook addins (compatibility office 2003 and 2007; Primary Interop Assemblies (PIA) are missing)
• Speed up Add-In Startup
• Using Balloon ToolTips in Excel VSTO project
• Can't install VS 2005 Tools for Office
• Outlook addin works in Debug but will not load as COM addin in Outlook