Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.vsnet.vstools.office,microsoft.public.dotnet.security,microsoft.public.dotnet.framework.interop,microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I just installed Office 2003 and VSTO 2003. I cannot get *any* Excel project to run at all. Error is: The current .NET security policy does not permit ExcelProject1 to run from the folder .\ExcelProject1_bin\. Do not change the security policy in your computer... I've read every KB article and blog I could find, and none of the advice resolves the problem. Here is the sequence of steps I took: - Full install of VS 2003 - Full install of Office 2003 - Install of VSTO 2003 - Start new Excel project in Visual Studio, accept all the defaults. The project builds fine. - When I launch the Excel spreadsheet, I get the above error. Checking the security settings, I can see that VS adds the code group for the project, and all the path names and permissions look good. I've also tried to temporarily add a code group that gives full trust to the entire C drive, but that doesn't change anything. The exact same thing happens when I create a Word project, so this isn't specific to Excel. I can't debug the application either. Even when I configure VS to break into the debugger for all exceptions, I simply see Excel start up and close again. Changing the value of the _AssemblyLocation0 property in Excel to use a full path name instead of a relative path name makes no difference. I'd very much appreciate any hints as to how to debug this. Right now, I can't get *any* Excel or Word project to work at all. Thanks, Michi. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro Security for Excel 2007 (group policy) | Setting up and Configuration of Excel | |||
What is the best excel template for insurance policy info? | Excel Discussion (Misc queries) | |||
Excel in VSTO | Excel Programming | |||
Get VSTO code to run on every launch of Excel | Excel Programming | |||
VSTO Excel Addin | Excel Programming |