Click here to Skip to main content
15,039,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

when I am loading an assembly for processing,I am getting the following exception.

"ProcessTick Could not load file or assembly 'ClientRuleProcesserManager, Version=, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant permission to execute. (Exception from HRESULT: 0x80131418)"

The assembly is there in the correct location.But,it is giving "Failed to grant permission to execute " error.should I grant any permissions to the assembly?
How can I fix this problem.Pls help me.

thanks Inadvance

I found this using the magic answer tool we all know as google:

"In control panel, select Administrative Tools > .NET Wizards. You can use the Trust Assembly wizard to change the permissions on all associated assemblies (including DLLs) with the project. You change it to "full trust" and you won't have those problems."
John's answer will work for .net 1.1 apps and any computer that has Visual Studio Pro installed. However, for most client computers you will need to use a command line utility called caspol.exe[^] to set permissions for assemblies.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900