when i reference a com object by regsvr32 it then find it in the COM tab, it works ok. but when i r

when i reference a com object by regsvr32 it then find it in the COM tab,
it works ok. but when i reference a com object by referencing the .dll file
i get this error in my C# application:

Error 1 The "ResolveManifestFiles" task failed unexpectedly.
System.ArgumentException: Illegal characters in path.
at
System.Security.Permissions.FileIOPermission.HasIllegalChara cters(String[]
str)
at
System.Security.Permissions.FileIOPermission.AddPathList(Fil eIOPermissionAccess
access, AccessControlActions control, String[] pathListOrig, Boolean
checkForDuplicates, Boolean needFullPath, Boolean copyPathList)
at
System.Security.Permissions.FileIOPermission..ctor(FileIOPer missionAccess
access, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath)
at System.IO.Path.GetFullPath(String path)
at
Microsoft.Build.Tasks.Deployment.ManifestUtilities.Util.Remo veDuplicateItems(ITaskItem[]
items)
at
Microsoft.Build.Tasks.ResolveManifestFiles.set_NativeAssembl ies(ITaskItem[]
value) WindowsApplication12
Error 2 The
"NativeAssemblies= [at] (NativeReferenceFile); [at] (_DeploymentNative Prerequisite)"
parameter for the "ResolveManifestFiles" task is invalid.
WindowsApplication12
Error 3 The "ResolveManifestFiles" task could not be initialized with its
input parameters. WindowsApplication12

I need to be able to reference my com dll without making a registry entry.
how to do this?
DR [ Fr, 18 Januar 2008 04:22 ] [ ID #1911130 ]

Re: when i reference a com object by regsvr32 it then find it in the COM tab, it works ok. but when

There are two ways to load COM dlls.

1. By manifest. Works with .NET 2.0 or greater.
2. Using LoadLibrary(). Will work with any version of .NET.

I am not convinced all COM libraries will work, as I have not used either
method enough, but between the two methods, you should have a good start.

Search Google for LoadLibrary() or Reg-free COM, etc.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

*************************************************
| Think outside the box!
|
*************************************************
"DR" <softwareengineer98037 [at] yahoo.com> wrote in message
news:eFblgGYWIHA.4448 [at] TK2MSFTNGP03.phx.gbl...
> when i reference a com object by regsvr32 it then find it in the COM tab,
> it works ok. but when i reference a com object by referencing the .dll
> file i get this error in my C# application:
>
> Error 1 The "ResolveManifestFiles" task failed unexpectedly.
> System.ArgumentException: Illegal characters in path.
> at
> System.Security.Permissions.FileIOPermission.HasIllegalChara cters(String[]
> str)
> at
> System.Security.Permissions.FileIOPermission.AddPathList(Fil eIOPermissionAccess
> access, AccessControlActions control, String[] pathListOrig, Boolean
> checkForDuplicates, Boolean needFullPath, Boolean copyPathList)
> at
> System.Security.Permissions.FileIOPermission..ctor(FileIOPer missionAccess
> access, String[] pathList, Boolean checkForDuplicates, Boolean
> needFullPath)
> at System.IO.Path.GetFullPath(String path)
> at
> Microsoft.Build.Tasks.Deployment.ManifestUtilities.Util.Remo veDuplicateItems(ITaskItem[]
> items)
> at
> Microsoft.Build.Tasks.ResolveManifestFiles.set_NativeAssembl ies(ITaskItem[]
> value) WindowsApplication12
> Error 2 The
> "NativeAssemblies= [at] (NativeReferenceFile); [at] (_DeploymentNative Prerequisite)"
> parameter for the "ResolveManifestFiles" task is invalid.
> WindowsApplication12
> Error 3 The "ResolveManifestFiles" task could not be initialized with its
> input parameters. WindowsApplication12
>
> I need to be able to reference my com dll without making a registry entry.
> how to do this?
>
NoSpamMgbworld [ Sa, 19 Januar 2008 18:01 ] [ ID #1911857 ]
Microsoft » microsoft.public.dotnet.general » when i reference a com object by regsvr32 it then find it in the COM tab, it works ok. but when i r

Vorheriges Thema: Converting VB 6 to .net
Nächstes Thema: what all versions of .net framework support COM isolation (.manifest files)