Re: com compnet in my dotnet app causes an Error

From: Rob Teixeira (RobTeixeira_at_@msn.com)
Date: 11/09/04


Date: Tue, 9 Nov 2004 16:43:00 -0500

The wrapper assembly that was created when you referenced the COM component
wasn't signed (I'm assuming your main assembly is signed).
If you are using C#, you can go to the project properties and set the
keyfile name for wrapper assemblies.
If you are using VB.NET, you will have to use TLIMP to create the COM
wrapper. You'll see a few samples if you search for that.

-Rob Teixeira

"reza" <ali@microsoft.com> wrote in message
news:%23UVs9BqxEHA.3844@TK2MSFTNGP09.phx.gbl...
> I am using a .Net application which has a refence to a com component in
COM+
> ,it works fine in my local computer but when I put on a mapped path (on
the
> network) I get the following Error,that component has been written by VB
6.0
> which writes in Active Directory and it hasn't been signed ,whould it be
> the probelm?? when I chnage the security level of my interanet to Full
trust
> it works ,even on network ,but I can't change the security level.
>
> Is there somebody who can help me.
> Thansk
>
> SecurityException: Request for the permission of type
> System.Security.Permissions.SecurityPermission, mscorlib,
> Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
> failed.]
>
>


Quantcast