473,394 Members | 1,765 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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:

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
1 1958
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: mike p. | last post by:
I have a docbook xml file, and am using standard docbook 1.61.3 xsl stylesheets to do xhtml transform. Transform works fine when using MSXML. When I try to do the following using asp.net 1.1: ...
0
by: Patrick | last post by:
This is a C# post. I'm using VB.NET to create an add-in for the Google Sidebar, and have implemented the OnDetailsView method. NOTE : I've come across this same problem (error message) even in...
5
by: Tee | last post by:
Hi, I having a problem with my asp.net project. The project work fine on my own PC, but when I upload it to the server, I got the following error : Object reference not set to an instance of...
0
by: SK | last post by:
Hello, I have a datagrid, which contains another nested datagrid as a user control. The nested dg is popultated when the user presses the "+" button in one row for the main grid. I have a...
9
by: bill | last post by:
I keep getting Object reference not set to an instance of an object error when trying to run my application on an installed client machine. I installed it on several others and it runs fine. I...
2
by: dotnetnoob | last post by:
i got this program that will fetch the data in the excel spreadsheet, it was working before then i make some adjustment and it now give me an error of "Object reference not set to an instance of an...
1
by: Ethan Strauss | last post by:
Hi, I have a C#.net Web application which calls a web service (http://eutils.ncbi.nlm.nih.gov/entrez/eutils/soap/eutils.wsdl). It has run just fine for months. Recently I started getting...
7
by: thersitz | last post by:
Hi, Very new to asp.net. Using VStudio 2005 on an XP Pro machine. Using Cassini to view. I see this error discussed all over the net but don't seem to find a way to resolve my particular...
4
by: Spencer Killen | last post by:
As the title says i'd like to have a image (mocha1150.Gif) and when the mouse moves over them id like them to change to mocha5150ani.Gif and when the mouse moves out id like to change it back to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.