Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default .NET, CAS and Excel Development

I have been trying, unsuccessfully, to get an Excel Microsoft Office System
Project to run on my computer for the past couple of days, each time I try I
get the wonderful "The current .NET security policy does not permit <Project
Name to run from folder <folder name..."

the first thing I tried to do was just simply use the wizard that came with
the office .net dev tools. It created the project, the associated code
behind class and the User based code group security policy but the project
refuses to run giving me the above error each time I try.

I then read the following article by Ken Getz and Brian Randell:
http://msdn.microsoft.com/msdnmag/is...3/default.aspx

and then tried the Strong Name method described at the bottom of the
document but this still did not allow me to execute the code. Feeling
baffled I tried it on another computer and it work fine, no problem.

What I have done thus far:
- created a strong named key file and associated with my assembly via the
AssemblyKeyFile Attribute
- complied the assembly
- created a machine based code group under the my_computer_zone code group
with the fulltrust permisson set for the strong name embedded within my
assembly.
- In excel, modified the _AssemblyLocation0 custom property to refer to the
folder my assembly is located in.

result:
- works on other machines not mine.

I even right clicked on the "Runtime Security Policy" node in the CAS tree
and clicked "Reset All..." to restore all the policies to their default
state and then reinstalled my code group but still have no luck.

I even tried the CASPOL.exe -s off option and then tried and still had no
luck...

Like I said I was able to get this working very easily on another computer
using the strong named method.

Could someone please throw some advice my way...

BTW:
I have all the frameworks installed on it: 1.0, 1.1 and 2.0, not that
this should matter but I figured I would throw it out there anyways...

Thanks in advance
Scott


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel development tools? Neil Jones Excel Discussion (Misc queries) 1 April 22nd 10 09:24 PM
Professional Excel Development E.Q. Excel Discussion (Misc queries) 1 August 17th 06 04:43 AM
New Excel development ledgreg Excel Discussion (Misc queries) 2 February 27th 06 08:35 PM
Development tool,Excel,GUI BrianG Excel Discussion (Misc queries) 3 December 27th 04 02:05 PM
Development Tools Available for Excel Charles R. Hoffman Excel Programming 0 October 17th 03 05:28 PM


All times are GMT +1. The time now is 11:34 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"