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
Solved

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

Posted on 2007-03-28
7
1,179 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
  • 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
The New “Normal” in Modern Enterprise Operations

DevOps for the modern enterprise offers many benefits — increased agility, productivity, and more, but digital transformation isn’t easy, especially if you’re not addressing the right issues. Register for the webinar to dive into the “new normal” for enterprise modern ops.

 
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Index on a Table 6 25
SSIS Feed MS SQL Server Stored procedure with loop 4 36
Name Space error VS2015 1 24
Insert Button on a table 16 37
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

861 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