Error: could not load file or assembly or one of its dependencies | Bytes (2024)

Home Posts Topics Members FAQ

=?Utf-8?B?U2hlaWxh?=

Hi,

Does anybody encounter this error:
Unhandled Exception: System.IO.FileL oadException: could not load file or
assembly or one of its dependencies. Access is denied.

I google the error and found a few resolutions, such as exclude Temporary
ASP.NET Files folder from virus scan, grant full rights to Temporary ASP.NET
Files folder, etc. all doesn't work.

Previously the application works fine if all dlls are deployed in GAC, but
after I move dll to application Bin folder, the problem happens. To make the
website up, I have to clear all content in Temporary ASP.NET Files folder,
but after a few runs, it happenes again. Right now the only soultion works
for me is to set trust level to full in web.config, which I don't want to do
due to security reason.

Does anybody know what could be the cause? thanks in advance.

Jan 3 '08 #1

Subscribe Reply

2 Error: could not load file or assembly or one of its dependencies | Bytes (1) 2276 Error: could not load file or assembly or one of its dependencies | Bytes (2)

Michael Nemtsev [MVP]

Hello Sheila,

How do u refer to your dll? could you post the code how u declare and use
your dll?

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
SPreviously the application works fine if all dlls are deployed in
SGAC, but after I move dll to application Bin folder, the problem
Shappens. To make the website up, I have to clear all content in
STemporary ASP.NET Files folder, but after a few runs, it happenes
Sagain. Right now the only soultion works for me is to set trust level
Sto full in web.config, which I don't want to do due to security
Sreason.
S>

Jan 3 '08 #2

=?Utf-8?B?U2hlaWxh?=

Hi Michael,

The website is hosting a few customized server controls, thus its difficult
to post all code here. I just show you how a assembly (common library) is
normally called in the code

....
using Company.Common;

....
CommonFunction Com = new CommonFunction( );
if (Com.IsCorrectC ategory(output, NewsCategories) )
{
PageList = ContentPublishi ng.GetAllPageLi st(SiteID,
Com.GetNewsCate goryID(SiteNews Category,NewsCa tegories).ToStr ing(), null,
_startDateTime, _endDateTime);
}
...

Is there any article I can read on this? thanks.

Regards
Yu Ping

"Michael Nemtsev [MVP]" wrote:

Hello Sheila,

How do u refer to your dll? could you post the code how u declare and use
your dll?

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
SPreviously the application works fine if all dlls are deployed in
SGAC, but after I move dll to application Bin folder, the problem
Shappens. To make the website up, I have to clear all content in
STemporary ASP.NET Files folder, but after a few runs, it happenes
Sagain. Right now the only soultion works for me is to set trust level
Sto full in web.config, which I don't want to do due to security
Sreason.
S>

Jan 4 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1784

Configuration Error, out of no where!

by: CHRIS |last post by:

Isn't it always the case that as soon as you post, you solve the problem? Apparently, adding an extra "space" to a blank line in my web.config file solved this problem. I would be angry that it was something stupid that like that ended up fixing it, but Im just so glad that I can actually get some work done now.

ASP.NET

1 7109

Missing assembly / dependencies error

by: Scott Hamlin |last post by:

I am receiving an error while trying to use Crystal Reports with .NET, which I have pasted below. The main problem is this message: File or assembly name CrystalDecisions.CrystalReports.Engine, or one of its dependencies, was not found. I have checked the winnt/assembly directory and the assembly is there. I have two versions of the file...

ASP.NET

1 1267

Please help in understanding error

by: news |last post by:

Hi, I have just deployed my private assembly in the bin directory of my ISP and I am getting the following error. I am pretty sure it is able to find my assemblyPLEASE tell me how can I find which dependencies are not being found( is there a way to trace the dependencies which are not found). I Just have ftp access to my isp server. ...

ASP.NET

2 1421

Earlier debugging / more detailed dependency error info.

by: Ben Harper |last post by:

I'm trying to load an assembly of mine from a C# webforms page, but IIS fails to load the page because of failed dependencies. My problem is that I cannot for the life of me discover the dependency that is causing the failure. I have verified that the assembly in question is loadable by a small test EXE. Is there any way that I can debug the...

ASP.NET

6 44473

Assembly.Load() exception

