File or assembly name or one of its dependencies, was not found...

File or assembly name or one of its dependencies, was not found...

am 02.01.2008 13:04:01 von RudolfDvoracek

Hi,

we have some web solutions still running on old ASP 3.0 Platform. So I
created .NET component in c# with COM interoperability and registered it on
server. But when i try to create a new instance in asp page, server show
following message:


File or assembly name HPTronic.Advertise, or one of its dependencies, was
not found.


Operations with this component goes at my machine without any warning
messages or errors, I can create new instances, access to their properties
and methods, so I mean here should be problem with user-access rights to
some directories on deployment machine. HPTronic.Advertise.dll file is placed
in same directory, where are other dll files, which we use as ActiveX objects
too.


Thank you for any valuable advice,

Rudolf Dvořáček.

Re: File or assembly name or one of its dependencies, was not found...

am 02.01.2008 13:38:25 von Aidy

Have you added the dll to the GAC?

"Rudolf Dvoracek" wrote in
message news:3D50467A-29F7-438D-B93B-6221482F3400@microsoft.com...
> Hi,
>
> we have some web solutions still running on old ASP 3.0 Platform. So I
> created .NET component in c# with COM interoperability and registered it
> on
> server. But when i try to create a new instance in asp page, server show
> following message:
>
>
> File or assembly name HPTronic.Advertise, or one of its dependencies, was
> not found.
>
>
> Operations with this component goes at my machine without any warning
> messages or errors, I can create new instances, access to their properties
> and methods, so I mean here should be problem with user-access rights to
> some directories on deployment machine. HPTronic.Advertise.dll file is
> placed
> in same directory, where are other dll files, which we use as ActiveX
> objects
> too.
>
>
> Thank you for any valuable advice,
>
> Rudolf Dvorácek.
>

Re: File or assembly name or one of its dependencies, was not foun

am 02.01.2008 15:27:00 von RudolfDvoracek

Not yet, but I registered dll with tlb and codebase option. When I run
similar *.vbs script with my own account, instance would be created correctly.

Rudolf.

"Aidy" wrote:

> Have you added the dll to the GAC?
>
> "Rudolf Dvoracek" wrote in
> message news:3D50467A-29F7-438D-B93B-6221482F3400@microsoft.com...
> > Hi,
> >
> > we have some web solutions still running on old ASP 3.0 Platform. So I
> > created .NET component in c# with COM interoperability and registered it
> > on
> > server. But when i try to create a new instance in asp page, server show
> > following message:
> >
> >
> > File or assembly name HPTronic.Advertise, or one of its dependencies, was
> > not found.
> >
> >
> > Operations with this component goes at my machine without any warning
> > messages or errors, I can create new instances, access to their properties
> > and methods, so I mean here should be problem with user-access rights to
> > some directories on deployment machine. HPTronic.Advertise.dll file is
> > placed
> > in same directory, where are other dll files, which we use as ActiveX
> > objects
> > too.
> >
> >
> > Thank you for any valuable advice,
> >
> > Rudolf Dvorácek.
> >
>
>
>

Re: File or assembly name or one of its dependencies, was not foun

am 02.01.2008 15:42:02 von Aidy

Try adding it to the gac then :)

"Rudolf Dvoracek" wrote in
message news:969BE260-4D90-4BC5-9CA6-D3D8D86B7F76@microsoft.com...
> Not yet, but I registered dll with tlb and codebase option. When I run
> similar *.vbs script with my own account, instance would be created
> correctly.
>
> Rudolf.
>
> "Aidy" wrote:
>
>> Have you added the dll to the GAC?
>>
>> "Rudolf Dvoracek" wrote in
>> message news:3D50467A-29F7-438D-B93B-6221482F3400@microsoft.com...
>> > Hi,
>> >
>> > we have some web solutions still running on old ASP 3.0 Platform. So I
>> > created .NET component in c# with COM interoperability and registered
>> > it
>> > on
>> > server. But when i try to create a new instance in asp page, server
>> > show
>> > following message:
>> >
>> >
>> > File or assembly name HPTronic.Advertise, or one of its dependencies,
>> > was
>> > not found.
>> >
>> >
>> > Operations with this component goes at my machine without any warning
>> > messages or errors, I can create new instances, access to their
>> > properties
>> > and methods, so I mean here should be problem with user-access rights
>> > to
>> > some directories on deployment machine. HPTronic.Advertise.dll file is
>> > placed
>> > in same directory, where are other dll files, which we use as ActiveX
>> > objects
>> > too.
>> >
>> >
>> > Thank you for any valuable advice,
>> >
>> > Rudolf Dvorácek.
>> >
>>
>>
>>
>

Re: File or assembly name or one of its dependencies, was not foun

am 02.01.2008 16:18:01 von RudolfDvoracek

Why? Here is no reason to add dll to GAC. Due to knowledgebase
recommmendations you can add dll to GAC or register it with /codebase option.
You have two choices. Both of them can be used.

R.D.

"Aidy" wrote:

> Try adding it to the gac then :)

Re: File or assembly name or one of its dependencies, was not foun

am 02.01.2008 16:18:02 von RudolfDvoracek

Why? Here is no reason to add dll to GAC. Due to knowledgebase
recommmendations you can add dll to GAC or register it with /codebase option.
You have two choices. Both of them can be used.

R.D.

"Aidy" wrote:

> Try adding it to the gac then :)

Re: File or assembly name or one of its dependencies, was not foun

am 02.01.2008 16:19:03 von RudolfDvoracek

Why? Here is no reason to add dll to GAC. Due to knowledgebase
recommmendations you can add dll to GAC or register it with /codebase option.
You have two choices. Both of them can be used.

R.D.

"Aidy" wrote:

> Try adding it to the gac then :)

Re: File or assembly name or one of its dependencies, was not foun

am 02.01.2008 18:12:41 von Aidy

It probably is finding the dll ok anyway, otherwise you'd get a different
error message.

If it works from a vbs script then I'd look at permissions, maybe it needs
access to a dll it doesn't have permissions to read when called via an aspx
page. Does the dll reference anything else?

"Rudolf Dvoracek" wrote in
message news:B361D21A-7E5D-4473-8D3A-8406C9CA5D09@microsoft.com...
> Why? Here is no reason to add dll to GAC. Due to knowledgebase
> recommmendations you can add dll to GAC or register it with /codebase
> option.
> You have two choices. Both of them can be used.
>
> R.D.
>
> "Aidy" wrote:
>
>> Try adding it to the gac then :)
>
>