By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,827 Members | 2,244 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,827 IT Pros & Developers. It's quick & easy.

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:

P: n/a
DR
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.HasIl legalCharacters(String[]
str)
at
System.Security.Permissions.FileIOPermission.AddPa thList(FileIOPermissionAccess
access, AccessControlActions control, String[] pathListOrig, Boolean
checkForDuplicates, Boolean needFullPath, Boolean copyPathList)
at
System.Security.Permissions.FileIOPermission..ctor (FileIOPermissionAccess
access, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath)
at System.IO.Path.GetFullPath(String path)
at
Microsoft.Build.Tasks.Deployment.ManifestUtilities .Util.RemoveDuplicateItems(ITaskItem[]
items)
at
Microsoft.Build.Tasks.ResolveManifestFiles.set_Nat iveAssemblies(ITaskItem[]
value) WindowsApplication12
Error 2 The
"NativeAssemblies=@(NativeReferenceFile);@(_Deploy mentNativePrerequisite)"
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?
Jan 18 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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" <so*******************@yahoo.comwrote in message
news:eF**************@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.HasIl legalCharacters(String[]
str)
at
System.Security.Permissions.FileIOPermission.AddPa thList(FileIOPermissionAccess
access, AccessControlActions control, String[] pathListOrig, Boolean
checkForDuplicates, Boolean needFullPath, Boolean copyPathList)
at
System.Security.Permissions.FileIOPermission..ctor (FileIOPermissionAccess
access, String[] pathList, Boolean checkForDuplicates, Boolean
needFullPath)
at System.IO.Path.GetFullPath(String path)
at
Microsoft.Build.Tasks.Deployment.ManifestUtilities .Util.RemoveDuplicateItems(ITaskItem[]
items)
at
Microsoft.Build.Tasks.ResolveManifestFiles.set_Nat iveAssemblies(ITaskItem[]
value) WindowsApplication12
Error 2 The
"NativeAssemblies=@(NativeReferenceFile);@(_Deploy mentNativePrerequisite)"
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?

Jan 19 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.