Gettting Access denied error while accessing 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
 
Does the principal under which the code is executing have access to the

E:\DotNet\Testing\TestLib\bin\Debug

Directory?

Regards

Richard Blewett - DevelopMentor
http://staff.develop.com/richardb/weblog

nntp://news.microsoft.com/microsoft.public.dotnet.framework/<#[email protected]>

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







---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.775 / Virus Database: 522 - Release Date: 08/10/2004



[microsoft.public.dotnet.framework]
 
Back
Top