Solved

Assembly in (Global Assembly Cache) Access denied

Posted on 2008-10-07
1
1,506 Views
Last Modified: 2013-11-26
Experts,
My question is that i have compiled myclass.DLL into the GAC, i created the strongNameKey and added  interops so it would work with an asp application that I'm building. Now I need to go back and edit it but its write protect and access is denied.
I think its because ive added it to the coms GAC. I have the code to uninstall it from GAC.
gacutil /u <project location>\bin\debug\myClass.dll
When i execute this the VS cmd prompt tells me that it couldn't find the assembly, in that folder when i know it is..
If I  try to edit the vb project directly i get the message that the debugDatabase is write protected and that access is denied also.

Im pretty sure that adding the dll to the GAC has locked it down. What can i do?
The project is working fine in .NET but when i try to access the server object in asp
e.g. dim objCom2
 set objCom2 = Server.CreateObject("myGACProject.myClass")
I get the following:
Error 1 Server was unable to process request. ---> Unable to generate a temporary class (result=1). error CS2001

If i could fix this error maybe i wouldnt have to touch my DLL. What action to take, OH my!!
Thanks
0
Comment
Question by:healthmanagement
1 Comment
 

Accepted Solution

by:
healthmanagement earned 0 total points
ID: 22670367
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now