Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Could not load file or assembly and Failed to grant minimum permission

Status
Not open for further replies.

Zac5

Programmer
Jan 30, 2003
75
US
Hi,

I have the same asp.net web application installed on three seperate windows 2003 servers. In one instance the application works perfectly however on the other 2 instances the application works intermittently, but when it fails I need to restart IIS for it to work again. There doesn't seem to be anything specific that causes it to fail, you simple cannot access it once it has gone down, it seems to just drop. I am using .NET Framework 2.0. I have tried the following so far:
1. Changed securty policy to full trust
2. added this line in web.config within <system.web>: <trust level="Full" originUrl="" />
still no luck.

The following error can be seen when you try to access the application:

.Interop error '80131417'

Could not load file or assembly 'xx.Utilities, Version=x, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)

Any ideas anyone please?
 
your missing a reference to either the named assembly, or another assembly it depends on.


Jason Meckley
Programmer
Specialty Bakers, Inc.
 
I didn't include the assembly as I don't think that's causing the issue.
 
I didn't include the assembly as I don't think that's causing the issue.
apperently it is since that's what the exception is saying.

somewhere in you code you are referencing xx.Utilities (directly or indirectly). either the server cannot locate xx.Utilities, or xx.Utilities depends on another assembly which the server cannot locate.

if the assemby is signed then you can register it to the GAC. if it's not signed, or just not registered to the GAC the assembly should be copied to the bin directory.

if you haven't already, start looking here
Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Thanks JMeckley I am about to look into what you are suggesting, I am fairly new to this so might take me some time, but will let you know how I get on, how do I check if an assembly is signed?

appreciate your help, thanks.
 
it will have a public key token. I find it' better to copy 2rd party dlls to the bin directory rather than register them into the GAC. this is just an added headache.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Hi Jason,

Still no luck unfortunately. The assembly exists in the bin directory, and I compared the bin directory and GAC on both servers (working and non-working) and they're identical. As I mentioned before, on one server the application is fine, on the other two it is failing intermittently. I am the only user accessing the application and it fails right at the start, i.e. it is unable to load the home page even. I restart IIS and its up again for a bit, however if I access it 20 mins or so later it fails. If sometheing were missing then it would never load the entry page right? I am confused :-(
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top