Hi, if you try to compile an app in a network shared folder,or on some hosts.. maybe you will get this error
ERROR:
Could not load file or assembly ‘Microsoft.Practices.EnterpriseLibrary.Configuration.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null’ or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0×80131417)
This error occurs because the default trust level for local machine is Full trust, but in the network share not.
So to compile your applications remotely you have to:
1. Go to Control Panel -> Adiministrative Tools -> Microsoft .NET Framework 2.0 Configuration
2. Open My Computer ->
Runtime Security Policy -> Machine -> Code Groups -> All Code ->New
the URL field in the next figure is the path to the shared folder , in this case, but you can choose Strong Names( for .exe or .dll) etc
Click Finish and you can compile your app!!
I hope this article help you…




Recent Comments