Solved

Assembly in (Global Assembly Cache) Access denied

Posted on 2008-10-07
1
1,518 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
healthmanagement earned 0 total points
ID: 22670367
0

Featured Post

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

738 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