Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8897007
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:13:20+00:00 2026-06-15T00:13:20+00:00

I have a v4.0 assembly that is both in the GAC (4.0 location) for

  • 0

I have a v4.0 assembly that is both in the GAC (4.0 location) for runtime use and in a location on disk for designtime use. I have the designtime DLL’s location set in the registry so that I can add it via Add Reference in Visual Studio.

I also have a service that is using this DLL. I added it via Add Reference and can compile without issue while referencing its classes. However, when I run my service, it doesn’t pull the DLL from the GAC, and I get an error that the service can’t find a class in the GACked DLL. I can change “copy local” to true and it will work just fine, but that defeats the purpose of having the DLL in the GAC.

Any suggestions on how to troubleshoot?


I can add as reference to a new console app and access the object. Not sure what the issue is with the service.


It may not be finding the type.. but I can reference the type from the console app (using the GACked assembly), so I’m not sure why it can’t find it when running the service.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T00:13:22+00:00Added an answer on June 15, 2026 at 12:13 am

    You will need to add the assembly under the system.web tag in the machine.config

    <system.web>
        <compilation>
            <assemblies>
                <add assembly="YOUR_DLL_NAME, Version=1.1.0.0, Culture=neutral, PublicKeyToken=YOUR_KEY_TOKEN" />  
            </assemblies>
        </compilation>
    </system.web>
    

    Depending on your setup, the configuration file can be found:
    C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config
    or
    C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a .NET assembly DLL that is created on-the-fly from pre-compiled code in
I remember reading briefly that you can add assembly attributes so that you can
I'm attempting to use the precompile.exe tool to generate a serialization assembly that can
I have a C++/CLI assembly that wraps a native 32-bit dll. The assembly is
I have an assembly that is exposed to com that provides access to a
I have an assembly that contains an embedded resource. However, when this assembly is
We have an assembly that is called repeatedly by different executables and it shares
I have a .NET assembly that I have executed regasm and gacutil . I
I have a .NET assembly that has tens of classes and methods which are
I have a .net assembly that contains data access code (a bunch of Typed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.