[Webinar] Streamline your web hosting managementRegister Today

x
  • 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=1.0.0.0, 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=1.0.0.0, 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"?>
<configuration>
      <appSettings/>
      <system.web>
            <trust level="Full"/>
            <identity impersonate="true"/>
            <customErrors mode="Off"/>
            <compilation debug="true">
                  <assemblies>
                        <add assembly="System.Management, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                        <add assembly="System.Data.OracleClient, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                        <add assembly="System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                        <add assembly="System.Configuration.Install, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                        <add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                        <add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                        <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                        <add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                        <add assembly="System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                        <add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                        <add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                        <add assembly="System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                        <add assembly="System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                        <add assembly="System.DirectoryServices.Protocols, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                        <add assembly="System.EnterpriseServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                        <add assembly="System.ServiceProcess, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                        <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                        <add assembly="System.Web.RegularExpressions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></assemblies></compilation>
            <authentication mode="Windows"/>
      </system.web>
</configuration>
======================================

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!
0
joshbm
Asked:
joshbm
  • 3
  • 3
1 Solution
 
joshbmAuthor Commented:
P.S. You can download the assembly that is failing to load:
http://www.waterwijkers.nl/bip/

It's a free Image Processor.  The assembly that fails is 'BetterImageProcessorQuantization.dll'.
0
 
chinu1310Commented:
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.
http://thespoke.net/forums/953812/ShowPost.aspx

Hope it helps
0
 
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.
0
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:

http://andrewconnell.com/blog/archive/2004/12/15/772.aspx

Then I put full trust into my web.config and it works great!
0
 
chinu1310Commented:
good to see your problem solved.
0
 
Computer101Commented:
PAQed with points refunded (500)

Computer101
EE Admin
0

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