Re: VSTO Security - cannot run or debug any VSTO documents

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Peter Torr \(MS\) (ptorr_at_microsoft.com)
Date: 09/30/04


Date: Thu, 30 Sep 2004 10:06:19 -0700


"Cappy Popp" <CappyPopp@discussions.microsoft.com> wrote in message
news:FC2E20DF-4D09-4256-8A0B-713F74A4CDBF@microsoft.com...
> I can now at least *open* the .xls files without the security error;
> however, I still cannot debug them. Excel still flashes onscreen for a
> moment
> and then disappears. I never see the worksheet.

Hi,

Unfortunately you cannot debug an assembly hosted by the Whidbey CLR from
the Everett debugger; either you have to manually boot the Whidbey VS IDE
and attach to the process, OR you can use a configuration file to lock Excel
to the Everett CLR.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/gnconsupportedruntimeelement.asp

Place the configuration file in the same folder as Excel.exe and call it
Excel.exe.config.

Peter

-- 
Please post questions to the newsgroup - everyone benefits.
This post is provided "AS IS" with no warranties, and confers no rights
Sample code subject to http://www.microsoft.com/info/cpyright.htm
Office / Security / Random weblog -- http://weblogs.asp.net/ptorr


Relevant Pages

  • Re: Debugging Suggestions
    ... I have set breakpoints, but they don't execute in the ... Did you put the complete path to Excel into the Project Settings Debug ... Also put a test spreadsheet on the command lines arguments in the Settings. ...
    (microsoft.public.office.developer.com.add_ins)
  • Cannot debug RTD Excel
    ... I've created C# RTD Server that works OK. ... debug mode to Program, ... start MyRtdServer in debug mode it calls Excel, ...
    (microsoft.public.excel.programming)
  • C# COM Interop (Excel Addin) Debugging Failure
    ... I cannot debug an Excel ... For the last 7 weeks my C# COM Interop (Excel Addin) Development has stopped. ... Then all debugging stopped working. ...
    (microsoft.public.office.developer.com.add_ins)
  • Re: Running other programs with VBA
    ... on the configuration file it will open the program with that configuration ... within the excel worksheet that does the scoring. ... What I want to know is can I use command to open a settings file within ... It has shortcut keys ALT F then O to open file. ...
    (microsoft.public.excel.programming)
  • Re: Running other programs with VBA
    ... where ndbc.wlc is the configuration file to try and fire it up but this ... within the excel worksheet that does the scoring. ... What I want to know is can I use command to open a settings file ... It has shortcut keys ALT F then O to open file. ...
    (microsoft.public.excel.programming)