Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)

Posted on 2007-07-31
Last Modified: 2013-11-26
Hello all,
I'm having a problem here.  I try to build a website project in Visual Studio and it gives the following errors:

Error      1      Z:\website1\Default.aspx: ASP.NET runtime error: Could not load file or assembly 'BetterImageProcessorQuantization, Version=, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)      Z:\website1\Default.aspx      1      1      Z:\website1\
Error      3      Could not load file or assembly 'BetterImageProcessorQuantization, Version=, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)            

I'm using this version of Visual Studio w/ SP1 installed:

Microsoft Visual Studio 2005
Version 8.0.50727.762 (SP.050727-7600)
(c) 2005 Microsoft Corporation.
All rights reserved.

My Web.Config Looks like the following (cut out some unecessary nodes):
<?xml version="1.0"?>
            <trust level="Full"/>
            <identity impersonate="true"/>
            <customErrors mode="Off"/>
            <compilation debug="true">
                        <add assembly="System.Management, Version=, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                        <add assembly="System.Data.OracleClient, Version=, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                        <add assembly="System.Transactions, Version=, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                        <add assembly="System.Configuration.Install, Version=, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                        <add assembly="System.Drawing, Version=, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                        <add assembly="System.Web, Version=, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                        <add assembly="System.Design, Version=, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                        <add assembly="System, Version=, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                        <add assembly="System.Configuration, Version=, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                        <add assembly="System.Xml, Version=, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                        <add assembly="System.Data, Version=, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                        <add assembly="System.Web.Services, Version=, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                        <add assembly="System.DirectoryServices, Version=, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                        <add assembly="System.DirectoryServices.Protocols, Version=, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                        <add assembly="System.EnterpriseServices, Version=, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                        <add assembly="System.ServiceProcess, Version=, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                        <add assembly="System.Windows.Forms, Version=, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                        <add assembly="System.Web.RegularExpressions, Version=, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></assemblies></compilation>
            <authentication mode="Windows"/>

I also went into my ASP.NET Configuration (1.1 and 2.0) and set both: My Computer and Intranet zone security settings to full trust.

Thanks in advance!
Question by:joshbm
    LVL 2

    Author Comment

    P.S. You can download the assembly that is failing to load:

    It's a free Image Processor.  The assembly that fails is 'BetterImageProcessorQuantization.dll'.
    LVL 14

    Expert Comment

    Check this out.

    in VS 2005 (pro - not sure about express), go to Project / <Project> Properties, then Configuration Properties / General, and set Common Language Runtime Support to "Safe MSIL Common Language Runtime Support (/clr:safe)".

    From this page.

    Hope it helps
    LVL 2

    Author Comment

    Thanks for your reply!  The only problem is, since it is a Website Solution file, it really technically is not a project.  Therefore I don't have a Project menu.
    LVL 14

    Expert Comment

    LVL 2

    Author Comment

    I got it working... what I needed to do was disassemble and reassemble the assembly with a strong name (since the source code was not provided).  So this article gives a how-to:

    Then I put full trust into my web.config and it works great!
    LVL 14

    Expert Comment

    good to see your problem solved.
    LVL 1

    Accepted Solution

    PAQed with points refunded (500)

    EE Admin

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    In my previous two articles we discussed Binary Serialization ( and XML Serialization ( In this article we will try to know more about SOAP (Simple Object Acces…
    More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    746 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

    15 Experts available now in Live!

    Get 1:1 Help Now