[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework

Huge problem with References DLL's. Please Help

joaotsetsemoita

7/8/2008 12:16:00 PM

Hello Everyone. I wil ltry to explain my problem as more detailed as
possible.

Part 1: I created a DLL in vb.net wich works fine when referenced it
in any other vb application. (lets call this DLL 'My DLL'). This My
DLL it references another DLL that is a COM+ DLL. (lets call it DLL
COM). Once again, everything works fine when used in a windows
application.

Part 2: Now Im trying to use My DLL in a ASP.NET project. So I create
a new web project, go to My Project and I add the reference directly
to My DLL. But because My DLL also uses the DLL COM, I add a reference
to the DLL Com as well to my web project.

On the onLoad of my default.aspx page, the only code I have is:

Dim objSMS As New SMSsender.SMSsender (wich is a method of My DLL)
objSMS.CustomerID = 22
objSMS.sendSMS("35312312313", "Recipients Name", 17, "test 123")

This sendSMS method, is where is being used the functions of the COM
DLL and I it comes up with this error:

"Could not load file or assembly 'Interop.SMS_COMAPILib,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=95a7c9d103faea6b' or
one of its dependencies. The located assembly's manifest definition
does not match the assembly reference. (Exception from HRESULT:
0x80131040) "

I've been looking the web for this error, but all the articles I read,
doesn't look to match my scenario and also, a couple of things are
mentioned that goes beyond my .NET knowledge (I'm kinda new on
this .net and DLL's, I used to be a Classic ASP programmer)

Any help will be much apprecianted. Thanks in advance for taking your
time to read this wall of text.

Joao
2 Answers

Ilya Albrekht

7/8/2008 3:24:00 PM

0

Hi,

Try to add required COM library in references. In Add Reference window you
should see list of regestered COM libraries. After you added it, Interop
library will be created - it's .net wrapers for COM.

Good luck,
Ilya Albrekht

On Tue, 08 Jul 2008 08:15:40 -0400, <joaotsetsemoita@gmail.com> wrote:

> Hello Everyone. I wil ltry to explain my problem as more detailed as
> possible.
>
> Part 1: I created a DLL in vb.net wich works fine when referenced it
> in any other vb application. (lets call this DLL 'My DLL'). This My
> DLL it references another DLL that is a COM+ DLL. (lets call it DLL
> COM). Once again, everything works fine when used in a windows
> application.
>
> Part 2: Now Im trying to use My DLL in a ASP.NET project. So I create
> a new web project, go to My Project and I add the reference directly
> to My DLL. But because My DLL also uses the DLL COM, I add a reference
> to the DLL Com as well to my web project.
>
> On the onLoad of my default.aspx page, the only code I have is:
>
> Dim objSMS As New SMSsender.SMSsender (wich is a method of My DLL)
> objSMS.CustomerID = 22
> objSMS.sendSMS("35312312313", "Recipients Name", 17, "test 123")
>
> This sendSMS method, is where is being used the functions of the COM
> DLL and I it comes up with this error:
>
> "Could not load file or assembly 'Interop.SMS_COMAPILib,
> Version=1.0.0.0, Culture=neutral, PublicKeyToken=95a7c9d103faea6b' or
> one of its dependencies. The located assembly's manifest definition
> does not match the assembly reference. (Exception from HRESULT:
> 0x80131040) "
>
> I've been looking the web for this error, but all the articles I read,
> doesn't look to match my scenario and also, a couple of things are
> mentioned that goes beyond my .NET knowledge (I'm kinda new on
> this .net and DLL's, I used to be a Classic ASP programmer)
>
> Any help will be much apprecianted. Thanks in advance for taking your
> time to read this wall of text.
>
> Joao



--
Using Opera's revolutionary e-mail client: http://www.opera...

joaotsetsemoita

7/9/2008 10:44:00 AM

0

Hi, thanks for you reply.

I tried that already, still no luck. Same problem, same error.
Anything else I could try?

On Jul 8, 4:24 pm, "Ilya Albrekht" <ialbre...@wish-hint.com> wrote:
> Hi,
>
> Try to add required COM library in references. In Add Reference window you  
> should see list of regestered COM libraries. After you added it, Interop  
> library will be created - it's .net wrapers for COM.
>
> Good luck,
> Ilya Albrekht
>
>
>
>
>
> On Tue, 08 Jul 2008 08:15:40 -0400, <joaotsetsemo...@gmail.com> wrote:
> > Hello Everyone. I wil ltry to explain my problem as more detailed as
> > possible.
>
> > Part 1: I created a DLL in vb.net wich works fine when referenced it
> > in any other vb application. (lets call this DLL 'My DLL'). This My
> > DLL it references another DLL that is a COM+ DLL. (lets call it DLL
> > COM). Once again, everything works fine when used in a windows
> > application.
>
> > Part 2: Now Im trying to use My DLL in a ASP.NET project. So I create
> > a new web project, go to My Project and I add the reference directly
> > to My DLL. But because My DLL also uses the DLL COM, I add a reference
> > to the DLL Com as well to my web project.
>
> > On the onLoad of my default.aspx page, the only code I have is:
>
> > Dim objSMS As New SMSsender.SMSsender (wich is a method of My DLL)
> > objSMS.CustomerID = 22
> > objSMS.sendSMS("35312312313", "Recipients Name", 17, "test 123")
>
> > This sendSMS method, is where is being used the functions of the COM
> > DLL and I it comes up with this error:
>
> > "Could not load file or assembly 'Interop.SMS_COMAPILib,
> > Version=1.0.0.0, Culture=neutral, PublicKeyToken=95a7c9d103faea6b' or
> > one of its dependencies. The located assembly's manifest definition
> > does not match the assembly reference. (Exception from HRESULT:
> > 0x80131040) "
>
> > I've been looking the web for this error, but all the articles I read,
> > doesn't look to match my scenario and also, a couple of things are
> > mentioned that goes beyond my .NET knowledge (I'm kinda new on
> > this .net and DLL's, I used to be a Classic ASP programmer)
>
> > Any help will be much apprecianted. Thanks in advance for taking your
> > time to read this wall of text.
>
> > Joao
>
> --
> Using Opera's revolutionary e-mail client:http://www.opera.... Hide quoted text -
>
> - Show quoted text -