by: Steve |last post by:

I'm playing with late binding and trying a very simple test to load an assembly In my "Host" application I have this code: <code> string modulePath = @"C:\PMDRepository\Tools\ManfBusProcMgr\Modules\TestModule\bin\Debug\TestModule"; Assembly a = Assembly.Load(modulePath); </code>

C# / C Sharp

1520

Customization assembly error in Excel

by: jason_cuteboy |last post by:

Hi all, Completely new to Vb.net and trying to create a simple VB Office Excel application/spreadsheet. When I built the project, and excel opens up an error comes up.... Customization assembly could not be found or loaded? File or assembly name Microsoft.VisualStudio.Tools.Applications.Runtime, or one of its dependencies, was not found.

Visual Basic .NET

1 3262

Parser Error

by: Carlos Sosa Albert |last post by:

Hello people, I'm having an issue registering an assembly in ONE server. I've already tried to reinstall the .NET framework 2.0 but the error is still there. I enabled the logging but nothing changed. The only thing I noticed is that it mentions "Using host configuration file: \\?\c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config"....

ASP.NET

3 4520

configuration error (website using Telerik Rad controls)

by: Cirene |last post by:

I created a 3.5 ASP.NET website using Teleriks Rad Controls. It works fine locally, but when I deploy it to the server I get a "Configuration Error". I am "renting" space on the server so I don't have access to the GAC, or to install applications, etc... Any ideas? Here's teh error....

ASP.NET

6 4878

Exception Error - Missing dependencies.

by: Miro |last post by:

I can run an exe ( and its install ) i have created on my machine. The exe has a button that populates a dataset and then shoots it to a crystal report. But... Installing the setup.exe on my other pc, and running it I get an error. The Dataset loads properly, but when the button is pushed to view the report I get this error: ...

Visual Basic .NET

4 3290

Exception Error - Missing dependencies. - Update

by: Miro |last post by:

<i have also added this reply to the other newsgroup - now that I have realizd ( and assuming ) it is not a localized error directly to vb.> I have found this link on the website: https://www.sdn.sap.com/irj/sdn/businessobjects-downloads ..NET Utility CR 2008 Merge Modules for the .NET Framework ZIP 74.716 Windows English 12.03.2008...

.NET Framework

7428

Changing the language in Windows 10

by: Hystou |last post by:

Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...

Windows Server

1 7452

The easy way to turn off automatic updates for Windows 10/11

by: Hystou |last post by:

Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...

Windows Server

7784

Discussion: How does Zigbee compare with other wireless protocols in smart home applications?

by: tracyyun |last post by:

Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...

General

6014

AI Job Threat for Devs

by: agi2029 |last post by:

Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...

Career Advice

1 5354

Access Europe - Using VBA to create a class based on a table - Wed 1 May

by: isladogs |last post by:

The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...

Microsoft Access / VBA

3485

Trying to create a lan-to-lan vpn between two differents networks

by: TSSRALBI |last post by:

Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...

Networking - Hardware / Configuration

3467

Windows Forms - .Net 8.0

by: adsilva |last post by:

A Windows Forms form does not have the event Unload, like VB6. What one acts like?

Visual Basic .NET

1 1039

How to add payments to a PHP MySQL app.

by: muto222 |last post by:

How can i add a mobile payment intergratation into php mysql website.

PHP

738

Comprehensive Guide to Website Development in Toronto: Expert Insights from BSMN Consultancy

by: bsmnconsultancy |last post by:

In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

General

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisem*nts and analytics tracking please visit the page.

Error: could not load file or assembly or one of its dependencies | Bytes (2024)

References

Top Articles
Latest Posts
Article information

Author: Dr. Pierre Goyette

Last Updated:

Views: 6519

Rating: 5 / 5 (70 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Dr. Pierre Goyette

Birthday: 1998-01-29

Address: Apt. 611 3357 Yong Plain, West Audra, IL 70053

Phone: +5819954278378

Job: Construction Director

Hobby: Embroidery, Creative writing, Shopping, Driving, Stand-up comedy, Coffee roasting, Scrapbooking

Introduction: My name is Dr. Pierre Goyette, I am a enchanting, powerful, jolly, rich, graceful, colorful, zany person who loves writing and wants to share my knowledge and understanding with you.