Solved

Could not load file or assembly .... or one of its dependencies

Posted on 2007-03-28
7
1,184 Views
Last Modified: 2013-12-17
Hello People.

I have a problem with an ASP page referencing a ,net DLL.

Basically, the DLL that i have created, references another DLL, which is already registered on the server, so when i try to run the new dll i get the following:

Could not load file or assembly 'PrintLibrary, Version=1.0.1944.19210, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

However, i dont know how to go about fixing it.  I THINK this is why i am getting the above problem, correct me if i am wrong.

Any suggestions? No links please, i have looked around already

Apresto
0
Comment
Question by:apresto
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 12

Expert Comment

by:ShazbotOK
ID: 18808706
I gather you have already tried a unregister / re-register of the PrintLibrary DLL to be sure that it is properly set within the Registry?  The error indicates that the server's registry is pointing to a location of the DLL where it does not exist.

Also if the PrintLibrary DLL is a .NET Assembly - in order to be able to call it from ASP it will have to be registered by the regasm.exe  
0
 
LVL 23

Author Comment

by:apresto
ID: 18809838
the confusing thing though it that it works fine from a VBS script but i get the above error from ASP? strange?
0
 
LVL 23

Author Comment

by:apresto
ID: 18810043
In all there are about 7 different DLL's, i reference the PrintLibrary.Dll, and that in turn must reference a number of others - is it necessary to register each dll individually?  Im just confused as to why it works with a vbs script and not and asp page - virtually the same thing
0
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 
LVL 12

Accepted Solution

by:
ShazbotOK earned 500 total points
ID: 18810074
Difference would be that ASP uses the IUSR account for access - possibly could be a permissions problem?

Good and easy way to rule this out is to try using your NT Authority account in place of IUSR (Only temp setting)
0
 
LVL 23

Author Comment

by:apresto
ID: 18814721
>>Good and easy way to rule this out is to try using your NT Authority account in place of IUSR (Only temp setting)

how would i do this?
0
 
LVL 23

Author Comment

by:apresto
ID: 18814769
It was infact the permissions on the imae directory that i was writting to - your a saint!!! :o)

one more question, quick one

In the dll i am calling an application (an external exe) - if 2 people happen to visit the same page at the sam ime and this app is called at the same time will it error it will it alow multiple intances to be executed? long shot, thought you might know
0
 
LVL 12

Expert Comment

by:ShazbotOK
ID: 18815218
Yes - ASP.NET is multi-threaded so the exe would be run for each instance and if data returned will only return to the thread that kicked it off.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

630 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