Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / October 2004

Tip: Looking for answers? Try searching our database.

Gettting Access denied error while accessing Class library

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Murali - 11 Oct 2004 00:40 GMT
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
Richard Blewett [DevelopMentor] - 11 Oct 2004 12:37 GMT
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/<#KQ9rFyrEHA.1988@TK2MSFTNGP09.phx.gbl>

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









[microsoft.public.dotnet.framework]

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.