Wrox Programmer Forums
|
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 8th, 2005, 07:09 PM
Registered User
 
Join Date: Apr 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default file or assembly name "myClass", or one of its dep

Hi

I have created a .dll in vb.net, however i am trying to call it from my classic asp page. First is this possible? I think there shouldn't be any conflict with this. Second, I already registered my .dll with regasm.exe . Then I tried running my asp page and it displayed it error:

ASP file or assembly name "myClass", or one of its dependencies was not found.

This error occurs at the line where i set my variable = to Server.CreateObject("MyCLass.Class1"). Any ideas?

Thanks,

Kyle

 
Old April 10th, 2005, 12:40 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

1. It is possible, but only if you expose the VB.NET DLL as a COM or COM+ object and install it into the GAC. Classic ASP is a scripting technology and it can only do late-binding to call into COM DLLS. The CLR always locates a DLL using fusion, and NOT the COM registry (although it does have to be registered for the benefit of ASP). This means it will look in the application directory and the bin subfolder, HOWEVER, you don't have an application directory because you're calling the DLL as a COM object, so it must be loaded in the GAC in order to be found. Do some web searches to learn how to deploy the DLL to the GAC (which requires giving it a strong name first).
2. This forum is for the book "ASP.NET Website Programming Prob-Design-Solution", so this question is off topic here.

Eric
 
Old April 11th, 2005, 03:54 PM
Registered User
 
Join Date: Apr 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks,

But what is a GAC ?

Thanks,

transtar

 
Old April 12th, 2005, 10:39 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The GAC is the Global Assembly Cache. You really need to read an intro book on .NET. I can't teach a complex subject like that in a message forum. The problem is that a lot of other questions flow from the answer:

1) Whay do we need a GAC?
2) What problems does it solve?
3) What problems does it create?
4) What is fusion and why does it matter?
5) What are alternatives?
6) How do I deploy assemblies to the GAC?
7) What is a strong name?
8) How do I give a strong name to my assemblies?

etc.

And, as I said before, this would be off-topic in this forum anyway.

Eric





Similar Threads
Thread Thread Starter Forum Replies Last Post
Could not load file or assembly 'dll' or one of it Mahenj ASP.NET 2.0 Professional 1 January 17th, 2007 12:21 PM
Could not load file or assembly 'DLL' or one of it Mahenj BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 January 17th, 2007 10:16 AM
Could not load file or assembly vantoko BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 4 August 27th, 2006 02:26 PM
File or assembly name not found cbath ASP.NET 1.0 and 1.1 Basics 1 July 12th, 2006 08:43 AM
Error : File or assembly name CrystalKeyCodeLib, o vinod_pawar1 Crystal Reports 0 August 23rd, 2004 04:53 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.