473,666 Members | 2,257 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 "ResolveManifes tFiles" task failed unexpectedly.
System.Argument Exception: Illegal characters in path.
at
System.Security .Permissions.Fi leIOPermission. HasIllegalChara cters(String[]
str)
at
System.Security .Permissions.Fi leIOPermission. AddPathList(Fil eIOPermissionAc cess
access, AccessControlAc tions control, String[] pathListOrig, Boolean
checkForDuplica tes, Boolean needFullPath, Boolean copyPathList)
at
System.Security .Permissions.Fi leIOPermission. .ctor(FileIOPer missionAccess
access, String[] pathList, Boolean checkForDuplica tes, Boolean needFullPath)
at System.IO.Path. GetFullPath(Str ing path)
at
Microsoft.Build .Tasks.Deployme nt.ManifestUtil ities.Util.Remo veDuplicateItem s(ITaskItem[]
items)
at
Microsoft.Build .Tasks.ResolveM anifestFiles.se t_NativeAssembl ies(ITaskItem[]
value) WindowsApplicat ion12
Error 2 The
"NativeAssembli es=@(NativeRefe renceFile);@(_D eploymentNative Prerequisite)"
parameter for the "ResolveManifes tFiles" task is invalid.
WindowsApplicat ion12
Error 3 The "ResolveManifes tFiles" task could not be initialized with its
input parameters. WindowsApplicat ion12

I need to be able to reference my com dll without making a registry entry.
how to do this?
Jan 18 '08 #1
1 1974
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.c omwrote in message
news:eF******** ******@TK2MSFTN GP03.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 "ResolveManifes tFiles" task failed unexpectedly.
System.Argument Exception: Illegal characters in path.
at
System.Security .Permissions.Fi leIOPermission. HasIllegalChara cters(String[]
str)
at
System.Security .Permissions.Fi leIOPermission. AddPathList(Fil eIOPermissionAc cess
access, AccessControlAc tions control, String[] pathListOrig, Boolean
checkForDuplica tes, Boolean needFullPath, Boolean copyPathList)
at
System.Security .Permissions.Fi leIOPermission. .ctor(FileIOPer missionAccess
access, String[] pathList, Boolean checkForDuplica tes, Boolean
needFullPath)
at System.IO.Path. GetFullPath(Str ing path)
at
Microsoft.Build .Tasks.Deployme nt.ManifestUtil ities.Util.Remo veDuplicateItem s(ITaskItem[]
items)
at
Microsoft.Build .Tasks.ResolveM anifestFiles.se t_NativeAssembl ies(ITaskItem[]
value) WindowsApplicat ion12
Error 2 The
"NativeAssembli es=@(NativeRefe renceFile);@(_D eploymentNative Prerequisite)"
parameter for the "ResolveManifes tFiles" task is invalid.
WindowsApplicat ion12
Error 3 The "ResolveManifes tFiles" task could not be initialized with its
input parameters. WindowsApplicat ion12

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
8097
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: private void Page_Load(object sender, System.EventArgs e) { // load content XslTransform trans = new XslTransform();
0
1734
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 C#. I tried placing a label control and setting the reference of this new lable into the 'details_control' parameter. This worked.
5
1608
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 an object I have try to search for the solution using this error message, and I found that a lot of other people have the same problem as the project only work in
0
275
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 implemented an ItemCommand event which looks like this: Select Case e.CommandName Case "Expand" ' user pressed the + button
9
4545
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 tried installing .Net framework 1.1 on the clients machine that is getting the error but the error remains. Can anyone provide help? Thanks.
2
2705
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 object error" i can't seem to see what's wrong with my code so i'm hoping some fresh eyes can spot what's wrong or what i'm missing. the following is the code, this line strFile = CStr(xlSheet.Range("I" + CStr(Row)).Value.ToString + "\" +...
1
1448
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 "System.Net.WebException: The underlying connection was closed" errors. I started the application up in debugging mode and it ran fine. After fiddling with things for awhile I now find that it works while I am running in debug mode, but does not when I am...
7
13925
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 grief -- which I am sure is not unique. Here are my basic steps: 1) create a masterpage -- add some simple graphics to the header.
4
5969
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 mocha1150.Gif I already have the code written can someone please tell me whats wrong with it? <html> <head> <script type="text/javascript"> function moveover(imga,ida) {
0
8440
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8355
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8866
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
7381
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4193
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4365
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2769
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2006
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1769
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.