[Webinar] Streamline your web hosting managementRegister Today

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 11425
  • Last Modified:

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

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!
  • 3
  • 3
1 Solution
joshbmAuthor Commented:
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'.
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
joshbmAuthor Commented:
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.
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

joshbmAuthor Commented:
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!
good to see your problem solved.
PAQed with points refunded (500)

EE Admin

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now