Access denied while loading class library

  • Thread starter Thread starter Murali
  • Start date Start date
M

Murali

Hi

I have wrote a test application to access class library from different
location and the configuration file created through .NET framework
configuration looks like this

<?xml version="1.0"?>

<configuration>

<runtime>

<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

<dependentAssembly>

<assemblyIdentity name="TestLib" />

<publisherPolicy apply="no" />

<codeBase version="1.0.1742.11266"
href="E:\DotNet\Testing\TestLib\bin\Debug" />

</dependentAssembly>

<dependentAssembly>

<assemblyIdentity name="TestLib2" />

<publisherPolicy apply="no" />

<codeBase version="1.0.1742.11338"
href="E:\DotNet\Testing\TestLib2\bin\Debug" />

</dependentAssembly>

<publisherPolicy apply="no" />

<probing privatePath="" />

</assemblyBinding>

<gcConcurrent enabled="true" />

</runtime>

</configuration>



When I tired to call function from any of this class library, I am getting
an error Acess is denied "TestLib" . Anybody having solution for this
problem?

Regards,

R.Muralidharan
 
Check permissions on the assembly in question and potentially its folder.
Make sure the Principle you are running under has access.

Next, ensure that you do not have security set too tightly for this
application. You can alter security settings with the .NET Configuration tool.

I know this is rather generic, but I would much rather give you some ideas
than leave the question hanging and I am not sure of the specifics at this
time.

---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 
Back
Top